@syncfusion/ej2-vue-richtexteditor 20.4.53 → 21.1.37
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 +15 -1
- package/README.md +4 -4
- package/dist/ej2-vue-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-vue-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-richtexteditor.es2015.js +184 -207
- package/dist/es6/ej2-vue-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-richtexteditor.es5.js +199 -227
- package/dist/es6/ej2-vue-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-vue-richtexteditor.min.js +2 -2
- package/package.json +11 -10
- package/src/rich-text-editor/richtexteditor.component.d.ts +3 -52
- package/src/rich-text-editor/richtexteditor.component.js +201 -232
- package/styles/bootstrap-dark.css +31 -1
- package/styles/bootstrap.css +31 -1
- package/styles/bootstrap4.css +31 -1
- package/styles/bootstrap5-dark.css +32 -2
- package/styles/bootstrap5.css +32 -2
- package/styles/fabric-dark.css +31 -1
- package/styles/fabric.css +31 -1
- package/styles/fluent-dark.css +34 -4
- package/styles/fluent.css +34 -4
- package/styles/highcontrast-light.css +31 -1
- package/styles/highcontrast.css +31 -1
- package/styles/material-dark.css +31 -1
- package/styles/material.css +31 -1
- package/styles/rich-text-editor/bootstrap-dark.css +31 -1
- package/styles/rich-text-editor/bootstrap.css +31 -1
- package/styles/rich-text-editor/bootstrap4.css +31 -1
- package/styles/rich-text-editor/bootstrap5-dark.css +32 -2
- package/styles/rich-text-editor/bootstrap5.css +32 -2
- package/styles/rich-text-editor/fabric-dark.css +31 -1
- package/styles/rich-text-editor/fabric.css +31 -1
- package/styles/rich-text-editor/fluent-dark.css +34 -4
- package/styles/rich-text-editor/fluent.css +34 -4
- package/styles/rich-text-editor/highcontrast-light.css +31 -1
- package/styles/rich-text-editor/highcontrast.css +31 -1
- package/styles/rich-text-editor/material-dark.css +31 -1
- package/styles/rich-text-editor/material.css +31 -1
- package/styles/rich-text-editor/tailwind-dark.css +31 -1
- package/styles/rich-text-editor/tailwind.css +31 -1
- package/styles/tailwind-dark.css +31 -1
- package/styles/tailwind.css +31 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-richtexteditor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-richtexteditor@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-richtexteditor@21.1.35",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Xu7HzMQ6DO/gGFR2rFOILLAf5ElFgbwNrxx/rGs7Z6eEyuwDMPnO6vXUm6nFiwt2UZbKRlOFiZS+LLINj1L/GA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-richtexteditor/-/ej2-vue-richtexteditor-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-vue-richtexteditor/-/ej2-vue-richtexteditor-21.1.35.tgz",
|
|
23
|
+
"_shasum": "8ac3e4fe0b046076bbd984381c4798d51743e1e7",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-richtexteditor@*",
|
|
25
|
-
"_where": "/jenkins/workspace/
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Syncfusion Inc."
|
|
28
28
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~
|
|
35
|
-
"@syncfusion/ej2-richtexteditor": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~21.1.37",
|
|
35
|
+
"@syncfusion/ej2-richtexteditor": "21.1.37",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~21.1.37"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "Essential JS 2 RichTextEditor component for Vue",
|
|
@@ -55,8 +55,9 @@
|
|
|
55
55
|
"url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
|
-
"
|
|
58
|
+
"ci-publish": "gulp ci-publish",
|
|
59
|
+
"compile": "gulp ci-compile && gulp vue-global-script"
|
|
59
60
|
},
|
|
60
|
-
"version": "
|
|
61
|
+
"version": "21.1.37",
|
|
61
62
|
"sideEffects": false
|
|
62
63
|
}
|
|
@@ -1,64 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* `ejs-richtexteditor` represents the VueJS RichTextEditor Component.
|
|
10
7
|
* ```vue
|
|
11
8
|
* <ejs-richtexteditor></ejs-richtexteditor>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
propKeys: string[];
|
|
17
|
-
models: string[];
|
|
18
|
-
hasChildDirective: boolean;
|
|
19
|
-
protected hasInjectedModules: boolean;
|
|
20
|
-
tagMapper: {
|
|
21
|
-
[key: string]: Object;
|
|
22
|
-
};
|
|
23
|
-
tagNameMapper: Object;
|
|
24
|
-
isVue3: boolean;
|
|
25
|
-
templateCollection: any;
|
|
26
|
-
constructor();
|
|
27
|
-
clearTemplate(templateNames?: string[]): any;
|
|
28
|
-
setProperties(prop: any, muteOnChange: boolean): void;
|
|
29
|
-
trigger(eventName: string, eventProp: {
|
|
30
|
-
[key: string]: Object;
|
|
31
|
-
}, successHandler?: Function): void;
|
|
32
|
-
render(createElement: any): any;
|
|
33
|
-
custom(): void;
|
|
34
|
-
cleanList(e: Object): void;
|
|
35
|
-
closeDialog(type: Object): void;
|
|
36
|
-
disableToolbarItem(items: string | string[], muteToolbarUpdate?: boolean): void;
|
|
37
|
-
enableToolbarItem(items: string | string[], muteToolbarUpdate?: boolean): void;
|
|
38
|
-
executeCommand(commandName: Object, value?: string | Object | Object | Object | Object, option?: Object): void;
|
|
39
|
-
focusIn(): void;
|
|
40
|
-
focusOut(): void;
|
|
41
|
-
getCharCount(): number;
|
|
42
|
-
getContent(): Object;
|
|
43
|
-
getHtml(): string;
|
|
44
|
-
getRange(): Object;
|
|
45
|
-
getSelectedHtml(): string;
|
|
46
|
-
getSelection(): string;
|
|
47
|
-
getText(): string;
|
|
48
|
-
getXhtml(): string;
|
|
49
|
-
hideInlineToolbar(): void;
|
|
50
|
-
print(): void;
|
|
51
|
-
refreshUI(): void;
|
|
52
|
-
removeToolbarItem(items: string | string[]): void;
|
|
53
|
-
renderTemplates(callBack: any): void;
|
|
54
|
-
sanitizeHtml(value: string): string;
|
|
55
|
-
selectAll(): void;
|
|
56
|
-
selectRange(range: Object): void;
|
|
57
|
-
showDialog(type: Object): void;
|
|
58
|
-
showFullScreen(): void;
|
|
59
|
-
showInlineToolbar(): void;
|
|
60
|
-
showSourceCode(): void;
|
|
61
|
-
}
|
|
11
|
+
export declare let RichTextEditorComponent: any;
|
|
12
|
+
export declare type RichTextEditorComponent = InstanceType<typeof RichTextEditorComponent>;
|
|
62
13
|
export declare const RichTextEditorPlugin: {
|
|
63
14
|
name: string;
|
|
64
15
|
install(Vue: any): void;
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
3
|
+
import { isUndefined } from '@syncfusion/ej2-base';
|
|
23
4
|
import { RichTextEditor } from '@syncfusion/ej2-richtexteditor';
|
|
24
|
-
|
|
25
|
-
export var properties = ['isLazyUpdate', 'plugins', 'autoSaveOnIdle', 'backgroundColor', 'bulletFormatList', 'cssClass', 'editorMode', 'enableAutoUrl', 'enableHtmlEncode', 'enableHtmlSanitizer', 'enablePersistence', 'enableResize', 'enableRtl', 'enableTabKey', 'enableXhtml', 'enabled', 'enterKey', 'fileManagerSettings', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertAudioSettings', 'insertImageSettings', 'insertVideoSettings', 'keyConfig', 'locale', 'maxLength', 'numberFormatList', 'pasteCleanupSettings', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'shiftEnterKey', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'afterImageDelete', 'afterMediaDelete', 'afterPasteCleanup', 'beforeDialogClose', 'beforeDialogOpen', 'beforeFileUpload', 'beforeImageDrop', 'beforeImageUpload', 'beforePasteCleanup', 'beforeQuickToolbarOpen', 'beforeSanitizeHtml', 'blur', 'change', 'created', 'destroyed', 'dialogClose', 'dialogOpen', 'fileRemoving', 'fileSelected', 'fileUploadFailed', 'fileUploadSuccess', 'fileUploading', 'focus', 'imageRemoving', 'imageSelected', 'imageUploadFailed', 'imageUploadSuccess', 'imageUploading', 'quickToolbarClose', 'quickToolbarOpen', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick', 'toolbarStatusUpdate', 'updatedToolbarStatus'];
|
|
5
|
+
export var properties = ['isLazyUpdate', 'plugins', 'autoSaveOnIdle', 'backgroundColor', 'bulletFormatList', 'cssClass', 'editorMode', 'enableAutoUrl', 'enableHtmlEncode', 'enableHtmlSanitizer', 'enablePersistence', 'enableResize', 'enableRtl', 'enableTabKey', 'enableXhtml', 'enabled', 'enterKey', 'fileManagerSettings', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatPainterSettings', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertAudioSettings', 'insertImageSettings', 'insertVideoSettings', 'keyConfig', 'locale', 'maxLength', 'numberFormatList', 'pasteCleanupSettings', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'shiftEnterKey', 'showCharCount', 'showTooltip', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'afterImageDelete', 'afterMediaDelete', 'afterPasteCleanup', 'beforeDialogClose', 'beforeDialogOpen', 'beforeFileUpload', 'beforeImageDrop', 'beforeImageUpload', 'beforePasteCleanup', 'beforeQuickToolbarOpen', 'beforeSanitizeHtml', 'blur', 'change', 'created', 'destroyed', 'dialogClose', 'dialogOpen', 'fileRemoving', 'fileSelected', 'fileUploadFailed', 'fileUploadSuccess', 'fileUploading', 'focus', 'imageRemoving', 'imageSelected', 'imageUploadFailed', 'imageUploadSuccess', 'imageUploading', 'quickToolbarClose', 'quickToolbarOpen', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick', 'toolbarStatusUpdate', 'updatedToolbarStatus'];
|
|
26
6
|
export var modelProps = ['value'];
|
|
27
7
|
export var testProp = getProps({ props: properties });
|
|
28
|
-
export var props = testProp[0];
|
|
29
|
-
export var watch = testProp[1];
|
|
30
|
-
export var emitProbs = Object.keys(watch);
|
|
8
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
31
9
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
32
10
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
33
11
|
var props_1 = modelProps_1[_i];
|
|
@@ -39,227 +17,218 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
39
17
|
* <ejs-richtexteditor></ejs-richtexteditor>
|
|
40
18
|
* ```
|
|
41
19
|
*/
|
|
42
|
-
var RichTextEditorComponent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
20
|
+
export var RichTextEditorComponent = vueDefineComponent({
|
|
21
|
+
name: 'RichTextEditorComponent',
|
|
22
|
+
mixins: [ComponentBase],
|
|
23
|
+
props: props,
|
|
24
|
+
watch: watch,
|
|
25
|
+
emits: emitProbs,
|
|
26
|
+
model: { event: 'modelchanged' },
|
|
27
|
+
provide: function () { return { custom: this.custom }; },
|
|
28
|
+
data: function () {
|
|
29
|
+
return {
|
|
30
|
+
ej2Instances: new RichTextEditor({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: false,
|
|
34
|
+
hasInjectedModules: true,
|
|
35
|
+
tagMapper: {},
|
|
36
|
+
tagNameMapper: {},
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
created: function () {
|
|
42
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
43
|
+
this.ej2Instances.trigger = this.trigger;
|
|
44
|
+
this.bindProperties();
|
|
45
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
46
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
47
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
48
|
+
this.updated = this.updated;
|
|
49
|
+
},
|
|
50
|
+
render: function (createElement) {
|
|
51
|
+
var h = !isExecute ? gh : createElement;
|
|
52
|
+
var slots = null;
|
|
53
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
54
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
66
55
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
56
|
+
return h('textarea', slots);
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
clearTemplate: function (templateNames) {
|
|
60
|
+
if (!templateNames) {
|
|
61
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
62
|
+
}
|
|
63
|
+
if (templateNames.length && this.templateCollection) {
|
|
64
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
65
|
+
var tempName = templateNames_1[_i];
|
|
66
|
+
var elementCollection = this.templateCollection[tempName];
|
|
67
|
+
if (elementCollection && elementCollection.length) {
|
|
68
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
69
|
+
var ele = elementCollection_1[_a];
|
|
70
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
71
|
+
if (destroy) {
|
|
72
|
+
ele.__vue__.$destroy();
|
|
73
|
+
}
|
|
74
|
+
if (ele.innerHTML) {
|
|
75
|
+
ele.innerHTML = '';
|
|
76
|
+
}
|
|
80
77
|
}
|
|
78
|
+
delete this.templateCollection[tempName];
|
|
81
79
|
}
|
|
82
|
-
delete this.templateCollection[tempName];
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
},
|
|
83
|
+
setProperties: function (prop, muteOnChange) {
|
|
84
|
+
var _this = this;
|
|
85
|
+
if (this.isVue3) {
|
|
86
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
87
|
+
}
|
|
88
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
89
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
90
|
+
}
|
|
91
|
+
if (prop && this.models && this.models.length) {
|
|
92
|
+
Object.keys(prop).map(function (key) {
|
|
93
|
+
_this.models.map(function (model) {
|
|
94
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
95
|
+
if (_this.isVue3) {
|
|
96
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
_this.$emit('update:' + key, prop[key]);
|
|
100
|
+
_this.$emit('modelchanged', prop[key]);
|
|
101
|
+
}
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
108
|
+
if (!isExecute) {
|
|
109
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
110
|
+
}
|
|
111
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
112
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
113
|
+
var propKey = key[0];
|
|
114
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
115
|
+
if (!isExecute) {
|
|
116
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
117
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
118
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
122
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
123
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
105
124
|
}
|
|
106
125
|
}
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
RichTextEditorComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
112
|
-
if (!isExecute) {
|
|
113
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
114
|
-
}
|
|
115
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
116
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
117
|
-
var propKey = key[0];
|
|
118
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
119
|
-
if (!isExecute) {
|
|
120
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
121
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
122
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
123
126
|
}
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
}
|
|
128
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
129
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
130
|
+
var propKey = key[0];
|
|
131
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
132
|
+
if (!isExecute) {
|
|
133
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
134
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
126
137
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
127
138
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
128
139
|
}
|
|
129
140
|
}
|
|
130
141
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
134
|
-
var propKey = key[0];
|
|
135
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
136
|
-
if (!isExecute) {
|
|
137
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
138
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
142
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
143
|
-
}
|
|
142
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
143
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
144
144
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
this.
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
RichTextEditorComponent.prototype.showFullScreen = function () {
|
|
234
|
-
return this.ej2Instances.showFullScreen();
|
|
235
|
-
};
|
|
236
|
-
RichTextEditorComponent.prototype.showInlineToolbar = function () {
|
|
237
|
-
return this.ej2Instances.showInlineToolbar();
|
|
238
|
-
};
|
|
239
|
-
RichTextEditorComponent.prototype.showSourceCode = function () {
|
|
240
|
-
return this.ej2Instances.showSourceCode();
|
|
241
|
-
};
|
|
242
|
-
RichTextEditorComponent = __decorate([
|
|
243
|
-
EJComponentDecorator({
|
|
244
|
-
props: properties,
|
|
245
|
-
model: {
|
|
246
|
-
event: 'modelchanged'
|
|
247
|
-
}
|
|
248
|
-
}, isExecute)
|
|
249
|
-
,Options({
|
|
250
|
-
props: props,
|
|
251
|
-
watch: watch,
|
|
252
|
-
emits: emitProbs,
|
|
253
|
-
provide: function provide() {
|
|
254
|
-
return {
|
|
255
|
-
custom: this.custom
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
})
|
|
259
|
-
], RichTextEditorComponent);
|
|
260
|
-
return RichTextEditorComponent;
|
|
261
|
-
}(ComponentBase));
|
|
262
|
-
export { RichTextEditorComponent };
|
|
145
|
+
},
|
|
146
|
+
custom: function () {
|
|
147
|
+
this.updated();
|
|
148
|
+
},
|
|
149
|
+
cleanList: function (e) {
|
|
150
|
+
return this.ej2Instances.cleanList(e);
|
|
151
|
+
},
|
|
152
|
+
closeDialog: function (type) {
|
|
153
|
+
return this.ej2Instances.closeDialog(type);
|
|
154
|
+
},
|
|
155
|
+
disableToolbarItem: function (items, muteToolbarUpdate) {
|
|
156
|
+
return this.ej2Instances.disableToolbarItem(items, muteToolbarUpdate);
|
|
157
|
+
},
|
|
158
|
+
enableToolbarItem: function (items, muteToolbarUpdate) {
|
|
159
|
+
return this.ej2Instances.enableToolbarItem(items, muteToolbarUpdate);
|
|
160
|
+
},
|
|
161
|
+
executeCommand: function (commandName, value, option) {
|
|
162
|
+
return this.ej2Instances.executeCommand(commandName, value, option);
|
|
163
|
+
},
|
|
164
|
+
focusIn: function () {
|
|
165
|
+
return this.ej2Instances.focusIn();
|
|
166
|
+
},
|
|
167
|
+
focusOut: function () {
|
|
168
|
+
return this.ej2Instances.focusOut();
|
|
169
|
+
},
|
|
170
|
+
getCharCount: function () {
|
|
171
|
+
return this.ej2Instances.getCharCount();
|
|
172
|
+
},
|
|
173
|
+
getContent: function () {
|
|
174
|
+
return this.ej2Instances.getContent();
|
|
175
|
+
},
|
|
176
|
+
getHtml: function () {
|
|
177
|
+
return this.ej2Instances.getHtml();
|
|
178
|
+
},
|
|
179
|
+
getRange: function () {
|
|
180
|
+
return this.ej2Instances.getRange();
|
|
181
|
+
},
|
|
182
|
+
getSelectedHtml: function () {
|
|
183
|
+
return this.ej2Instances.getSelectedHtml();
|
|
184
|
+
},
|
|
185
|
+
getSelection: function () {
|
|
186
|
+
return this.ej2Instances.getSelection();
|
|
187
|
+
},
|
|
188
|
+
getText: function () {
|
|
189
|
+
return this.ej2Instances.getText();
|
|
190
|
+
},
|
|
191
|
+
getXhtml: function () {
|
|
192
|
+
return this.ej2Instances.getXhtml();
|
|
193
|
+
},
|
|
194
|
+
hideInlineToolbar: function () {
|
|
195
|
+
return this.ej2Instances.hideInlineToolbar();
|
|
196
|
+
},
|
|
197
|
+
print: function () {
|
|
198
|
+
return this.ej2Instances.print();
|
|
199
|
+
},
|
|
200
|
+
refreshUI: function () {
|
|
201
|
+
return this.ej2Instances.refreshUI();
|
|
202
|
+
},
|
|
203
|
+
removeToolbarItem: function (items) {
|
|
204
|
+
return this.ej2Instances.removeToolbarItem(items);
|
|
205
|
+
},
|
|
206
|
+
renderTemplates: function (callBack) {
|
|
207
|
+
return this.ej2Instances.renderTemplates(callBack);
|
|
208
|
+
},
|
|
209
|
+
sanitizeHtml: function (value) {
|
|
210
|
+
return this.ej2Instances.sanitizeHtml(value);
|
|
211
|
+
},
|
|
212
|
+
selectAll: function () {
|
|
213
|
+
return this.ej2Instances.selectAll();
|
|
214
|
+
},
|
|
215
|
+
selectRange: function (range) {
|
|
216
|
+
return this.ej2Instances.selectRange(range);
|
|
217
|
+
},
|
|
218
|
+
showDialog: function (type) {
|
|
219
|
+
return this.ej2Instances.showDialog(type);
|
|
220
|
+
},
|
|
221
|
+
showFullScreen: function () {
|
|
222
|
+
return this.ej2Instances.showFullScreen();
|
|
223
|
+
},
|
|
224
|
+
showInlineToolbar: function () {
|
|
225
|
+
return this.ej2Instances.showInlineToolbar();
|
|
226
|
+
},
|
|
227
|
+
showSourceCode: function () {
|
|
228
|
+
return this.ej2Instances.showSourceCode();
|
|
229
|
+
},
|
|
230
|
+
}
|
|
231
|
+
});
|
|
263
232
|
export var RichTextEditorPlugin = {
|
|
264
233
|
name: 'ejs-richtexteditor',
|
|
265
234
|
install: function (Vue) {
|