Ticket #5510 (closed Bug: duplicate)

Opened 4 years ago

Last modified 2 years ago

Style plugin not working on selection

Reported by: Webunity 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

pre.jpg (52.2 KB) - added by Webunity 4 years ago.
Pre action
action.jpg (58.9 KB) - added by Webunity 4 years ago.
during action
post.jpg (59.7 KB) - added by Webunity 4 years ago.
result of action
expected.jpg (58.2 KB) - added by Webunity 4 years ago.
Expected result

Change History

Changed 4 years ago by Webunity

Pre action

Changed 4 years ago by Webunity

during action

Changed 4 years ago by Webunity

result of action

Changed 4 years ago by Webunity

Expected result

comment:1 Changed 2 years ago by j.swiderski

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

This is the expected behaviour.

DUP of #5604

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