[IMP] website.snippet: convert media snippet into the new snippet api
This commit is contained in:
@@ -1479,13 +1479,11 @@
|
||||
self.BuildingBlock.make_active($(item));
|
||||
}
|
||||
});
|
||||
|
||||
this.$el.find(".edition").click(function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
self.element = new CKEDITOR.dom.element(self.$target[0]);
|
||||
new website.editor.MediaDialog(self, self.element).appendTo(document.body);
|
||||
});
|
||||
},
|
||||
edition: function (type, value) {
|
||||
if(type !== "click") return;
|
||||
this.element = new CKEDITOR.dom.element(this.$target[0]);
|
||||
new website.editor.MediaDialog(this, this.element).appendTo(document.body);
|
||||
},
|
||||
on_focus : function () {
|
||||
var self = this;
|
||||
|
||||
@@ -1070,7 +1070,7 @@
|
||||
|
||||
<div data-option='media'
|
||||
data-selector="img:not(.cke_iframe), .media_iframe_video, span.fa, i.fa, .glyphicon">
|
||||
<li><a href="#" class="edition">Change...</a></li>
|
||||
<li data-edition="edition"><a>Change...</a></li>
|
||||
</div>
|
||||
|
||||
<div data-option='transform'
|
||||
|
||||
Reference in New Issue
Block a user