Opened 11 years ago

Closed 11 years ago

#10996 closed Bug (duplicate)

Additional Paragraph Format styles doesn't get applied

Reported by: Nachiket Patel Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 4.2
Keywords: Cc:

Description

Added additional items in 'Paragraph Format' dropdown using config.js. Few of them are working and few are not working.

Following doesn't work.

    config.format_small = { element: 'small', name: 'Small' };
    config.format_blockquote = { element: 'blockquote', name: 'Blockquote' };

Following works.

    config.format_pre = { element: 'pre', name: 'Code Format' };

Working sample: http://jsfiddle.net/nachiket/44hSH/ (Point 2)

Tested on: Mac OS X 10.7+ and latest Chrome (29+)

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

To add custom tags to format you can use the following:

var editor = CKEDITOR.replace( 'editor1', {
				format_tags : 'h1;h2;h3;h4;h5;h6;p;plead;small;blockquote;pre;abc',
				format_abc : { name : 'abc', element: 'div', styles: { 'font-style': 'italic', 'font-size' : '30px' } },
				format_plead : { element : 'div', name : 'Plead'},
				format_small : { element: 'small', name: 'Small' },
				format_blockquote : { element: 'blockquote', name: 'Blockquote' },
				format_pre : { element: 'pre', name: 'Code Format' }
});

This however in our opinion is invalid. For such requirements styles and not format should be used.
We have another unspoken rule here: for format only block tags should be used and not inline ones. This part of the ticket is invalid.

Part about blockquote is true but has already been reported in #8809.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy