Opened 8 years ago

Last modified 7 years ago

#8768 confirmed Bug

CKEDITOR.ui.dialog.uiElement.setValue(value, noChangeEvent) does not respect the noChangeEvent parameter

Reported by: dan seto Owned by:
Priority: Normal Milestone:
Component: UI : Dialogs Version: 3.1
Keywords: Cc:

Description

I'm creating a custom dialog where I'm setting the value of a text area

var el = dialog.getContentElement('tab1','description');

el.setValue(result.datastylesheet?,true);

Will always detect that the value of the element has changed. Per the documentation the noChangeEvent parameter should either trigger the change event or not. It seems to be firing the event regardless

Attachments (1)

replacebycode2.html (3.7 KB) - added by Jakub Ś 7 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 in reply to:  description Changed 8 years ago by dan seto

Correction on the

 	var el = dialog.getContentElement('tab1','description');
                            el.setValue(result.data["stylesheet"],false);

Changed 7 years ago by Jakub Ś

Attachment: replacebycode2.html added

comment:2 Changed 7 years ago by Jakub Ś

Keywords: setValue removed
Status: newconfirmed
Version: 3.6.23.1

I have managed to reproduce this problem from CKEditor 3.1. Before tjis version "dialogShow" event was not fired (at least i could not catch it).

To reproduce just put the replacebycode2.html file in _samples folder.

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