Opened 8 years ago

Closed 7 years ago

#7533 closed Bug (fixed)

SCAYT plugin becomes enabled after set data

Reported by: Michael Camden Owned by:
Priority: Normal Milestone:
Component: UI : Spell Checker Version: 3.2.2
Keywords: Cc: mcamden@…

Description

We have a two step validation/cleaning process for HTML. When the user presses our save button, we call 'updateElement' on the editor, send the data to our server, clean and return it, then call 'setData' on the editor. If the user disables SCAYT before saving it becomes enabled after the 'setData' call.

Steps to reproduce:

  1. Write some data in the editor
  2. Disable the SCAYT plugin via the toolbar button
  3. Call 'updateElement' on the editor
  4. Call 'setData' on the editor (doesn't matter what data you use)
  5. SCAYT plugin is enabled

Expected result:

  1. Write some data in the editor
  2. Disable the SCAYT plugin via the toolbar button
  3. Call 'updateElement' on the editor
  4. Call 'setData' on the editor (doesn't matter what data you use)
  5. SCAYT plugin is disabled

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: scayt enabled setData removed
Status: newconfirmed
Version: 3.5.23.2.2

Simplified test case:

  1. Open API usage sample
  2. Enable SCAYT
  3. Disable SCAYT
  4. Click "Set Editor Contents" button
  5. Open SCAYT menu or type something (make a spelling mistake) and you will see that it is enabled.

Has happened in all browser from CKEditor version 3.3.2. From version 3.3.2 till 3.3.1 SCAYT is enabled by default but if you turn it off, the behavior is the same.

Before version 3.3.2 js error occurs:
sc_dojo is not defined
caption.xd.js()caption.xd.js (Line 1)
sc_dojo._xdResourceLoaded(function(dojo, dijit, dojox){

comment:2 Changed 7 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: confirmedclosed

Fixed with [7675].

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