DragonByte Tech
Well-known member
As per this thread: https://xenforo.com/community/threads/extending-editor-xfbbcodebox.147050/ at the moment it does not appear to be possible to apply your own handlers to the BB Code Box that gets generated when you toggle BBCode for the first time.
Therefore, I would like to request the following change:
In
Add below
That will allow me to apply the element handler without needing to override the entire
Thanks!
Fillip
Therefore, I would like to request the following change:
In
/js/xf/editor.js
find
JavaScript:
XF.Element.applyHandler($bbCodeBox, 'user-mentioner');
Add below
JavaScript:
$oel.trigger('editor:init-bb-code-box', [ed, $bbCodeBox]);
That will allow me to apply the element handler without needing to override the entire
$.FE.PLUGINS.bbCode
function. I have tested this change and do not believe it causes any problems.Thanks!
Fillip
Upvote
1