Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-vue-richtexteditor

Package Overview
Dependencies
Maintainers
2
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-vue-richtexteditor - npm Package Compare versions

Comparing version 17.1.1-beta to 17.1.32-beta

48

CHANGELOG.md

@@ -9,2 +9,49 @@ # Changelog

- Image and Table quick toolbar open while scrolling the content in the iPhone device, that issue has been fixed.
- Getting console error while rendering inline mode with `FontColor` and `BackgroundColor` in mobile view, that issue has been fixed.
#### New Features
- **Paste cleanup**
- This feature allows users to clean up HTML content when copying and pasting any other content from external sources.
## 16.4.55 (2019-02-27)
### RichTextEditor
#### Bug Fixes
- Insert image dialog is not rendering properly while setting the `imageUploadMessage` text as long in localization, that issue has been fixed.
- Localization is not applied to static `DropDownButton` items, that issue has been fixed.
## 16.4.54 (2019-02-19)
### RichTextEditor
#### Bug Fixes
- HTML 5 form reset behaviour has been corrected.
- Editor content rendered twice in DOM when using `RichTextEditorFor`, that issue has been fixed.
- EJ2 compatibility styles are not worked while component rendering with `textarea` element, that issue has been fixed.
## 16.4.53 (2019-02-13)
### RichTextEditor
#### Bug Fixes
- Console error is thrown in IE11 browser while using the SVG element style with transform and then render the RichTextEditor in an application, that issue has been fixed.
- HTML 5 standard issues has been fixed.
- Cursor position changed after typed some contents issue has been fixed.
#### Breaking Changes
- Changed the `fontSize`, `fontFamily`, `format` properties default value as null.
## 16.4.48 (2019-01-22)
### RichTextEditor
#### Bug Fixes
- Table QuickToolbar open wherever click within a component issue has been fixed.

@@ -42,2 +89,3 @@ - FontSize "px" and fontFamily "veranda" not updated in toolbar status, that issue has been fixed.

- Image paste as twice in Firefox browser, that issue has been fixed.
- The value property and getHtml method will be updated within an interval to `saveInterval` property.

@@ -44,0 +92,0 @@ ## 16.4.40-beta (2018-12-10)

14

dist/ej2-vue-richtexteditor.umd.min.js
/*!
* filename: ej2-vue-richtexteditor.umd.min.js
* version : 17.1.1-beta
* version : 17.1.32-beta
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -10,13 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
/*!
* filename: ej2-vue-richtexteditor.umd.min.js
* version : 16.4.47
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-richtexteditor"),require("@syncfusion/ej2-base"),require("@syncfusion/ej2-vue-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-richtexteditor","@syncfusion/ej2-base","@syncfusion/ej2-vue-base"],t):t(e.ej={},e.ej2Richtexteditor,e.ej2Base,e.ej2VueBase)}(this,function(e,t,n,o){"use strict";var r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},i=["backgroundColor","cssClass","editorMode","enableHtmlEncode","enablePersistence","enableRtl","enableTabKey","enabled","floatingToolbarOffset","fontColor","fontFamily","fontSize","format","formatter","height","htmlAttributes","iframeSettings","inlineMode","insertImageSettings","keyConfig","locale","maxLength","placeholder","quickToolbarSettings","readonly","saveInterval","showCharCount","tableSettings","toolbarSettings","undoRedoSteps","undoRedoTimer","value","valueTemplate","width","actionBegin","actionComplete","blur","change","created","destroyed","focus","resizeStart","resizeStop","resizing","toolbarClick"],c=["value"],a=function(e){function a(){var n=e.call(this)||this;return n.propKeys=i,n.models=c,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.RichTextEditor({}),n.ej2Instances._trigger=n.ej2Instances.trigger,n.ej2Instances.trigger=n.trigger,n.bindProperties(),n}return r(a,e),a.prototype.trigger=function(e,t){if("change"===e&&this.models&&0!==this.models.length){var o=this.models.toString().match(/checked|value/)||[],r=o[0];t&&o&&!n.isUndefined(t[r])&&this.$emit("modelchanged",t[r])}this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t)},a.prototype.setProperties=function(e,t){var n=this;if(this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&0!==this.models.length){var o=[],r=!1;Object.keys(e).map(function(e){n.models.map(function(t){e!==t||/datasource/i.test(e)||(o.push(e),r=!0)})}),r&&o.map(function(t){n.$emit("update:"+t,e[t])})}},a.prototype.render=function(e){return e("textarea",this.$slots.default)},a.prototype.disableToolbarItem=function(e){return this.ej2Instances.disableToolbarItem(e)},a.prototype.enableToolbarItem=function(e){return this.ej2Instances.enableToolbarItem(e)},a.prototype.executeCommand=function(e,t){return this.ej2Instances.executeCommand(e,t)},a.prototype.focusIn=function(){return this.ej2Instances.focusIn()},a.prototype.focusOut=function(){return this.ej2Instances.focusOut()},a.prototype.getContent=function(){return this.ej2Instances.getContent()},a.prototype.getHtml=function(){return this.ej2Instances.getHtml()},a.prototype.getID=function(){return this.ej2Instances.getID()},a.prototype.getRange=function(){return this.ej2Instances.getRange()},a.prototype.getSelection=function(){return this.ej2Instances.getSelection()},a.prototype.getText=function(){return this.ej2Instances.getText()},a.prototype.invokeChangeEvent=function(){return this.ej2Instances.invokeChangeEvent()},a.prototype.onCopy=function(){return this.ej2Instances.onCopy()},a.prototype.onCut=function(){return this.ej2Instances.onCut()},a.prototype.onPaste=function(e){return this.ej2Instances.onPaste(e)},a.prototype.preventDefaultResize=function(e){return this.ej2Instances.preventDefaultResize(e)},a.prototype.print=function(){return this.ej2Instances.print()},a.prototype.refresh=function(){return this.ej2Instances.refresh()},a.prototype.removeToolbarItem=function(e){return this.ej2Instances.removeToolbarItem(e)},a.prototype.selectAll=function(){return this.ej2Instances.selectAll()},a.prototype.selectRange=function(e){return this.ej2Instances.selectRange(e)},a.prototype.setContentHeight=function(e,t){return this.ej2Instances.setContentHeight(e,t)},a.prototype.setEnable=function(){return this.ej2Instances.setEnable()},a.prototype.setPlaceHolder=function(){return this.ej2Instances.setPlaceHolder()},a.prototype.setReadOnly=function(e){return this.ej2Instances.setReadOnly(e)},a.prototype.showFullScreen=function(){return this.ej2Instances.showFullScreen()},a.prototype.showSourceCode=function(){return this.ej2Instances.showSourceCode()},a.prototype.updateValue=function(e){return this.ej2Instances.updateValue(e)},a=s([o.EJComponentDecorator({props:i,model:{event:"modelchanged"}})],a)}(o.ComponentBase),u={name:"ejs-richtexteditor",install:function(e){e.component(u.name,a)}};e.RichTextEditorComponent=a,e.RichTextEditorPlugin=u,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-richtexteditor"),require("@syncfusion/ej2-base"),require("@syncfusion/ej2-vue-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-richtexteditor","@syncfusion/ej2-base","@syncfusion/ej2-vue-base"],t):t(e.ej={},e.ej2Richtexteditor,e.ej2Base,e.ej2VueBase)}(this,function(e,t,n,o){"use strict";var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=function(e,t,n,o){var s,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},i=["backgroundColor","cssClass","editorMode","enableHtmlEncode","enablePersistence","enableRtl","enableTabKey","enabled","floatingToolbarOffset","fontColor","fontFamily","fontSize","format","formatter","height","htmlAttributes","iframeSettings","inlineMode","insertImageSettings","keyConfig","locale","maxLength","pasteCleanupSettings","placeholder","quickToolbarSettings","readonly","saveInterval","showCharCount","tableSettings","toolbarSettings","undoRedoSteps","undoRedoTimer","value","valueTemplate","width","actionBegin","actionComplete","blur","change","created","destroyed","focus","resizeStart","resizeStop","resizing","toolbarClick"],c=["value"],a=function(e){function a(){var n=e.call(this)||this;return n.propKeys=i,n.models=c,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.RichTextEditor({}),n.ej2Instances._trigger=n.ej2Instances.trigger,n.ej2Instances.trigger=n.trigger,n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n}return s(a,e),a.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},a.prototype.trigger=function(e,t){if(("change"===e||"input"===e)&&this.models&&0!==this.models.length){var o=this.models.toString().match(/checked|value/)||[],s=o[0];t&&o&&!n.isUndefined(t[s])&&(this.$emit("update:"+s,t[s]),this.$emit("modelchanged",t[s]))}this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t)},a.prototype.render=function(e){return e("textarea",this.$slots.default)},a.prototype.disableToolbarItem=function(e){return this.ej2Instances.disableToolbarItem(e)},a.prototype.enableToolbarItem=function(e){return this.ej2Instances.enableToolbarItem(e)},a.prototype.executeCommand=function(e,t){return this.ej2Instances.executeCommand(e,t)},a.prototype.focusIn=function(){return this.ej2Instances.focusIn()},a.prototype.focusOut=function(){return this.ej2Instances.focusOut()},a.prototype.getContent=function(){return this.ej2Instances.getContent()},a.prototype.getHtml=function(){return this.ej2Instances.getHtml()},a.prototype.getID=function(){return this.ej2Instances.getID()},a.prototype.getRange=function(){return this.ej2Instances.getRange()},a.prototype.getSelection=function(){return this.ej2Instances.getSelection()},a.prototype.getText=function(){return this.ej2Instances.getText()},a.prototype.invokeChangeEvent=function(){return this.ej2Instances.invokeChangeEvent()},a.prototype.onCopy=function(){return this.ej2Instances.onCopy()},a.prototype.onCut=function(){return this.ej2Instances.onCut()},a.prototype.onPaste=function(e){return this.ej2Instances.onPaste(e)},a.prototype.preventDefaultResize=function(e){return this.ej2Instances.preventDefaultResize(e)},a.prototype.print=function(){return this.ej2Instances.print()},a.prototype.refresh=function(){return this.ej2Instances.refresh()},a.prototype.removeToolbarItem=function(e){return this.ej2Instances.removeToolbarItem(e)},a.prototype.selectAll=function(){return this.ej2Instances.selectAll()},a.prototype.selectRange=function(e){return this.ej2Instances.selectRange(e)},a.prototype.setContentHeight=function(e,t){return this.ej2Instances.setContentHeight(e,t)},a.prototype.setEnable=function(){return this.ej2Instances.setEnable()},a.prototype.setPlaceHolder=function(){return this.ej2Instances.setPlaceHolder()},a.prototype.setReadOnly=function(e){return this.ej2Instances.setReadOnly(e)},a.prototype.showFullScreen=function(){return this.ej2Instances.showFullScreen()},a.prototype.showSourceCode=function(){return this.ej2Instances.showSourceCode()},a.prototype.updateValue=function(e){return this.ej2Instances.updateValue(e)},a=r([o.EJComponentDecorator({props:i,model:{event:"modelchanged"}})],a)}(o.ComponentBase),u={name:"ejs-richtexteditor",install:function(e){e.component(u.name,a)}};e.RichTextEditorComponent=a,e.RichTextEditorPlugin=u,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-vue-richtexteditor.umd.min.js.map

@@ -11,3 +11,3 @@ import { RichTextEditor } from '@syncfusion/ej2-richtexteditor';

};
const properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
const properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'pasteCleanupSettings', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
const modelProps = ['value'];

@@ -32,18 +32,6 @@ /**

this.ej2Instances.trigger = this.trigger;
//this.ej2Instances._setProperties = this.ej2Instances.setProperties;
//this.ej2Instances.setProperties = this.setProperties;
this.bindProperties();
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
this.ej2Instances.setProperties = this.setProperties;
}
trigger(eventName, eventProp) {
if (eventName === 'change' && this.models && (this.models.length !== 0)) {
let key = this.models.toString().match(/checked|value/) || [];
let propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
}
setProperties(prop, muteOnChange) {

@@ -53,20 +41,24 @@ if (this.ej2Instances && this.ej2Instances._setProperties) {

}
if (prop && this.models && (this.models.length !== 0)) {
let keys = Object.keys(prop);
let emitKeys = [];
let emitFlag = false;
keys.map((key) => {
if (prop && this.models && this.models.length) {
Object.keys(prop).map((key) => {
this.models.map((model) => {
if ((key === model) && !(/datasource/i.test(key))) {
emitKeys.push(key);
emitFlag = true;
this.$emit('update:' + key, prop[key]);
}
});
});
if (emitFlag) {
emitKeys.map((propKey) => {
this.$emit('update:' + propKey, prop[propKey]);
});
}
}
trigger(eventName, eventProp) {
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
let key = this.models.toString().match(/checked|value/) || [];
let propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('update:' + propKey, eventProp[propKey]);
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
}

@@ -73,0 +65,0 @@ render(createElement) {

@@ -24,3 +24,3 @@ import { RichTextEditor } from '@syncfusion/ej2-richtexteditor';

};
var properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
var properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'pasteCleanupSettings', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
var modelProps = ['value'];

@@ -46,19 +46,7 @@ /**

_this.ej2Instances.trigger = _this.trigger;
//this.ej2Instances._setProperties = this.ej2Instances.setProperties;
//this.ej2Instances.setProperties = this.setProperties;
_this.bindProperties();
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
_this.ej2Instances.setProperties = _this.setProperties;
return _this;
}
RichTextEditorComponent.prototype.trigger = function (eventName, eventProp) {
if (eventName === 'change' && this.models && (this.models.length !== 0)) {
var key = this.models.toString().match(/checked|value/) || [];
var propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
};
RichTextEditorComponent.prototype.setProperties = function (prop, muteOnChange) {

@@ -69,20 +57,24 @@ var _this = this;

}
if (prop && this.models && (this.models.length !== 0)) {
var keys = Object.keys(prop);
var emitKeys_1 = [];
var emitFlag_1 = false;
keys.map(function (key) {
if (prop && this.models && this.models.length) {
Object.keys(prop).map(function (key) {
_this.models.map(function (model) {
if ((key === model) && !(/datasource/i.test(key))) {
emitKeys_1.push(key);
emitFlag_1 = true;
_this.$emit('update:' + key, prop[key]);
}
});
});
if (emitFlag_1) {
emitKeys_1.map(function (propKey) {
_this.$emit('update:' + propKey, prop[propKey]);
});
}
};
RichTextEditorComponent.prototype.trigger = function (eventName, eventProp) {
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
var key = this.models.toString().match(/checked|value/) || [];
var propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('update:' + propKey, eventProp[propKey]);
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
};

@@ -89,0 +81,0 @@ RichTextEditorComponent.prototype.render = function (createElement) {

{
"name": "@syncfusion/ej2-vue-richtexteditor",
"version": "17.1.1-beta",
"version": "17.1.32-beta",
"description": "Essential JS 2 RichTextEditor component for Vue",

@@ -30,17 +30,8 @@ "author": "Syncfusion Inc.",

"dependencies": {
"@syncfusion/ej2-base": "~17.1.1-beta",
"@syncfusion/ej2-vue-base": "~17.1.1-beta",
"@syncfusion/ej2-richtexteditor": "17.1.1-beta"
"@syncfusion/ej2-base": "~17.1.32-beta",
"@syncfusion/ej2-vue-base": "~17.1.32-beta",
"@syncfusion/ej2-richtexteditor": "17.1.32-beta"
},
"devDependencies": {
"awesome-typescript-loader": "^3.1.3",
"source-map-loader": "^0.2.1",
"@types/chai": "^3.4.28",
"@types/es6-promise": "0.0.28",
"@types/jasmine": "^2.2.29",
"@types/jasmine-ajax": "^3.1.27",
"@types/requirejs": "^2.1.26",
"vue": "2.5.2 - 2.5.21"
},
"devDependencies": {},
"sideEffects": false
}

@@ -21,6 +21,6 @@ import { ComponentBase } from '@syncfusion/ej2-vue-base';

constructor();
setProperties(prop: any, muteOnChange: boolean): void;
trigger(eventName: string, eventProp: {
[key: string]: Object;
}): void;
setProperties(prop: any, muteOnChange: boolean): void;
render(createElement: any): any;

@@ -27,0 +27,0 @@ disableToolbarItem(items: string | string[]): void;

@@ -23,3 +23,3 @@ var __extends = (this && this.__extends) || (function () {

import { RichTextEditor } from '@syncfusion/ej2-richtexteditor';
export var properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
export var properties = ['backgroundColor', 'cssClass', 'editorMode', 'enableHtmlEncode', 'enablePersistence', 'enableRtl', 'enableTabKey', 'enabled', 'floatingToolbarOffset', 'fontColor', 'fontFamily', 'fontSize', 'format', 'formatter', 'height', 'htmlAttributes', 'iframeSettings', 'inlineMode', 'insertImageSettings', 'keyConfig', 'locale', 'maxLength', 'pasteCleanupSettings', 'placeholder', 'quickToolbarSettings', 'readonly', 'saveInterval', 'showCharCount', 'tableSettings', 'toolbarSettings', 'undoRedoSteps', 'undoRedoTimer', 'value', 'valueTemplate', 'width', 'actionBegin', 'actionComplete', 'blur', 'change', 'created', 'destroyed', 'focus', 'resizeStart', 'resizeStop', 'resizing', 'toolbarClick'];
export var modelProps = ['value'];

@@ -45,19 +45,7 @@ /**

_this.ej2Instances.trigger = _this.trigger;
//this.ej2Instances._setProperties = this.ej2Instances.setProperties;
//this.ej2Instances.setProperties = this.setProperties;
_this.bindProperties();
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
_this.ej2Instances.setProperties = _this.setProperties;
return _this;
}
RichTextEditorComponent.prototype.trigger = function (eventName, eventProp) {
if (eventName === 'change' && this.models && (this.models.length !== 0)) {
var key = this.models.toString().match(/checked|value/) || [];
var propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
};
RichTextEditorComponent.prototype.setProperties = function (prop, muteOnChange) {

@@ -68,20 +56,24 @@ var _this = this;

}
if (prop && this.models && (this.models.length !== 0)) {
var keys = Object.keys(prop);
var emitKeys_1 = [];
var emitFlag_1 = false;
keys.map(function (key) {
if (prop && this.models && this.models.length) {
Object.keys(prop).map(function (key) {
_this.models.map(function (model) {
if ((key === model) && !(/datasource/i.test(key))) {
emitKeys_1.push(key);
emitFlag_1 = true;
_this.$emit('update:' + key, prop[key]);
}
});
});
if (emitFlag_1) {
emitKeys_1.map(function (propKey) {
_this.$emit('update:' + propKey, prop[propKey]);
});
}
};
RichTextEditorComponent.prototype.trigger = function (eventName, eventProp) {
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
var key = this.models.toString().match(/checked|value/) || [];
var propKey = key[0];
if (eventProp && key && !isUndefined(eventProp[propKey])) {
this.$emit('update:' + propKey, eventProp[propKey]);
this.$emit('modelchanged', eventProp[propKey]);
}
}
if (this.ej2Instances && this.ej2Instances._trigger) {
this.ej2Instances._trigger(eventName, eventProp);
}
};

@@ -88,0 +80,0 @@ RichTextEditorComponent.prototype.render = function (createElement) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc