sdsd
This commit is contained in:
@@ -91,8 +91,9 @@
|
||||
const domc = editor.DomComponents;
|
||||
if (domc.getType(PLACEHOLDER_COMPONENT)) return;
|
||||
|
||||
const baseType = domc.getType('text') ? 'text' : 'default';
|
||||
domc.addType(PLACEHOLDER_COMPONENT, {
|
||||
extend: 'text',
|
||||
extend: baseType,
|
||||
isComponent(el) {
|
||||
if (el && el.hasAttribute && el.hasAttribute('data-placeholder-type')) {
|
||||
return { type: PLACEHOLDER_COMPONENT };
|
||||
|
||||
Reference in New Issue
Block a user