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