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

Commit 409a162

Browse files
committed
Fix broken code
1 parent a459764 commit 409a162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tinymce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ angular.module('ui.tinymce', [])
1616

1717
var expression, options, tinyInstance,
1818
updateView = function (editor) {
19-
if(typeof options.raw !== 'undefined' && options.raw == true) {
19+
if(typeof options.raw !== 'undefined' && options.raw === true) {
2020
ngModel.$setViewValue(editor.getContent({format: 'text'}).trim());
2121
} else {
22-
ngModel.$setViewValue(elm.val());
22+
ngModel.$setViewValue(element.val());
2323
}
2424
if (!$rootScope.$$phase) {
2525
scope.$apply();

0 commit comments

Comments
 (0)