This commit is contained in:
2025-12-08 00:24:10 +01:00
parent cf569a3b1b
commit 0beb80b2aa

View File

@@ -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 };