Opened 10 years ago

Closed 8 years ago

Last modified 7 years ago

#5678 closed Bug (invalid)

Styles are used on the next line inconsistently

Reported by: Alex Medina Owned by:
Priority: Normal Milestone:
Component: General Version: 3.2.1
Keywords: Cc: alex@…, lokeshnagpal86@…

Description (last modified by Alfonso Martínez de Lizarrondo)

CKeditor 3.2.1. : Styles are used on the next line inconsistently

This was tested in FF and IE in the demo site.

  • clear the content of the CKeditor textarea
  • write these lines in the textarea
  • select the line with "222222222222" and apply Style "Blue Title"
  • put your cursor at the end of the line and hit the enter (return) key
  • type "this is normal text"
  • => The "Blue Title" style is not used.

However, if you repeat the same process for other style such as variable, the style is used on the next line as well after the newline.

There is inconsistency of style behavior.

*Try to test this behavior with other styles as well with this ticket.

Change History (3)

comment:1 Changed 9 years ago by Lokesh

Cc: lokeshnagpal86@… added
Summary: CKeditor 3.2.1. : Styles are used on the next line inconsistentlyCKeditor 3.4.2. : Styles are used on the next line inconsistently

comment:2 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Description: modified (diff)
Summary: CKeditor 3.4.2. : Styles are used on the next line inconsistentlyStyles are used on the next line inconsistently

Lokesh: please, stop changing the version of reported bugs. It certainly doesn't help at all because it makes it look like a recent problem instead of something related to older changes (or even something that it has been always this way)

comment:3 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

By default with every ENTER pressed the new paragraph is pasted. "Blue Title" is h3 block element which wraps around line of text. It can’t be continued with every ENTER pressed because it would be impossible to get out of it.
By default there is also another option SHIFT+ENTER which inserts BR tags and allows to continue block (Blue Title) style .
So If the user wants to get out of “Blue Title” he/she presses ENTER , if he/she wants to continue the style he/she presses SHIFT+ENTER.

“Variable” style is an inline style which inserts inline tags VAR which are wrapped in P tags. Such inline styles are continued with every line entered. Just look at font-styles. With every ENTER pressed a new paragraph with span is inserted.
If you want to disable this style just unselect it from drop-down list.

Style continuation is a browser dependent issue. Some browsers such as Firefox, make it easy to move in and out element boundaries, while others IE, Opera and Webkit, don't. If you are using Firefox and you are out of element boundaries then the inline style won’t be continued.
Like I’ve said this very special case is browser dependent and is not CKEditor bug and was already described in #7796 and in #8195

Version 0, edited 8 years ago by Jakub Ś (next)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy