Advanced Rich Text Editor
Permalink
I have H1 - H6 classes for my client's site, but when I switch the editor to Advanced, it only shows H1 - H3.
I have defined all of these classes in both the main.css and the typography.css.
Anyone know how to get those into the Advanced editor?
I have defined all of these classes in both the main.css and the typography.css.
Anyone know how to get those into the Advanced editor?
Hi,
The config/template for tiny_mce advanced is here:
There is also a skins sub-directory.
- Josh
The config/template for tiny_mce advanced is here:
/concrete/js/tiny_mce/themes/editor_template_src.js
There is also a skins sub-directory.
- Josh
Thanks for pointing me to that Josh, but the .js file shows that all h1 - h6 tags should be there, but they're not showing up in the editor.
and
_createBlockFormats : function() { var c, fmts = { p : 'advanced.paragraph', address : 'advanced.address', pre : 'advanced.pre', h1 : 'advanced.h1', h2 : 'advanced.h2', h3 : 'advanced.h3', h4 : 'advanced.h4', h5 : 'advanced.h5', h6 : 'advanced.h6', div : 'advanced.div', blockquote : 'advanced.blockquote', code : 'advanced.code', dt : 'advanced.dt',
Viewing 15 lines of 18 lines. View entire code block.
and
// Default settings t.settings = s = extend({ theme_advanced_path : true,....theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
In your Sitewide Settings under Dashboard, what do you have the default editor set to? (Simple, Advanced, etc..)
- Josh
- Josh
Advanced. Screen grabs attached.
Oh here it is... I was making this more complicated than needed. :-) Select the custom option for editor (where you picked Advanced) and a textbox will have a bunch of options, one of them being this:
theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
Same problem here and I thought I had it cracked.
I posted this on my blog:
http://forestpath.net/blog/2011/concrete-editor-how-to-add-h4-h5-an...
Unfortunately, when you switch to 'Custom' you lose all the 'Advanced' options which for the site I am designing is a real downer!
Have looked in TinyMCE at the editor_template_source.js in the Advanced folder and see all the h tags there but h3 - h6 don't make it through to the C5 editor.
Now WHY is that???
I posted this on my blog:
http://forestpath.net/blog/2011/concrete-editor-how-to-add-h4-h5-an...
Unfortunately, when you switch to 'Custom' you lose all the 'Advanced' options which for the site I am designing is a real downer!
Have looked in TinyMCE at the editor_template_source.js in the Advanced folder and see all the h tags there but h3 - h6 don't make it through to the C5 editor.
Now WHY is that???
This is achieved by over-riding the configuration file for the editor.
Copy concrete/blocks/content/editor_config to blocks/content/editor_config (create the content folder if it does not exist)
There are two lines like this:
theme_advanced_blockformats : “p,address,pre,h1,h2,h3,div,blockquote,cite”
Simply add h4, h5,h6 to each list.
Save editor_config in its new location.
http://forestpath.net/blog/2012/concrete5-editor-how-to-add-h4-h5-a...
Copy concrete/blocks/content/editor_config to blocks/content/editor_config (create the content folder if it does not exist)
There are two lines like this:
theme_advanced_blockformats : “p,address,pre,h1,h2,h3,div,blockquote,cite”
Simply add h4, h5,h6 to each list.
Save editor_config in its new location.
http://forestpath.net/blog/2012/concrete5-editor-how-to-add-h4-h5-a...
Got the file path right here, will send it in a few mins. (typing from mobile)
- Josh