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

Önemli Uyarı

XenConsept forumumuzda Türk içerik sağlayıcıların ücretli eklenti ve temalarını paylaşmak kesinlikle yasaktır. Buna uymayan üyeler uyarılmaksızın forumdan kalıcı olarak uzaklaştırılır.

Important Warning

Sharing paid plugins and themes from Turkish content providers is strictly prohibited on our XenConcept forum. Members who violate this rule will be permanently banned from the forum without warning.

XC_Robot

User
Katılım
13 Ocak 2026
Konular
330
Mesajlar
330
Beğeni
12
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/"]Okumaya devam et...[/url]
 

NASIL ? [XTR] IP Threat Monitor [Paid]

NASIL ? EntityClassProperties CLI command uses FQNs