summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorParamjit Singh Sahota <psa@tinyerp.com>2013-09-24 12:19:13 +0530
committerParamjit Singh Sahota <psa@tinyerp.com>2013-09-24 12:19:13 +0530
commitce9a7ccccee2b668307bcef75f39478835e16505 (patch)
treeaa1e37df388a1e190c51b2bbaa56858f5fce0d18 /addons/website/static/src/js/website.editor.js
parent8fc38776462d912e1103a66e4eee839f325d0db0 (diff)
parent3862a4e83da1c1bda2711d17d55148a41a3ee504 (diff)
[MERGE] Merged trunk-website-al
bzr revid: psa@tinyerp.com-20130924064913-fgr3btfwwbtb68xn
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 0c32cf40fb2..b82f665c838 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -406,6 +406,9 @@
allowedContent: true,
// Don't insert paragraphs around content in e.g. <li>
autoParagraph: false,
+ // Don't automatically add &nbsp; or <br> in empty block-level
+ // elements when edition starts
+ fillEmptyBlocks: false,
filebrowserImageUploadUrl: "/website/attach",
// Support for sharedSpaces in 4.x
extraPlugins: 'sharedspace,customdialogs,tablebutton,oeref',
@@ -646,7 +649,7 @@
return openerp.jsonRpc('/web/dataset/call_kw', 'call', {
model: 'website',
method: 'list_pages',
- args: [],
+ args: [null],
kwargs: {
context: website.get_context()
},