Opened 14 years ago

Closed 14 years ago

#5666 closed Bug (invalid)

CKeditor 3.2.1 : the attribute class is inserted by CKeditor

Reported by: Alex Medina 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 (3)

comment:1 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

Yes, that's the expected behavior.

comment:2 Changed 14 years ago by Alex Medina

Resolution: invalid
Status: closedreopened

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 14 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: reopenedclosed

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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy