Skip to content

Commit

Permalink
Listen to the contentDom event to handle correctly setData calls
Browse files Browse the repository at this point in the history
Pull request
noam-si@19fd0f8
but I don't know how to commit only this one instead of the whole pull
request
  • Loading branch information
AlfonsoML committed Nov 30, 2014
1 parent 5813246 commit 821452a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ <h3>Version history: </h3>
</li>
<li>1.8.2: 12-April-2014. <a href="https://github.com/AlfonsoML/confighelper/pull/8">Protect detection of empty content</a>. Thanks to tanihito.
</li>
<li>1.8.3: Force SCAYT to use the language that it's specified as the language for the contents
<li>1.8.3: 30-November-2014. Force SCAYT to use the language that it's specified as the language for the contents.<br>
<a href="https://github.com/AlfonsoML/confighelper/pull/13">Listen to the contentDom event to avoid problems when calling setData in WYSIWYG mode</a>. Thanks to noam-si.
</li>
</ol>

Expand Down
1 change: 1 addition & 0 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ CKEDITOR.plugins.add( 'confighelper',

editor.on('blur', addPlaceholder, null, placeholder);
editor.on('mode', addPlaceholder, null, placeholder);
editor.on('contentDom', addPlaceholder, null, placeholder);

editor.on('focus', removePlaceholder);
editor.on('beforeModeUnload', removePlaceholder);
Expand Down

0 comments on commit 821452a

Please sign in to comment.