📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
X

RSS [ICODE=rich] does not round-trip after editing a post as expected.

X

Xon

Guest
Guest or Bot
If you have the bb-code:
Test
It is rendered in the editor as:
<p><code><span style="color: rgb(0, 255, 255);">Test</span></code></p>
And then edit the post it gets saved as:
[COLOR=rgb(0, 255, 255)]Test[/COLOR]

The problem is XF\BbCode\Renderer\EditorHtml::addDefaultTags has the following code:
PHP:

$this->addTag('icode', ['replace' => ['<code>', '</code>']]);
And XF\Html\Renderer\BbCode::handleTagCode just outputs /[code] without any css... [URL='https://xenforo.com/community/threads/icode-rich-does-not-round-trip-after-editing-a-post-as-expected.220867/']Read more[/URL] [url="https://xenforo.com/community/threads/icode-rich-does-not-round-trip-after-editing-a-post-as-expected.220867/"]Continue reading...[/url]
 
Similar content Most view View more
Back
Top