Opened 14 years ago

Last modified 14 years ago

#7890 confirmed Bug

Function editor.getData() return incorrect data.

Reported by: Michał Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

This function return 'old' data but check dirty function returns proper value. This is especially visible when switch between source and WYSIWYG mode. Please look at attached file. To reproduce just open attached file and fire any editor command and look at firebug console. This issue is also reported here http://cksource.com/forums/viewtopic.php?t=22532.

Attachments (1)

replacebycode.html (3.8 KB) - added by Michał 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Michał

Attachment: replacebycode.html added

comment:1 Changed 14 years ago by Jakub Ś

Status: newconfirmed
Version: 3.63.0
  1. Copy/Paste provided file to CKEditor.
  2. Open DOM inspector console (e.g. in Firebug) and open HTML file
  3. Place the cursor behind sample text and press bold
  4. Press ENTER and type some text
  5. Switch to source and back to wysiwyg.

Result: The checkDirty() method returns true but the getData() method returns only sample text without changes you have made. You have to do some heavy view switching and new paragraphs pasting for getData() to update content it returns.

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