Skip to content

Commit

Permalink
Bug #148 from github was fixed / SCAYT leaves underlined word after C…
Browse files Browse the repository at this point in the history
…KEditor replace dialog corrects it.
  • Loading branch information
jalners committed Aug 4, 2017
1 parent d8cbdf7 commit bf46eaa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,23 @@ CKEDITOR.on('dialogDefinition', function(dialogDefinitionEvent) {
}
});
}

if (dialogName === 'replace') {
dialog.on('hide', function(hideEvent) {
var editor = hideEvent.sender && hideEvent.sender.getParentEditor(),
plugin = CKEDITOR.plugins.scayt,
scaytInstance = editor.scayt;

if(editor) {
setTimeout(function() {
if(scaytInstance) {
scaytInstance.fire('removeMarkupInDocument', {});
plugin.reloadMarkup(scaytInstance);
}
}, 0);
}
});
}
});

CKEDITOR.on('scaytReady', function() {
Expand Down

0 comments on commit bf46eaa

Please sign in to comment.