b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Mermaid Diagrams Plugin
  • Escape Code Plugin »

TinyMCE Plugin

Categories: Other Plugins, 3.x (incomplete list), 4.x (incomplete list), 5.x, Bundled plugin, 6.x
Bundled plugin: If you're using a b2evolution version that supports this plugin, it is already in your plugins folder. There is no need to download it. If it is not installed yet, simply click "Install new" in your plugin list.
TinyMCE Plugin

The TinyMCE Plugin allows you to integrate TinyMCE as a RTE (Rich Text Editor) - also known as WYSIWYG ("What you see is what you get") - for editing items and comments.

Author
Last tested in version

Plugin Settings

TinyMCE Plugin
  • Use TinyMCE (default): check if you would like to use TinyMCE as the default editor. Can be overridden by users in their profile’s Advanced Tab.
  • Use compressor: check to enable the TinyMCE compressor that should reduce the overall download and initialization time for TinyMCE.
  • Context menu: check to enable extra context menu entries for the editor. Warning: Enabling this will disable browser-based spell checking.
  • Browser spell checking: check to enable browser-based spell checking.
  • Advanced paste support: check to enable support for easily pasting word and plain text files. This will enable the paste plugin of TinyMCE.
  • Directionality support: check to add directionality icons and enable TinyMCE to better handle languages that is written from right to left. This will enable the directionality plugin of TinyMCE.
  • Custom TinyMCE init: add your own custom initialization configuration.

Custom Initialization Options

The following options can be enabled by adding the referenced values to the Custom TinyMCE init at System > Plugins > TinyMCE.

Manage plugins

As explained here: https://www.tiny.cloud/docs/plugins/, TinyMCE is delivered using its own plugins system. By using ,plugins : "plugin1,plugin2" you may control which plugins you want to load into your editor. The following list contains the default hard-coded plugins, so if you want to keep them, just include the whole list followed by the rest of plugins of your preference:

image, importcss, link, pagebreak, morebreak, textcolor, media, nonbreaking, charmap, fullscreen, table, searchreplace, autocomplete, lists, advlist, evo_view

The resultant list should be something like: ,plugins : "image, importcss, link, pagebreak, morebreak, textcolor, media, nonbreaking, charmap, fullscreen, table, searchreplace, autocomplete, advlist, evo_view, plugin1, plugin2"

Please note that some plugins not listed above are conditionally loaded according to other configuration parameters.

This mechanism may be improved soon.

Enabling advanced image properties tab

This action will enable a second tab inside the image properties edition window with more configuration options.

  1. Go to the TinyMCE settings screen (System > Plugins > TinyMCE).
  2. Add ,image_advtab: true at the end of the content of the field Custom TinyMCE init

Enable browser’s native spell checker

This action will add spell checking when you use the TinyMCE editor, only for those web browsers where this feature is available.

  1. Go to the TinyMCE settings screen (System > Plugins > TinyMCE).
  2. Add ,browser_spellcheck : true at the end of the content of the field Custom TinyMCE init

For a complete reference about the usage of TinyMCE, please go to: https://www.tinymce.com/docs/

Per Collection Settings

TinyMCE Plugin

You can manage the use of TinyMCE editor on a per collection basis. You have to option to enable TinyMCE in the front-office and back-office separately for either posts or comments.

Notes for Developers

You can program some actions to be included into the TinyMCE’s functionality by using the following events:

tinymce_extend_buttons

Adds as many buttons as you want to the fourth toolbar of the editor.

Include this method in your plugin’s main class:

function tinymce_extend_buttons( &$params ) {
	array_push($params["tinymce_buttons"], "button-name");
}

tinymce_extend_plugins

Loads additional TinyMCE’s plugins. You can programatically force TinyMCE to load more plugins, in addition to its defaults and the ones defined in the Custom TinyMCE init explained above.

Include this method in your plugin’s main class:

function tinymce_extend_plugins( &$params ) {
	array_push($params["tinymce_plugins"], "plugin-name");
}

TinyMCE is now a b2evolution’s built-in plugin. The following information will be kept on this page as a reference for users that might still be using any outdated version. We strongly encourage you to upgrade as soon as possible to the latest version of b2evolution.

Location

The TinyMCE plugin’s source is hosted in the Plugins Repository at: https://evocms-plugins.svn.sourceforge.net/svnroot/evocms-plugins/tinymce_plugin/.

It can be downloaded at: Sourceforge.net and checked out using SVN:

svn checkout https://evocms-plugins.svn.sourceforge.net/svnroot/evocms-plugins/tinymce_plugin/trunk tinymce_plugin

Requirements

This plugin requires b2evolution 1.8 or later, but recommends 1.9 (for interaction with other plugins, which also work with the textarea).
Version 0.6 of the plugin adds compatibility fixes for b2evolution 2.0.

Support

  • Please try the most recent version first in case of problems
  • Test if disabling the "Use compressor" setting solves the problem. It should always work (and is a bug if it does not), but it helps a lot to know about this when debugging.
  • If that does not solve your problem, report it in the bug tracker.

Changes

Version 0.6
  • Compatibility fixes for b2evolution 2.0
  • Updated TinyMCE to 2.1.2
Version 0.5
  • Updated TinyMCE to 2.1.1.1
  • Added "inlinepopups" plugin to list of default plugins: this uses overlays instead of window popups
  • Removed extended_valid_elements default value, the default values (valid_elements) seem to be fine; better doc about relative_urls
  • Removed theme_advanced_buttons1_add : "fontsizeselect", because it causes usage of FONT tag.
  • Use tinyMCE.execInstanceCommand instead of the IE6 "fixed" mceInsertContent from 0.4
Tags: 6.10.7

1 comment

Comment from: markmagill Member

Mark Magill

This is a great text editor, easily equal to most any you’ll find online. Although you may not recognize it by name, its actually used by many different websites and website scripts and has been for many years. Simple and easy to use, its a good addition to any site.

2015-07-03 @ 21:19


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque