Skip to content

Commit

Permalink
Fixed a bug derivated from BBB-107/BBB-109.
Browse files Browse the repository at this point in the history
The CKEDITOR was not working after doing cancel or abandoning the UI
  • Loading branch information
jfederico committed Aug 11, 2014
1 parent 2b7a3b5 commit cdeef61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bbb-tool/tool/src/webapp/js/bbb_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,14 @@ var BBBUtils;
toolbarSet = !toolBarSet ? 'Basic' : toolBarSet;
width = !width ? '600' : width;
height = !height ? '320' : height;
//Make sure the editor doesn't exist
if( typeof CKEDITOR != "undefined" ) {
var editor = CKEDITOR.instances[textAreaId];
if ( editor != null ) {
editor.destroy();
}
}
//Launch the editor
sakai.editor.launch(textAreaId, {toolbarSet: toolbarSet, toolbarTemplate: toolbarTemplate}, width, height );
};

Expand Down

0 comments on commit cdeef61

Please sign in to comment.