Skip to content

Commit ad90df5

Browse files
Mael Vincentwesleycho
authored andcommitted
Update model when an object has been resized
There was a conflict with the plugin table and when we resized images. ng-model was not updated correctly. Update the ng-model on resized. Conflicts: src/tinymce.js
1 parent 154e776 commit ad90df5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tinymce.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ angular.module('ui.tinymce', [])
6262
ed.on('blur', function(e) {
6363
elm.blur();
6464
});
65+
// Update model when an object has been resized (table, image)
66+
ed.on('ObjectResized', function (e) {
67+
ed.save();
68+
updateView();
69+
});
6570
if (configSetup) {
6671
configSetup(ed);
6772
}

0 commit comments

Comments
 (0)