NSM TinyMCE
Written by: Leevi Graham (Twitter | Website), Technical Director of Newism, based on LG TinyMCE (EE1.x)
NSM TinyMCE is an ExpressionEngine 2 custom field that converts standard text areas to TinyMCE (Moxicode) WYSIWYG editor.
Features
- Multiple configurations
- Per field configuration
- Matrix integration
Screenshots
Installation
Download
- Download the master branch
- Rename the downloaded folder to
nsm_tiny_mce
- Move the folder to
system/expressionengine/third_party
- Move
themes/third_party/nsm_tiny_mce
from the downloaded files tothemes/third_party
in your EE install.
Config files
TinyMCE config files are located in /system/expressionengine/third_party/nsm_tiny_mce/javascript/tiny_mce_config
.
Configuration example:
<script language="javascript" type="text/javascript">
NsmTinyMCEConfigs.basic = {
button_tile_map : true,
mode: 'none', // Must be none.
theme : 'advanced',
width : "99%",
};
</script>
Configuration files are just a json object of TinyMCE configuration options that extends the NsmTinyMCEConfigs
global object.
The key must be named the same as the actual file name. ie. If the configuration file is simple.js
the NsmTinyMCEConfigs
key will be simple
.
** Important **: The mode
key must be set to none, not textareas
or exact.
Notes
This custom field has been tested on EE 2.0.2 Build 20100430
TinyMCE version 3.3.5.1 is included with the addon. Please review the TinyMCE license.
Todo
- Add PHP Compressor support
- Add NSM Addon Updater integration
- Fix Matrix cell settings bug