Refactor editor JS, change blocks to extend base methods

This commit is contained in:
Tautvidas Sipavičius
2015-12-17 16:58:02 +02:00
parent 155ff09280
commit 89782bc94b
9 changed files with 21 additions and 32 deletions

View File

@@ -26,6 +26,8 @@ define([
getTemplate: function() { return templates.textBlock; },
modelEvents: _.omit(base.BlockView.prototype.modelEvents, 'change'), // Prevent rerendering on model change due to text editor redrawing
initialize: function(options) {
base.BlockView.prototype.initialize.apply(this, arguments);
this.renderOptions = _.defaults(options.renderOptions || {}, {
disableTextEditor: false,
});