Lack of interest [Developer Tool] editor:init-bb-code-box event

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

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 /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
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom