Ticket #5666 (closed Bug: invalid)

Opened 4 years ago

Last modified 4 years ago

CKeditor 3.2.1 : the attribute class is inserted by CKeditor

Reported by: amedina5511 Owned by:
Priority: Normal Milestone:
Component: General Version: 3.2.1
Keywords: Cc:

Description

CKeditor 3.2.1 : the attribute class is inserted by CKeditor

Tested on FireFox

  • Empty the CKeditor textarea content
  • click on Source button
  • Paste the following html source

<p class="pa1">

this is a paragraph with class defined</p>

  • click on Source button again
  • enter one or two paragraphs such as (without the quotes)

"this is a new paragraph" "this other line should does not have a class attribute defined"

  • Note how the newly added paragraphs have the same class name as the first paragraph.

Please test other attributes as well. I don't think CKeditor should reuse the last tag's attributes. If so, please cofirm that this is how CKeditor works.

Change History

comment:1 Changed 4 years ago by alfonsoml

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

Yes, that's the expected behavior.

comment:2 Changed 4 years ago by amedina5511

  • Status changed from closed to reopened
  • Resolution invalid deleted

Remember, there is no way to undo this with CKeditor. In other words, if I use a class attribute, the next lines I entered are forced to use this attribute. Furthermore, CKeditor does not allow the user to undo/remove the class attribute. The only way to remove the class attribute is to manually remove it from the html source code.

Please confirm this is expected behavior (the user having to change the html source code manually sounds undesirable to me).

comment:3 Changed 4 years ago by fredck

  • Status changed from reopened to closed
  • Resolution set to invalid

Yes, this is the expected behavior for now, as there is also no way to apply the class expect by including it on the source code manually also... in other words, currently, you're just using the same feature to add and remove the class.

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