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

Commit cafdfa7

Browse files
committed
Fix how content is retrieved to support inline elements
1 parent 2299fed commit cafdfa7

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
@@ -18,7 +18,7 @@ angular.module('ui.tinymce', [])
1818
if (options.raw === true) {
1919
ngModel.$setViewValue(editor.getContent({format: 'text'}).trim());
2020
} else {
21-
ngModel.$setViewValue(element.val());
21+
ngModel.$setViewValue(editor.getContent().trim());
2222
}
2323
if (!$rootScope.$$phase) {
2424
scope.$apply();

0 commit comments

Comments
 (0)