asdsad
This commit is contained in:
@@ -630,6 +630,7 @@
|
|||||||
placeholderDefaults.toolbar = baseToolbar;
|
placeholderDefaults.toolbar = baseToolbar;
|
||||||
|
|
||||||
const PlaceholderModel = BaseModel.extend({
|
const PlaceholderModel = BaseModel.extend({
|
||||||
|
defaults: placeholderDefaults,
|
||||||
init() {
|
init() {
|
||||||
this.listenTo(this, 'change:attributes', this.updatePlaceholderState);
|
this.listenTo(this, 'change:attributes', this.updatePlaceholderState);
|
||||||
this.updatePlaceholderState();
|
this.updatePlaceholderState();
|
||||||
@@ -719,8 +720,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
PlaceholderModel.prototype.defaults = placeholderDefaults;
|
|
||||||
|
|
||||||
PlaceholderModel.isComponent = function (el) {
|
PlaceholderModel.isComponent = function (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