Opened 7 years ago

Closed 7 years ago

#5666 closed Bug (invalid)

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:


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 (3)

comment:1 Changed 7 years ago by alfonsoml

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

Yes, that's the expected behavior.

comment:2 Changed 7 years ago by amedina5511

  • Resolution invalid deleted
  • Status changed from closed to reopened

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 7 years ago by fredck

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

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 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy