summaryrefslogtreecommitdiff
path: root/addons/website/static
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-09-23 15:49:14 +0200
committerXavier Morel <xmo@openerp.com>2013-09-23 15:49:14 +0200
commitf040cfc7b1b8cfcdaddc3c2ea36110e886a8e47d (patch)
treeff09282164cad3e6763115144ac6f26353c4a068 /addons/website/static
parent5c9bdf1dcbe7950f409b813912e8cb0a5bd0ed85 (diff)
[FIX] placeholder image when edition starts
it's apparently better when it's completely broken and can't be edited. YMMV bzr revid: xmo@openerp.com-20130923134914-1si4fz8fg72iktvw
Diffstat (limited to 'addons/website/static')
-rw-r--r--addons/website/static/src/js/website.editor.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 0c32cf40fb2..945164dfed8 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',