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

Commit 3c581ee

Browse files
committed
Merge pull request #177 from deeg/fix-readonly-mode
Do not set contenteditable to true when in readonly mode
2 parents 7fa0a49 + 6359985 commit 3c581ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinymce.js

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

45-
if (tinyInstance) {
45+
if (tinyInstance && !tinyInstance.settings.readonly) {
4646
tinyInstance.getBody().setAttribute('contenteditable', true);
4747
}
4848
}

0 commit comments

Comments
 (0)