[FIX] website: clean for save of snippet editor don't remove conteneteditable attributes

This commit is contained in:
Christophe Matthieu 2014-06-16 11:47:28 +02:00
parent 47647c6c49
commit 3d66fff4d4
1 changed files with 3 additions and 4 deletions

View File

@ -362,10 +362,6 @@
},
clean_for_save: function () {
var self = this;
$("*[contentEditable], *[attributeEditable]")
.removeAttr('contentEditable')
.removeAttr('attributeEditable');
var options = website.snippet.options;
var template = website.snippet.templateOptions;
for (var k in options) {
@ -376,6 +372,9 @@
});
}
}
$("*[contentEditable], *[attributeEditable]")
.removeAttr('contentEditable')
.removeAttr('attributeEditable');
},
make_active: function ($snippet) {
if ($snippet && this.$active_snipped_id && this.$active_snipped_id.get(0) === $snippet.get(0)) {