Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 5a709b7

Browse files
AnatolyVasilevdeeg
authored andcommitted
(bug):fix body property tinymce issue
Closes #298
1 parent a2ded4e commit 5a709b7

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

dist/tinymce.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gruntFile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module.exports = function (grunt) {
2222
curly:true,
2323
eqeqeq:true,
2424
immed:true,
25-
latedef:true,
2625
newcap:true,
2726
noarg:true,
2827
sub:true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {},
1010
"devDependencies": {
1111
"grunt": "~0.4.4",
12-
"grunt-contrib-jshint": "~0.10.0",
12+
"grunt-contrib-jshint": "1.0.0",
1313
"grunt-contrib-uglify": "~0.11.1",
1414
"grunt-conventional-changelog": "~1.0.0",
1515
"grunt-karma": "~0.8.2",

src/tinymce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ angular.module('ui.tinymce', [])
4444
} else {
4545
ensureInstance();
4646

47-
if (tinyInstance && !tinyInstance.settings.readonly) {
47+
if (tinyInstance && !tinyInstance.settings.readonly && tinyInstance.getDoc()) {
4848
tinyInstance.getBody().setAttribute('contenteditable', true);
4949
}
5050
}

0 commit comments

Comments
 (0)