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?

FatTony1952
 
jeckerman replied on at Permalink Reply
jeckerman
Hi,
Got the file path right here, will send it in a few mins. (typing from mobile)

- Josh
jeckerman replied on at Permalink Reply
jeckerman
Hi,

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
FatTony1952 replied on at Permalink Reply
FatTony1952
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.

_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',

and
// Default settings
         t.settings = s = extend({
            theme_advanced_path : true,....theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
jeckerman replied on at Permalink Reply
jeckerman
In your Sitewide Settings under Dashboard, what do you have the default editor set to? (Simple, Advanced, etc..)

- Josh
FatTony1952 replied on at Permalink Reply 2 Attachments
FatTony1952
Advanced. Screen grabs attached.
jeckerman replied on at Permalink Reply
jeckerman
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",
vernb replied on at Permalink Reply
vernb
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???
JeffPaetkau replied on at Permalink Reply
JeffPaetkau
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...