开发者

CKEditor change names and tags in Formatting drop down

Where from can I edit the names and tags inserted when selecting an option from the Formatting drop-down in CKEDitor开发者_开发问答?

Thank you.


Usually, you can set these with the config option 'format_tags', like so: config.format_tags = 'p;pre;h1;h2';

However, a bug exists in drupal's ckeditor.module, where this setting is being overwritten. Go to the /admin/settings/ckeditor folder in your drupal install and edit the settings there.


If you are using the replace method, your code can look like this:

CKEDITOR.replace(element, {
    format_small: {element: 'small', name: 'Small'},
    format_tags: 'p;h1;h2;h3;h4;h5;h6;pre;div;small'
}) ;

I couldn't find any documentation on the "name" parameter and just guessed it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜