Skip to content

Commit 4e7180a

Browse files
committed
Improvement: Stop saving editor when the editor fires an event
1 parent e5db751 commit 4e7180a

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.0.19-accelo.2
2+
3+
Improvement
4+
5+
- Stop saving editor when the editor fires an event.
6+
17
## 0.0.19-accelo.1
28

39
Fixes

dist/tinymce.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-tinymce",
3-
"version": "0.0.19-accelo.1",
3+
"version": "0.0.19-accelo.2",
44
"descriptin": "This directive allows you to add a tinymce to your form elements.",
55
"author": "https://github.com/angular-ui/ui-tinymce/graphs/contributors",
66
"license": "MIT",

src/tinymce.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ angular.module('ui.tinymce', [])
9494
// - a button has been clicked [ExecCommand]
9595
// - the editor content has been modified [change]
9696
// - the node has changed [NodeChange]
97-
// - after it has been filtered by the PowerPaste plugin [PastePostProcess]
9897
// - an object has been resized (table, image) [ObjectResized]
99-
ed.on('PastePostProcess ExecCommand change NodeChange ObjectResized', function() {
98+
ed.on('ExecCommand change NodeChange ObjectResized', function() {
10099
if (!options.debounce) {
101-
ed.save();
102100
updateView(ed);
103101
return;
104102
}

0 commit comments

Comments
 (0)