tjohn67658
Member
i update addon ver 2.3.0 thx
even when updating to@XxUnkn0wnxX
My bad, the real template to edit is a different one but you will not have to do it since this is a TinyMCE Quattro template. A fix will be provided in a few minutes.
Version 2.3.0 released
- Editor selection by controller/viewname/forums
- You can now use a custom config of an editor (MCE4/XenForo Redactor editor) in a forum (or by Controller/View) whereas your default setting is to use the other editor.
- This means you can create a configuration for any editor and select to use it wherever you want.
- It's now possible to disable "attach", "email", "img", "media" and "url" tags by usergroups. This method is experimental...
<a href="{xen:link 'posts/{$news.first_post_id}/edit'}" class="item control edit {xen:if $xenOptions.messageInlineEdit, OverlayTrigger}"
data-href="{xen:link 'posts/{$news.first_post_id}/edit-inline'}" data-overlayOptions="{"fixed":false}"
><span></span>{xen:phrase edit}</a>
<xen:require js="js/xenforo/discussion.js" />
I suppose you're using Redactor. It certainly comes from this js integration and the XenForo Js loader that loads first the editor script then the buttons integration script whereas the custom template template with the custom buttons is not yet loaded (js object = BBM_Redactor.customButtonsConfig). I think I had this problem with the MarkItUp reverse option and I've used a dirty trick (ref). I also had this problem with TinyQuattro and I've used a better JS method to be sure the template is loaded before to launch the JavaScript (ref).@cclaerhout
I add this code to block RecentNews of addon XenPorta to quick edit my post :
But when I click it, all buttons I added didn't displayHTML:<a href="{xen:link 'posts/{$news.first_post_id}/edit'}" class="item control edit {xen:if $xenOptions.messageInlineEdit, OverlayTrigger}" data-href="{xen:link 'posts/{$news.first_post_id}/edit-inline'}" data-overlayOptions="{"fixed":false}" ><span></span>{xen:phrase edit}</a> <xen:require js="js/xenforo/discussion.js" />
XenForo.BbmCustomEditor = function($textarea) { this.__construct($textarea); };
XenForo.BbmCustomEditor = function($textarea) {
var self = this;
setTimeout(function(){self.__construct($textarea)}, 0);
};
When I set bbm_redactor.js after bb_code_edit.js, all buttons I added didn't display at all.Edit: no, sorry, it's not the same problem that TinyMCE, actually the custom buttons must be set before the Redactor framework is loaded. So the above change will do nothing. I can't think clearly right now and since the XenForo Editor Framework is not documented, it will require further tests. Try to check in your JS console (when you trigger the overlay) if the if the file "bbm_redactor.js" is set before or after "bb_code_edit.js".
Yes, that's expected. I mean what you were trying to do with the portal block is to edit inline a message isn't it? If yes, when you trigger an overlay, some javascript files are loaded by XenForo (you can see them in the console). Check the order of those loadings. And give me by pm the full block with your custom code, otherwise I can't test it.When I set bbm_redactor.js after bb_code_edit.js, all buttons I added didn't display at all.
XenForo.BbCodeWysiwygEditor = function($textarea) { this.__construct($textarea); };
XenForo.BbCodeWysiwygEditor = function($textarea) {
var self = this;
setTimeout(function(){self.__construct($textarea)}, 0);
};
XenForo.BbCodeWysiwygEditor = function($textarea) {
var self = this;
setTimeout(function(){self.__construct($textarea)}, 10);
};
XenForo.BbmCustomEditor = function($textarea) { this.__construct($textarea); };
XenForo.BbmCustomEditor = function($textarea) {
var self = this;
setTimeout(function(){self.__construct($textarea)}, 0);
};
XenForo.BbmCustomEditor = function($textarea) { this.__construct($textarea); };
That's at the third line (unminified script): https://github.com/cclaerhout/xen_BBM_v2/blob/master/upload/js/bbm/redactor/bbm_redactor.src.jsThanks you very much, @cclaerhout
But I can't find
in bbm_redactor.js file.Code:XenForo.BbmCustomEditor = function($textarea) { this.__construct($textarea); };
The premium BbCode was one of my previous addon which code was not clean. Now all Bb Codes can have their content protected in a cleaner way. You just need to edit the Bb Code and apply it some view permissions. See this screenshot.I need some help. Before upgrading to 1.2.2 I had an important BBCODE called premium that let me hide the content from certain usergroups. Now I'm trying to use this addon to replicate his functionality but with no luck.
I've changed the name of the [protected] BB in [premium] but I'm not able to set it to work. I'd like that the [premium] content is hidden from everyone but some specific usergroups.
Can someone tell me how to set it?
We use essential cookies to make this site work, and optional cookies to enhance your experience.