This commit is contained in:
2025-12-10 21:42:23 +01:00
parent 6c09e30e7a
commit 0f772456ce

View File

@@ -630,6 +630,7 @@
placeholderDefaults.toolbar = baseToolbar;
const PlaceholderModel = BaseModel.extend({
defaults: placeholderDefaults,
init() {
this.listenTo(this, 'change:attributes', this.updatePlaceholderState);
this.updatePlaceholderState();
@@ -719,8 +720,6 @@
}
});
PlaceholderModel.prototype.defaults = placeholderDefaults;
PlaceholderModel.isComponent = function (el) {
if (el && el.hasAttribute && el.hasAttribute('data-placeholder-type')) {
return { type: PLACEHOLDER_COMPONENT };