Skip to content

Commit

Permalink
Ensure inline language setting takes precedence for CKEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohal committed Jun 24, 2016
1 parent fd47a0d commit 572d7d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/ckeditor-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
var $this = $(this);
var confValue = $this.data('onload-ckeditor');

if (language) {
confObj.language = language;
}

if (confValue) {
if (typeof confValue === 'object') {
confObj = confValue;
Expand All @@ -22,10 +26,6 @@
}
}

if (language) {
confObj.language = language;
}

$this.ckeditor(confObj);
});
});
Expand Down

0 comments on commit 572d7d5

Please sign in to comment.