Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
XF\Pub\Controller\Editor::actionDialog is invoked by the front-end XF.EditorHelpers.loadDialog function which often tags a bb-code tag and then returns a dialog for it.However actionDialog uses the regex '/[^a-zA-Z0-9]/' while a bb-codes use the regex /^[a-z0-9_]*$/i.This means _ is stripped from the argument when calling XF\Pub\Controller\Editor::loadDialog makes matching to the exact bb-code much harder than it should be (as it isn't possible to determine if a dialog for bbcode_a and bbcodea or is being requested).
XF\Pub\Controller\Editor::actionDialog is invoked by the front-end XF.EditorHelpers.loadDialog function which often tags a bb-code tag and then returns a dialog for it.
XF\Pub\Controller\Editor::actionDialog
XF.EditorHelpers.loadDialog
However actionDialog uses the regex '/[^a-zA-Z0-9]/' while a bb-codes use the regex /^[a-z0-9_]*$/i.
actionDialog
'/[^a-zA-Z0-9]/'
/^[a-z0-9_]*$/i
This means _ is stripped from the argument when calling XF\Pub\Controller\Editor::loadDialog makes matching to the exact bb-code much harder than it should be (as it isn't possible to determine if a dialog for bbcode_a and bbcodea or is being requested).
_
XF\Pub\Controller\Editor::loadDialog
bbcode_a
bbcodea
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences