X
Xon
Guest
If you have the bb-code:
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:
The problem is
PHP:
And
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]