Skip to content

Commit

Permalink
Added onChange handler to editor window so that non-key-based changes…
Browse files Browse the repository at this point in the history
… are saved
  • Loading branch information
turnermm committed Feb 20, 2016
1 parent 8708567 commit cd894f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -773,3 +773,6 @@ Fix for interwiki link shortcuts with .xx parts

17 Feb
Improved handling of draft recovery on unexpected closing

19 Feb
Added onChange handler to editor window so that non-key-based changes are saved
5 changes: 5 additions & 0 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ function FCKeditor_OnComplete( editorInstance )
oDokuWiki_FCKEditorInstance = editorInstance;
editorInstance.on( 'key', handlekeypress, editorInstance );
alert(editorInstance == CKEDITOR.instances.wiki__text);
CKEDITOR.instances.wiki__text.on('change', function(event) {
window.dwfckTextChanged = true;
});
oDokuWiki_FCKEditorInstance.dwiki_user = "$user_type";
oDokuWiki_FCKEditorInstance.dwiki_client = "$client";
oDokuWiki_FCKEditorInstance.dwiki_usergroups = "$user_groups";
Expand Down

0 comments on commit cd894f9

Please sign in to comment.