Adding H1 and H2 headings to CKEditor Format menu

591 views
Skip to first unread message

Brian Ross

unread,
Feb 15, 2013, 10:12:41 PM2/15/13
to apostr...@googlegroups.com
My app.yml has added back h1 and h2 to the ckeditor config:

a:
  ckEditor_config:
    format_tags: 'p;h1;h2;h3;h4;h5;h6;pre'

The entries show up in the editor but when I apply them, they disappear upon save. Do I need to add them somewhere else as well or clear some cache besides symfony's? 

Thanks,
Brian

Brian Ross

unread,
Feb 15, 2013, 10:19:28 PM2/15/13
to apostr...@googlegroups.com
Nevermind, looks like you also have to explicitly set allowed tags on aToolkit for the richText filter to prevent them from being stripped:

aToolkit:
    allowed_tags: [h1, h2, ...]

Tom Boutell

unread,
Feb 16, 2013, 9:57:44 AM2/16/13
to apostr...@googlegroups.com
Bingo!

This is a great feature, because it prevents pastes from Word and
whatever else from totally munging pages, but it does require
adjustment sometimes.
> --
> You received this message because you are subscribed to the Google Groups
> "apostrophenow" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to apostropheno...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
Reply all
Reply to author
Forward
0 new messages