@syncfusion/ej2-richtexteditor 19.3.47 → 19.3.53
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 +12 -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 +14 -3
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +14 -3
- 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/rich-text-editor/actions/dropdown-buttons.js +10 -0
- package/src/rich-text-editor/actions/enter-key.js +1 -0
- package/src/rich-text-editor/base/rich-text-editor.js +1 -2
- package/src/rich-text-editor/renderer/toolbar-renderer.js +3 -2
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/rich-text-editor/_layout.scss +4 -0
- package/styles/rich-text-editor/bootstrap-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap.css +4 -0
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/material-dark.css +4 -0
- package/styles/rich-text-editor/material.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +4 -0
- package/styles/rich-text-editor/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
|
@@ -2741,7 +2741,8 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
2741
2741
|
this.parent.notify(beforeDropDownItemRender, args);
|
|
2742
2742
|
};
|
|
2743
2743
|
ToolbarRenderer.prototype.dropDownOpen = function (args) {
|
|
2744
|
-
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1)
|
|
2744
|
+
if (args.element.parentElement.getAttribute('id').indexOf('TableCell') > -1 && !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-merge')) &&
|
|
2745
|
+
(!isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-horizontal-split')) || !isNullOrUndefined(args.element.parentElement.querySelector('.e-cell-vertical-split')))) {
|
|
2745
2746
|
var listEle = args.element.querySelectorAll('li');
|
|
2746
2747
|
if (this.parent.inputElement.querySelectorAll('.e-cell-select').length === 1) {
|
|
2747
2748
|
addClass([listEle[0]], 'e-disabled');
|
|
@@ -3605,6 +3606,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3605
3606
|
var prop = _a[_i];
|
|
3606
3607
|
switch (prop) {
|
|
3607
3608
|
case 'fontFamily':
|
|
3609
|
+
if (this.parent.inlineMode.enable) {
|
|
3610
|
+
if (!isNullOrUndefined(this.parent.fontFamily.default)) {
|
|
3611
|
+
this.getEditNode().style.fontFamily = this.parent.fontFamily.default;
|
|
3612
|
+
}
|
|
3613
|
+
}
|
|
3608
3614
|
if (this.fontNameDropDown) {
|
|
3609
3615
|
for (var _b = 0, _c = Object.keys(newProp.fontFamily); _b < _c.length; _b++) {
|
|
3610
3616
|
var fontFamily$$1 = _c[_b];
|
|
@@ -3636,6 +3642,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3636
3642
|
}
|
|
3637
3643
|
break;
|
|
3638
3644
|
case 'fontSize':
|
|
3645
|
+
if (this.parent.inlineMode) {
|
|
3646
|
+
if (!isNullOrUndefined(this.parent.fontSize.default)) {
|
|
3647
|
+
this.getEditNode().style.fontSize = this.parent.fontSize.default;
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3639
3650
|
if (this.fontSizeDropDown) {
|
|
3640
3651
|
for (var _d = 0, _e = Object.keys(newProp.fontSize); _d < _e.length; _d++) {
|
|
3641
3652
|
var fontSize$$1 = _e[_d];
|
|
@@ -24360,6 +24371,7 @@ var EnterKeyAction = /** @__PURE__ @class */ (function () {
|
|
|
24360
24371
|
detach(nearBlockNode);
|
|
24361
24372
|
}
|
|
24362
24373
|
}
|
|
24374
|
+
_this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
|
|
24363
24375
|
}
|
|
24364
24376
|
else if (nearBlockNode.textContent.length === 0 && !(!isNullOrUndefined(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG')) {
|
|
24365
24377
|
if (!isNullOrUndefined(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
|
|
@@ -25911,8 +25923,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25911
25923
|
this.setProperties({ value: this.valueTemplate });
|
|
25912
25924
|
}
|
|
25913
25925
|
else {
|
|
25914
|
-
var
|
|
25915
|
-
var compiledTemplate = compiledString({});
|
|
25926
|
+
var compiledTemplate = compile(this.valueTemplate)('', this, 'valueTemplate');
|
|
25916
25927
|
for (var i = 0; i < compiledTemplate.length; i++) {
|
|
25917
25928
|
var item = compiledTemplate[i];
|
|
25918
25929
|
append([item], this.element);
|