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

Commit

Permalink
Fix how content is retrieved to support inline elements
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Jun 5, 2015
1 parent 2299fed commit cafdfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ angular.module('ui.tinymce', [])
if (options.raw === true) {
ngModel.$setViewValue(editor.getContent({format: 'text'}).trim());
} else {
ngModel.$setViewValue(element.val());
ngModel.$setViewValue(editor.getContent().trim());
}
if (!$rootScope.$$phase) {
scope.$apply();
Expand Down

0 comments on commit cafdfa7

Please sign in to comment.