TinyMCE Configuration and Limitations

Using TinyMCE editor in bbPress topics and replies form can be enabled with the Content Editor feature in GD bbPress Toolbox Pro. Beside settings in the feature panel, there are few more important things to know and configure to have the TinyMCE work properly.

Advanced Settings

There are two special options that GD bbPress Toolbox Pro can use to improve the TinyMCE usability. Both options are
found on the Features -> Tweaks panel.

  • Expand KSES allowed HTML tags and attributes: this will expand the list of allowed HTML tags and attributes for use in the editor. If you don’t use this, bbPress will strip out most of the HTML you may use in the TinyMCE. It is best to set this to an Expanded range of tags and attributes.
  • Allow Participants to use Media Library: this option will allow the normal user (Participants) to use Media Button and Media Library. By default, bbPress user roles allow this for keymaster and moderator roles, and normal users can’t insert media in the TinyMCE editor.

Both of these options are located in the Tweaks feature.

TinyMCE Implementation Limitations

GD bbPress Toolbox Pro adds TinyMCE into the topic and replies to editors, and beyond few settings, there is no other
control over the way the TinyMCE works.

  • TinyMCE is added using with bbPress hidden feature using the core WordPress function, and only settings implemented through this function are supported.
  • Third party plugins that can edit the TinyMCE and add extra buttons, usually don’t work on the website frontend, and can’t add buttons to the TinyMCE in the bbPress editors.
  • GD bbPress Toolbox Pro can’t change buttons (add or remove them) in the TinyMCE editor toolbar.
  • GD bbPress Toolbox Pro can’t control how the Media Library is used through Media Button in the TinyMCE editor.

Other potential problems

Once the editor is added to the website front end, theme styling and theme scripts can cause problems with the editor:

  • Themes with aggressive styling selector rules can change the color of the buttons, make buttons too big or too small, make some areas of the editor unusable. GD bbPress Toolbox Pro includes an extra stylesheet to try and prevent some of these things front happening, but in the end, themes can do a lot of things beyond plugin control.
  • In rare cases, theme or other plugins can even interfere with the TinyMCE working at all due to JavaScript errors, and you can end up with missing content during the edit, popups in TinyMCE not working, and more. You can use a browser debugger to find exactly what JavaScript errors you have on your website.
  • The general rule is: fix all JavaScript errors, no matter what causes them. JavaScript can be very fragile, and breaking one JavaScript part of the code can have a negative effect on other things, especially if using jQuery (and most of the WordPress uses jQuery).
  • If you run into such issues, you need to consult your theme author to fix the issues that are causing TinyMCE problems.
  • Dev4Press can’t provide any support related to the issues with TinyMCE!
0
0
41
Rate this article

You are not allowed to rate this post.

Leave a Comment