LG TinyMCE 2 - custom FieldFrame fieldtype for ExpressionEngine 1.6
LG TinyMCE 2 creates a new FieldFrame fieldtype that replaces the default ExpressionEngine textarea field with a TinyMCE WYSIWYG editor. Version 2.0 introduces customisable toolbar configurations and SAEF / Fieldframe support.
- LG TinyMCE 2.0.0 - Creating a new custom field
- LG TinyMCE 2.0.0 - Publish form w/ multiple toolbar configs
Note this version is not compatible with LG TinyMCE version 1
LG TinyMCE 2 is a FieldFrame fieldtype and therefore requires:
- PHP5 or later
- ExpressionEngine 1.6 (EE2 support under development)
- FieldFrame 1.3.5
- TinyMCE 1.3 or later (Bundled in the download but can be updated independently)
Installing LG TinyMCE is easy just follow the steps below:
- Download & install FieldFrame
- Download LG TinyMCE 2
- Copy
/system/extensions/fieldtypes/lg_tiny_mce
tosystem/extensions/fieldtypes/
- Copy
/system/language/english/lang.lg_tiny_mce.php
to/system/language/english/
- Enable LG TinyMCE in the fieldtypes Manager
LG TinyMCE 2 allows developers to create custom TinyMCE configurations that are assigned to one or more editor instances (custom fields). This allows you to:
- Create custom toolbars
- Load specific TinyMCE plugins
- Modify output before it's saved
- and much much more...
Custom configurations are saved in /system/extensions/fieldtypes/lg_tiny_mce/tiny_mce_config/
. Config files are javascript files containing a TinyMCE init
function. Two sample configurations are provided: "Basic" & "Advanced".
// Basic configuration for TinyMCE listing all the options
tinyMCE.init({
button_tile_map : true,
editor_selector : 'lg_tinymce_basic',
mode:'textareas',
theme : 'advanced',
height : 150,
width : "99%",
});
If you create your own TinyMCE configs make sure you include the following attribute:
editor_selector : 'lg_tinymce_xxx'
xxx
represents the file name without the .js
extension. ie:
// basic.js TinyMCE configuration file
editor_selector : 'lg_tinymce_basic'
// advanced.js TinyMCE configuration file
editor_selector : 'lg_tinymce_advanced'
- Complete rewrite as a FieldFrame fieldtype
- Bundled TinyMCE
- Updated default settings
- Added hidden field for formatting
- Integrated LG Addon Updater
- Tiny bug fix in TinyMCE configuration
- Added donation link to extension settings
- Added MSM Compatibility
- Rewrote extension settings panel
- Added update checking
- Added number of rows option.
- Changed method names to follow new internal coding standards
- Source code commenting in PHPDoc syntax
- Added Slovak language file
- Fixed bug with GZIP option. Both GZIP and unzipped files where being loaded.
- Minor Bug Fix
- Updated documentation
- Minor Bug Fix
- Accepted into the official ExpressionEngine Addon repository
- Whitespace fix inline with EE Developer Guidelines
- Reduced number of preg_match methods
- Default configuration update
- Small memory improvement
- Added GZip compression option
- Initial Release
Ownership of this software always remains property of the author.
You may:
- Modify the software for your own projects
- Use the software on personal and commercial projects
You may not:
- Resell or redistribute the software in any form or manner without permission of the author
- Remove the license / copyright / author credits
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.