summaryrefslogtreecommitdiff
path: root/addons/website/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-10-13 16:41:10 +0200
committerNicolas Martinelli <nim@odoo.com>2015-10-13 17:58:33 +0200
commit7661a7402b02ad886d402e4c48f04f9f3848f999 (patch)
tree491c4203b20a2dd9f29e9f0f6453c64d399db08f /addons/website/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parentb240d0000b640d8c1da1726a1ea473308aadd8f1 (diff)
[FIX] web_editor: trigger mouseup at start
When we initialize the web editor, the font size in the toolbar is initialized to NaN. What is done: - Initialize the Summernote editor in initialize_content - Render the content of the node in render_value - Append the node to the DOM Since the Summernote editor is initialized in initialize_content, the node is still hidden. Since the node is hidden, Summernote won't be able to determine the style info of the text (see method fromNode from Style.js). Indeed, when jQueryCss is called, $node.is(':hidden') is true which will lead to styleInfo['font-size'] = NaN. To avoid patching Summernote, we take advantage of an existing trigger which reloads the button content upon mouseup. This is also safer than initializing Summernote after appending the node to the DOM. opw-652041
Diffstat (limited to 'addons/website/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions