It's done. I didn't do it for the buttons options in the Bb Code edit page because I'm not sure if some options can evolute or not.yeah also this check may insert to:
- select redactor in the add-edit short configuration
- some phrases
- some button options in the bb-code edit
my php is very bad, but i can give some ideas ;-)
Version 2.3.3 released
- Bb Code Empty content checker fix when content is the number 0
Thanks to @KiF- TinyMCE/XenForo Redactor checker
Ie:
- On XenForo 1.1.x, XenForo Redactor button configurations will not be dispayed
- On XenForo 1.2.x, TinyMCE button configurations will not be displayed if you don't have installed the TinyMCE Quattro addon or if it's disabled...
If you do that, TinyMCE Quattro config will only work with XenForo 1.1.x, so it shouldn't be done like this$mceSupport = (XenForo_Application::get('options')->get('currentVersionId') < 1020031);
Thank you for your feedback, I will try to pack this update tonight or tomorrow morning.@cclaerhout i have tests for new helper "editors" (but only on xf 1.2.3) and bbcode protection from patches. All tests is passed
Version 2.3.4 released
Thanks to @fly_indiz
- Fix editors checker
- Fix nested Bb Codes permissions
This update is highly recommended for all websites using permissions with their BB Codes.
For the highlight helper, yes. I haven't written the needed TMS and anyway I'm using now a new listener to add plugins.im having a problem with orphan buttons
[BBM] Highlight Helper
& QuoteMe (orphan button) not showing in the editor when added and enabled.. is this a 1.1.x restriction ?
[fa=fa-camera-retro|left|fa-2x][SIZE=7][B]Text[/B] [/SIZE][/fa]
[fa=fa-lg|fa-square-o|fa-stack-2x|fa-stack|fa-twitter|fa-stack-1x] Piou piou[/fa]
public static function editor_setup(XenForo_View $view, $formCtrlName, &$message, array &$editorOptions, &$showWysiwyg)
{
if ($showWysiwyg)
{
$editorOptions['json']['buttons']['insertAlbum'] = array(
'title' => new XenForo_Phrase('sonnb_xengallery_insert_album'),
'tag' => 'album'
);
$editorOptions['json']['buttons']['insertContent'] = array(
'title' => new XenForo_Phrase('sonnb_xengallery_insert_content'),
'tag' => 'content'
);
}
}
@cclaerhout Do you mind to update this addon to remove conflict with XenGallery? Your current way for adding buttons by extends editorOptions.buttons will break other addons that add buttons to editor.
If buttons are just to insert bbcode tag (without popup), I will do not need to use any JS as XF already supported it.
PHP:public static function editor_setup(XenForo_View $view, $formCtrlName, &$message, array &$editorOptions, &$showWysiwyg) { if ($showWysiwyg) { $editorOptions['json']['buttons']['insertAlbum'] = array( 'title' => new XenForo_Phrase('sonnb_xengallery_insert_album'), 'tag' => 'album' ); $editorOptions['json']['buttons']['insertContent'] = array( 'title' => new XenForo_Phrase('sonnb_xengallery_insert_content'), 'tag' => 'content' ); } }
If popup required then some JS are needed but will not break other buttons as we already have class selector for each buttons. So do not need to extend current editorOptions anymore.
Later I will update XenGallery to mark it as an option. You might disable editor's buttons of XenGallery until he made an update@cclaerhout, please, fix it. My styles do not work properly.
We use essential cookies to make this site work, and optional cookies to enhance your experience.