Fixed Inline Code vs Code: Bug? or Suggestion?

Affected version
2.1.10

djbaxter

Well-known member
This has been true for several Xenforo versions and I can't recall how far back it goes.

If I enter some text like a URL and then highlight and click Inline Code, it wraps the highlighted text in the appropriate icode tags.

However, if it's a block of text and I highlight it and click Code, it just gives me the empty code edit popup. I have to go back, copy the text I want, delete it from the post editor, and then click Code again and enter it there. It's a bit annoying to say the least. Basically all other BBCodes act like Inline Code, not like Code.

Shouldn't the Code feature act the same way as the Inline Code feature?

If this is not a bug, can someone move this thread to Suggestions please?
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 Beta 3).

Change log:
Attempt to populate the editor code dialog CodeMirror instance with initial content based on current selection within the editor
There may be a delay before changes are rolled out to the XenForo Community.
 
Top