I am developing a site that draws the content for the<h1> and <h2> tags dynamically. I would like to remove the capability for my users to reuse these tags and I was wondering if anyone knows the best method/location for removal of the ’Heading 1’ and ’Heading 2’ from the Format dropdown in the TinyMCE plugin?
-
☆ A M B ☆
- 24,524 Posts
Check out the assets/plugins/tinymce/jscripts/tiny_mce/themes/advanced/editor.template.js. Do a search for h1, and you’ll find the whole list of formats in that select menu.
Make sure you keep a copy of the original file just in case!
You can edit a comma-separated list of Block Formats at Resources -> Manage Resources -> Plugins -> TinyMCE -> Configuration.
inertica, thanks that did it.
Hi all,
Does anyone know of a way to restrict or customize the format list in TINYMCE on a per instance basis? (ie, in tinyMCE.init function).
I’m building a CMS for multiple websites and so each has different requirements.
Thanks
Bob