@syncfusion/ej2-richtexteditor 20.2.43 → 20.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +121 -37
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +121 -37
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/editor-manager/plugin/lists.d.ts +3 -0
- package/src/editor-manager/plugin/lists.js +29 -0
- package/src/rich-text-editor/actions/base-toolbar.d.ts +6 -1
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +6 -1
- package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
- package/src/rich-text-editor/actions/enter-key.js +12 -3
- package/src/rich-text-editor/actions/full-screen.d.ts +1 -0
- package/src/rich-text-editor/actions/full-screen.js +6 -0
- package/src/rich-text-editor/actions/markdown-editor.d.ts +1 -0
- package/src/rich-text-editor/actions/markdown-editor.js +6 -0
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +5 -0
- package/src/rich-text-editor/actions/toolbar-action.d.ts +6 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/toolbar.js +8 -0
- package/src/rich-text-editor/base/constant.d.ts +5 -0
- package/src/rich-text-editor/base/constant.js +5 -0
- package/src/rich-text-editor/base/rich-text-editor.js +8 -13
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +3 -0
- package/src/rich-text-editor/renderer/dialog-renderer.js +18 -0
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -8
- package/src/rich-text-editor/renderer/image-module.js +9 -9
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -8
- package/src/rich-text-editor/renderer/link-module.js +2 -7
- package/src/rich-text-editor/renderer/render.d.ts +1 -6
- package/src/rich-text-editor/renderer/render.js +2 -5
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -0
- package/src/rich-text-editor/renderer/table-module.js +5 -0
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +6 -1
- package/src/rich-text-editor/renderer/view-source.d.ts +1 -0
- package/src/rich-text-editor/renderer/view-source.js +5 -0
|
@@ -51,11 +51,6 @@ var Render = /** @class */ (function () {
|
|
|
51
51
|
Render.prototype.destroy = function () {
|
|
52
52
|
this.removeEventListener();
|
|
53
53
|
};
|
|
54
|
-
/**
|
|
55
|
-
* Clears the Render Module.
|
|
56
|
-
*
|
|
57
|
-
* @returns {void}
|
|
58
|
-
*/
|
|
59
54
|
Render.prototype.moduleDestroy = function () {
|
|
60
55
|
this.parent = null;
|
|
61
56
|
};
|
|
@@ -65,6 +60,7 @@ var Render = /** @class */ (function () {
|
|
|
65
60
|
}
|
|
66
61
|
this.parent.on(events.modelChanged, this.refresh, this);
|
|
67
62
|
this.parent.on(events.keyUp, this.keyUp, this);
|
|
63
|
+
this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
|
|
68
64
|
};
|
|
69
65
|
Render.prototype.removeEventListener = function () {
|
|
70
66
|
if (this.parent.isDestroyed) {
|
|
@@ -72,6 +68,7 @@ var Render = /** @class */ (function () {
|
|
|
72
68
|
}
|
|
73
69
|
this.parent.off(events.modelChanged, this.refresh);
|
|
74
70
|
this.parent.off(events.keyUp, this.keyUp);
|
|
71
|
+
this.parent.off(events.moduleDestroy, this.moduleDestroy);
|
|
75
72
|
};
|
|
76
73
|
Render.prototype.keyUp = function (e) {
|
|
77
74
|
if (this.parent.editorMode === 'HTML') {
|
|
@@ -43,6 +43,7 @@ var Table = /** @class */ (function () {
|
|
|
43
43
|
this.parent.on(events.mouseUp, this.selectionTable, this);
|
|
44
44
|
this.parent.on(events.bindCssClass, this.setCssClass, this);
|
|
45
45
|
this.parent.on(events.destroy, this.destroy, this);
|
|
46
|
+
this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
|
|
46
47
|
};
|
|
47
48
|
Table.prototype.removeEventListener = function () {
|
|
48
49
|
if (this.parent.isDestroyed) {
|
|
@@ -64,6 +65,7 @@ var Table = /** @class */ (function () {
|
|
|
64
65
|
this.parent.off(events.mouseUp, this.selectionTable);
|
|
65
66
|
this.parent.off(events.bindCssClass, this.setCssClass);
|
|
66
67
|
this.parent.off(events.destroy, this.destroy);
|
|
68
|
+
this.parent.off(events.moduleDestroy, this.moduleDestroy);
|
|
67
69
|
};
|
|
68
70
|
Table.prototype.updateCss = function (currentObj, e) {
|
|
69
71
|
if (currentObj && e.cssClass) {
|
|
@@ -1359,6 +1361,9 @@ var Table = /** @class */ (function () {
|
|
|
1359
1361
|
Table.prototype.destroy = function () {
|
|
1360
1362
|
this.removeEventListener();
|
|
1361
1363
|
};
|
|
1364
|
+
Table.prototype.moduleDestroy = function () {
|
|
1365
|
+
this.parent = null;
|
|
1366
|
+
};
|
|
1362
1367
|
/**
|
|
1363
1368
|
* For internal use only - Get the module name.
|
|
1364
1369
|
*
|
|
@@ -10,7 +10,12 @@ import { ColorPicker } from '@syncfusion/ej2-inputs';
|
|
|
10
10
|
export declare class ToolbarRenderer implements IRenderer {
|
|
11
11
|
private mode;
|
|
12
12
|
private toolbarPanel;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @hidden
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
parent: IRichTextEditor;
|
|
14
19
|
private popupContainer;
|
|
15
20
|
private currentElement;
|
|
16
21
|
private currentDropdown;
|
|
@@ -29,6 +29,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
29
29
|
this.parent.on(events.initialEnd, this.onInitialEnd, this);
|
|
30
30
|
this.parent.on(events.updateSource, this.updateSourceCode, this);
|
|
31
31
|
this.parent.on(events.destroy, this.destroy, this);
|
|
32
|
+
this.parent.on(events.moduleDestroy, this.moduleDestroy, this);
|
|
32
33
|
};
|
|
33
34
|
ViewSource.prototype.onInitialEnd = function () {
|
|
34
35
|
this.parent.formatter.editorManager.observer.on(CONSTANT.KEY_DOWN_HANDLER, this.onKeyDown, this);
|
|
@@ -39,6 +40,7 @@ var ViewSource = /** @class */ (function () {
|
|
|
39
40
|
this.parent.off(events.updateSource, this.updateSourceCode);
|
|
40
41
|
this.parent.off(events.initialEnd, this.onInitialEnd);
|
|
41
42
|
this.parent.off(events.destroy, this.destroy);
|
|
43
|
+
this.parent.off(events.moduleDestroy, this.moduleDestroy);
|
|
42
44
|
this.parent.formatter.editorManager.observer.off(CONSTANT.KEY_DOWN_HANDLER, this.onKeyDown);
|
|
43
45
|
};
|
|
44
46
|
ViewSource.prototype.getSourceCode = function () {
|
|
@@ -262,6 +264,9 @@ var ViewSource = /** @class */ (function () {
|
|
|
262
264
|
ViewSource.prototype.destroy = function () {
|
|
263
265
|
this.removeEventListener();
|
|
264
266
|
};
|
|
267
|
+
ViewSource.prototype.moduleDestroy = function () {
|
|
268
|
+
this.parent = null;
|
|
269
|
+
};
|
|
265
270
|
return ViewSource;
|
|
266
271
|
}());
|
|
267
272
|
export { ViewSource };
|