summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-09-06 17:04:08 +0200
committerChristophe Matthieu <chm@openerp.com>2013-09-06 17:04:08 +0200
commit4d1cc6a4ed499ddd8541fb37810a6728da66f9d1 (patch)
tree6a395263396b12aef90c1fddb9e0b30aedf0e4c7 /addons/website/static/src/js/website.editor.js
parent8a3f1742e0e9c7acaae726e5c7106d2d7df7e970 (diff)
[WIP] website: snippets
bzr revid: chm@openerp.com-20130906150408-81qzb2492lwqf7lb
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 32e77acedab..b4c35042350 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -220,6 +220,11 @@
// editor.ui.items -> possible commands &al
// editor.applyStyle(new CKEDITOR.style({element: "span",styles: {color: "#(color)"},overrides: [{element: "font",attributes: {color: null}}]}, {color: '#ff0000'}));
+ init: function (EditorBar) {
+ this.EditorBar = EditorBar;
+ this._super.apply(this, arguments);
+ },
+
start_edition: function ($elements) {
var self = this;
$elements
@@ -229,6 +234,7 @@
var $node = $(node);
var editor = CKEDITOR.inline(this, self._config());
editor.on('instanceReady', function () {
+ self.trigger('instanceReady');
observer.observe(node, OBSERVER_CONFIG);
});
$node.one('content_changed', function () {