(<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">({xen:phrase edit})</a>
<script src="{xen:helper javaScriptUrl, '{$javaScriptSource}/bbm/redactor/bbm_redactor.js?_v={$xenOptions.jsVersion}'}"></script>
<xen:if is="{$visitor.user_id}">
<script src="{xen:helper javaScriptUrl, '{$javaScriptSource}/bbm/redactor/bbm_redactor.js?_v={$xenOptions.jsVersion}'}"></script>
</xen:if>
!function(n,t,i){var e=XenForo.create,f=!1,u=!1;XenForo.create=function(t,r,o){t=="XenForo.BbCodeWysiwygEditor"&&(t="XenForo.bbmBridge"),e(t,r,o),t=="XenForo.BbmCustomEditor"&&(u=!0,f&&n(i).trigger("bbmLoadEd"))},XenForo.bbmBridge=function(t){var e=this,r=function(){new XenForo.BbCodeWysiwygEditor(t)};if(u)r();else{n(i).on("bbmLoadEd",function(){r()});f=!0}}}(jQuery,this,document);
!function($, window, document, undefined)
{
var xenCreate = XenForo.create,
BbCodeWysiwygEditorToLoad = false, BbmCustomEditorLoaded = false;
XenForo.create = function(className, element, extra)
{
if(className == 'XenForo.BbCodeWysiwygEditor') {
className = 'XenForo.bbmBridge';
}
xenCreate(className, element, extra);
if(className == 'XenForo.BbmCustomEditor') {
BbmCustomEditorLoaded = true;
if(BbCodeWysiwygEditorToLoad){
$(document).trigger('bbmLoadEd');
}
}
}
XenForo.bbmBridge = function($textarea){
var self = this;
var loadEditor = function(){
new XenForo.BbCodeWysiwygEditor($textarea);
};
if(!BbmCustomEditorLoaded){
$(document).on('bbmLoadEd', function(e){
loadEditor();
});
BbCodeWysiwygEditorToLoad = true;
}else{
loadEditor();
}
}
}
(jQuery, this, document);
You've right. Do this modification:I tried to install last version and there is an error when install :
Please enter a valid callback method (BBM_Listeners_BbCode::listen).
Thank you so much. I've tested this version.@Lil.Tee
Since you have an easy way to test if it would work or not, could you please test this release (I don't have time and I don't use Redactor on my live boards):
https://github.com/cclaerhout/xen_BBM_v2/archive/master.zip
There's a new option about what we've talked (in the Buttons Manager options):
View attachment 66866
Thanks for your feedback. That's strange I've made the test more then 20 times (x2) with another addon that sent me a developer to test a kind of similar problem that had TinyMCE before and it worked every time. Anyway since the default option is to load the full js, that should not be a problem.Thank you so much. I've tested this version.
As you have said, "Included the Bbm Redactor loader will add only a few bytes of code, but included the main Bbm Redactor Javascript is the safest solution." Because If I chose "Bbm Redactor loader", sometime it not work.
Thank you again !!
Version 2.6.2.1 released
- Fix listener reference of previous version - thanks to kezako
(If you didn't see the problem, it simply means you kept on your server the former files)
- Add a Bbm Redactor loader option to be sure to load custom config when the first editor on the page is loaded from a json request
Thanks to Lee.Tee for his testings and feedbacks
My nickname is Lil.Tee, not Lee.Teecclaerhout updated BbCodes & Buttons Manager with a new update entry:
Version 2.6.2.1 released
Version 2.6.2.1 released
- Fix listener reference of previous version - thanks to kezako
(If you didn't see the problem, it simply means you kept on your server the former files)- Add a Bbm Redactor loader option to be sure to load custom config when the first editor on the page is loaded from a json request
Thanks to Lee.Tee for his testings and feedbacks
Read the rest of this update entry...
That was the easiest fix you've asked me for this week.My nickname is Lil.Tee, not Lee.Tee![]()
[URL='http://someplace.com']Some place[/URL]
No, I can't reproduce it neither Redactor (which has been tested quite a lot during the last release) nor with TinyMCE.If I fast edit a post then are my custom buttons gone, any idea why?
I can't reproduce the problem on my boards. See the screenshot.I am having problem with BBCode...
Code:[URL='http://someplace.com']Some place[/URL]
I write to entries using the URL bbcode
If is deactivate BBcode Manager, everything works.
- the first line will output as expected.
- second line output text without conversion
Test message
No, I can't reproduce it neither Redactor (which has been tested quite a lot during the last release) nor with TinyMCE..
I've told you I will not support two different editors on the same page. If you load a custom Redactor editor on the quickreply, you must load the same config on the edit inline overlay window (TinyMCE Quattro being the default one) otherwise you will just have a fallback of the Redactor editor.Are you useing the same "Bbm Editor Configuration by Controller" Settings as me?
I have the TinyMCE only on the more options page. So I have not 2 editors on one page but the fast edit has not the buttons who I have added only on the fast reply.I've told you I will not support two different editors on the same page. If you load a custom Redactor editor on the quickreply, you must load the same config on the edit inline overlay window (TinyMCE Quattro being the default one) otherwise you will just have a fallback of the Redactor editor.
We use essential cookies to make this site work, and optional cookies to enhance your experience.