I'm working on a couple new things for the TinyMCE inputfield in PW to extend it's capabilities toward using third-party plugins and html snippet templates (part of tinymce already).
The thing is, until now you can only implement those stuff if you change the core distribution of it. Not any longer!
I worked out a simple config setup that will give you all the freedom to use it on a per field basis even. So you could setup various templates or plugins for each TinyMCE field separate.
For those interested in checking it out and help testing, I attached a folder with a updated "inputfieldTinyMCE" folder, and additionally added a "tinymce" folder which can be put where you want, but would suggest to put it in your /site/ folder.
InputfieldTinyMCE folder is the one in /wire/modules/Inputfield/.. replace it with this new one.
The tinymce folder contains some files already.
plugins >
- bramus_cssextras // advanced custom styles/ids via content.css
template >
- body_template1.html
- content.css
- body_templates.js
The "bramus_cssextras" plugin is a great third-party plugin: http://www.bram.us/p...amus_cssextras/ I included this as an example how to load third-party plugins. And I use it in all PW projects already.
"body_templates.js" is where you can specify templates which will be available, you then only specify the path to this in the custom field settings, it is like a proxy with an array of templates. It could be even a .php file! This is part of TinyMCE and documentation can be found here: http://www.tinymce.c...Plugin:template . To use template you also need to add "template" button and "template" plugin to enable it.
"content.css" is the css you can add the path to this also in the advanced field settings.
I would really appreciate any help with testing! Feel free to try install any other third-party plugins (not tinymce core plugins), or test out templates.
Also attached a screenshot of the field settings I used to test this all with this setup.
Again in Text form:
theme_advanced_buttons1:
formatselect,bramus_cssextras_classes,bramus_cssextras_ids,|,bold,italic,|,bullist,numlist,|,link,unlink,|,image,|,code,|,fullscreen,|,template
plugins:
inlinepopups,safari,table,media,paste,fullscreen,preelementfix,template
content_css:
/site/tinymce/content.css
Additional TinyMCE settings:
template_external_list_url : /site/tinymce/body_templates.js
Third-party Plugins:
bramus_cssextras : /site/tinymce/plugins/bramus_cssextras
PW-TinyMCE-setup-test3.zip 1.28MB
51 downloads












