1
0
Fork 0

COMPATIBILITY: new editor helper fn signatures

See 94207e27d1
Dieser Commit ist enthalten in:
Angus McLeod 2022-04-22 15:46:32 +03:00
Ursprung 0b6ba868ce
Commit 449b81a93e

Datei anzeigen

@ -114,13 +114,13 @@ export default {
_wizardInsertText(args = {}) {
if (args.fieldId === this.fieldId) {
this._insertText(args.text, args.options);
this.insertText(args.text, args.options);
}
},
_wizardReplaceText(args = {}) {
if (args.fieldId === this.fieldId) {
this._replaceText(args.oldVal, args.newVal, (args.opts = {}));
this.replaceText(args.oldVal, args.newVal, (args.opts = {}));
}
},
@ -139,7 +139,7 @@ export default {
let html = clipboard.getData("text/html");
let handled = false;
const { pre, lineVal } = this._getSelected(null, { lineVal: true });
const { pre, lineVal } = this.getSelected(null, { lineVal: true });
const isInlinePasting = pre.match(/[^\n]$/);
const isCodeBlock = isInside(pre, /(^|\n)```/g);
@ -150,7 +150,7 @@ export default {
!isCodeBlock
) {
plainText = plainText.trim().replace(/\r/g, "");
const table = this._extractTable(plainText);
const table = this.extractTable(plainText);
if (table) {
this.appEvents.trigger("wizard-editor:insert-text", {
fieldId: this.fieldId,