Dotclear

Ticket #2070 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Allow customizing CKEditor formats

Reported by: philippe Owned by: nikrou
Priority: normal Milestone: 2.8
Component: module:plugins Version: 2.7.3
Severity: normal Keywords:
Cc:

Description (last modified by philippe) (diff)

By default, CKEditor comes with a format menu which includes h1 and h2 headers

However, in most themes, h1 is blog title and h2 post-title. User should then not be allowed to choose h1 or h2 as headings in a post

Best solution would be to make this setting easier to override in plugin's administration page, by allowing to modify /plugins/dcCKEditor/_post_config.php this way

format_tags: 'p;h3;h4;h5;h6;pre;address',

if I wanted to remove h1 and h2 from editor's format choice

Change History

comment:1 Changed 9 years ago by philippe

  • Description modified (diff)

comment:2 Changed 9 years ago by franck

« However, in most themes, h1 is blog title and h2 post-title. User should then not be allowed to choose h1 or h2 as headings in a post », yes, in XHTML theme but absolutely not in HTML5 ones, where these tags may be used in several places, and also in posts or pages.

comment:3 Changed 9 years ago by franck

  • Type changed from defect to enhancement

comment:4 Changed 9 years ago by philippe

I believe it was never forbidden to have several h1 tags in a page ;)

But anyway, whatever the hn on post-title, I would like children of this block to have sublevel headings. So if post-title is h2 in my theme, I don't want user to insert a h1 in a post.

I understand that it may not be for every need, and can happily go on modifying _post_config.php in dcCKEditor plugin, but if an option allowed to do it, I would be happier ;)

comment:5 Changed 9 years ago by Nicolas <nikrou77@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [8099686135fe]) Allow customizing CKEditor formats Fixes #2070

comment:6 Changed 9 years ago by franck

  • Milestone changed from A definir to 2.8
Note: See TracTickets for help on using tickets.

Sites map