Skip to content

Commit

Permalink
bugfix: broken modal window in CKEditor integration when open "table"…
Browse files Browse the repository at this point in the history
… tool #263
  • Loading branch information
psolom committed Nov 20, 2017
1 parent f17d596 commit ac8e4eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,15 @@ <h4 class="modal-title">Modal title</h4>

var tabCount = dialogDefinition.contents.length;
for (var i = 0; i < tabCount; i++) {
var browseButton = dialogDefinition.contents[i].get('browse');
var dialogTab = dialogDefinition.contents[i];
if (!(dialogTab && typeof dialogTab.get === 'function')) {
continue;
}

var browseButton = dialogTab.get('browse');
if (browseButton !== null) {
browseButton.hidden = false;
browseButton.onClick = function (dialog, i)
{
browseButton.onClick = function (dialog, i) {
editor._.filebrowserSe = this;
var iframe = $("<iframe id='fm-iframe' class='fm-modal'/>").attr({
src: './../index.html' + // Change it to wherever Filemanager is stored.
Expand Down

0 comments on commit ac8e4eb

Please sign in to comment.