TinyMCE Quattro and its wysiwyg bbcodes

TinyMCE Quattro and its wysiwyg bbcodes 2.7.2

No permission to download
I checked the 'Disable on mobile devices?' option but that doesn't seem to be working. Anything else I need to do?
The issue is not coming from this addon, but the BBM. A check control is missing. A new update of the BBM has just been published, so the fix will be added with the next update. If you can't wait, the fix is available on Github (check file upload/library/BBM/Helper/Buttons.php)
 
  • Like
Reactions: sgr
cclaerhout updated TinyMCE Quattro and its wysiwyg bbcodes with a new update entry:

Version 2.5.4 released

Version 2.5.4 released
Information: there's still a bug with the TinyMCE minimum height size on Internet 11. I've looked at it and it seems the problem is coming more from IE 11 than TinyMCE. This bug has been reported to the TinyMCE staff.

Read the rest of this update entry...
 
With the latest release I can't seem to edit my posts. I just get an empty editor. (This is on Firefox 36.0, haven't tested it on anything else.)
 
With the latest release I can't seem to edit my posts. I just get an empty editor. (This is on Firefox 36.0, haven't tested it on anything else.)
This update was really just about updating the mce js files (and adding a small function that can be usefull for other addons). So check in your browser console if you see any error (you can give me by pm the link to your board with a test account).
 
The issue is not coming from this addon, but the BBM. A check control is missing. A new update of the BBM has just been published, so the fix will be added with the next update. If you can't wait, the fix is available on Github (check file upload/library/BBM/Helper/Buttons.php)

Just replaced the file and checked with a user-agent switcher. Seems to be working. Thanks! :)
 
When I create a thread I get an error :

Please enter a valid message.
If you have a dev board, try this addon on it to check if you get the same result. Everything is working fine on my websites. Also check if your board has any JavaScript errors.
 
If you have a dev board, try this addon on it to check if you get the same result. Everything is working fine on my websites. Also check if your board has any JavaScript errors.

Why would it work on a dev board and not on a live one ?

I do not have any Java script errors, everything else is working OK.
 
Why would it work on a dev board and not on a live one ?

I do not have any Java script errors, everything else is working OK.
As said above the test on a dev board would allow to check if you can reproduce your problem and would allow you to disable other addons easily. If you can reproduce it or find something new, contact me by pm.
 
@Olly Wood
@karll

I've managed to reproduce the problem you sent me by pm :
TypeError: n.replace is not a function tinymce.min.js:9:5517
It occurs when the "Menu bar" option is disabled. I'm going to try if the error is coming from the official script (which the js error seems to indicate) or if it's triggered by the XenForo integration plugin that uses a function from the official script.
 
@karll
Could you try the above solution on your board please? I manage to reproduce the problem and to fix it like this on Olly Wood board, but on my dev board I still not manage to trigger the issue.
 
@karll
Could you try the above solution on your board please? I manage to reproduce the problem and to fix it like this on Olly Wood board, but on my dev board I still not manage to trigger the issue.
Yes, I can confirm that it works for me if the Menu bar is turned on. Maybe there is actually a combination of option settings that trigger the problem?
 
Yes, I can confirm that it works for me if the Menu bar is turned on. Maybe there is actually a combination of option settings that trigger the problem?
I found the problems. There were two:
  • An old one that was quite serious: some options didn't really work. The issue: a JS object (well, let's say an associative array) that is completely defined is passed to a function that checks if the object is defined then if its "key" is defined as well: problem once in the function the object is not more defined whereas it was outside the function. No idea why, but it has been fixed by avoiding the extra function.
  • A recent one that comes with the last update of TinyMCE: to reset a text of a button or a menu I was using "object.text(false)". It was working until then, but the false prevents the translation to be done since the function must have changed a little (the replace JS function is done on a bolean it triggers an error of cours: false.replace(...)). The solution is to use an empty string: "object.text('')";
I'm going to put this fix on Github and will release a proper release later.
 
cclaerhout updated TinyMCE Quattro and its wysiwyg bbcodes with a new update entry:

Version 2.5.5 released

Version 2.5.5 released
  • Fix two JavaScript bugs:
    • An old one that was quite serious: some options didn't really work because some of your settings couldn't be retrieved
    • A recent one that comes with the last update of TinyMCE: a official function has been modified, so the integration needed to be updated to prevent an error during the load of JavaScript (was only triggered in some occasions)
    • Thanks to Karll & Olly Wood
  • If you are using...

Read the rest of this update entry...
 
Hello,

My members asked me if we can add more font family ? Is it possible?

Thanks
Before to answer you, be sure to understand what "added a font family" implies. Added a font family doesn't mean every of your users will see it as you would like to. There are "Web Safe Fonts" that should be support by most of browsers. If a font is not supported by a browser (I'm not talking about Google Fonts system here), your users will have to install the font on their system (Windows and Apple fonts are not necessary the same). Note that Firefox doesn't render some fonts on purpose; ie: Wingdings.

The official TinyMCE has a setting that allows you to override its default fonts. It is "font_formats" (ref). The current version of this addon (available on XenForo) doesn't support this setting. I've added some code on the Github version to allow it (commit). If you want to apply these changes, just download the addon on Github (source) ; click on "download zip". You will have a version that supports the setting "font_formats".

To enable this setting, you don't need to edit any JavaScript files, but use the XenForo event system:
  1. Create an addon (purpose: only attribute the extended event to it),
  2. Create a Code Event Listener Editor (your website must be in the dev mode, check on XenForo how to enable the debug mode)
  3. Select the event "tinyquattro_setup", fill the data for your callback (if you don't know what is a callback, ask in the development forum)
  4. Your callback content should be something like this:
    PHP:
    <?php
    class YourCallbackDirectory_Listener
    {
       public static function mceConfiguration($mceConfigObj)
       {
         $fonts = "Andale Mono=andale mono,times;" .
           "Arial=arial,helvetica,sans-serif;" .
           "Arial Black=arial black,avant garde;" .
           "Book Antiqua=book antiqua,palatino;" .
           "Comic Sans MS=comic sans ms,sans-serif;" .
           "Courier New=courier new,courier;" .
           "Georgia=georgia,palatino;" .
           "Helvetica=helvetica;" .
           "Impact=impact,chicago;" .
           "Symbol=symbol;" .
           "Tahoma=tahoma,arial,helvetica,sans-serif;" .
           "Terminal=terminal,monaco;" .
           "Times New Roman=times new roman,times;" .
           "Trebuchet MS=trebuchet ms,geneva;" .
           "Verdana=verdana,geneva;" .
           "Webdings=webdings;" .
           "Wingdings=wingdings,zapf dingbats";
       
         $mceConfigObj->setMceSetting('font_formats', $fonts);
       }
    }

As you can see, this callback will add the setting "font_formats" to your Mce configuration. Every font family has its name then, after the equal sign, its css value (the value can have other font names to try to make the font cross browsers). This setting will override the default font family configuration, which means you can also use it to take back some fonts from the select menu.
 
Back
Top Bottom