File: /home/vhosts/harpoeditore.it/httpdocs/wp-content/themes/dt-the7/inc/shortcodes/js/vc-custom-view.js
(function ($) {
window.InlineShortcodeView_vc_column_text = window.InlineShortcodeView.extend({
initialize: function(options) {
window.InlineShortcodeView_vc_column_text.__super__.initialize.call(this, options);
_.bindAll(this, 'setupEditor', 'updateContent');
},
setupEditor: function(ed) {
ed.on('keyup', this.updateContent)
},
updateContent: function() {
var params = this.model.get('params');
params.content = tinyMCE.activeEditor.getContent();
this.model.save({params: params}, {silent: true});
},
render: function() {
window.InlineShortcodeView_vc_column_text.__super__.render.call(this);
vc.frame_window.vc_iframe.addActivity(function(){
// this.createSocIcons();
});
return this;
},
parentChanged: function() {
// vc.frame_window.createSocIcons();
}
});
})(window.jQuery);