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

Commit 28f9368

Browse files
committed
Merge pull request #178 from angular-ui/dev
Updating v10 candidate to include latest dev changes.
2 parents 7fa0a49 + 3c581ee commit 28f9368

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)