Opened 8 years ago

Closed 5 years ago

#5510 closed Bug (duplicate)

Style plugin not working on selection

Reported by: Gilles van den Hoven Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (CKEditor) - OLD
Keywords: Cc: gilles@…

Description

The Styles combo does not work as expected. I have this custom configuration:

{
	enterMode: CKEDITOR.ENTER_BR,
	removePlugins: 'elementspath',
	startupOutlineBlocks: true
}


When i start out with this (in the skins.html demo):

<textarea cols="80" id="editor_v2" name="editor_v2" rows="10">&lt;h1&gt;This is some &lt;h3&gt;&lt;strong&gt;sample text&lt;/strong&gt;&lt;/h3&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/h1&gt;</textarea>

1) Select the text "You Are"
2) Click the "Heading 2" in the styles combo
3) Everything becomes "Heading 2" e.g. all tekst.

Expected behaviour is that the text "You Are" is wrapped with <h2></h2> tags.

Attachments (4)

pre.jpg (52.2 KB) - added by Gilles van den Hoven 8 years ago.
Pre action
action.jpg (58.9 KB) - added by Gilles van den Hoven 8 years ago.
during action
post.jpg (59.7 KB) - added by Gilles van den Hoven 8 years ago.
result of action
expected.jpg (58.2 KB) - added by Gilles van den Hoven 8 years ago.
Expected result

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Gilles van den Hoven

Attachment: pre.jpg added

Pre action

Changed 8 years ago by Gilles van den Hoven

Attachment: action.jpg added

during action

Changed 8 years ago by Gilles van den Hoven

Attachment: post.jpg added

result of action

Changed 8 years ago by Gilles van den Hoven

Attachment: expected.jpg added

Expected result

comment:1 Changed 5 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

This is the expected behaviour.

DUP of #5604

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy