[FIX] website summernote: code, quote formatblock not work properly and split the selection like other formating
This commit is contained in:
@@ -1701,6 +1701,12 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor)
|
||||
}
|
||||
r.reRange().select();
|
||||
|
||||
if (sTagName === "blockquote" || sTagName === "pre") {
|
||||
sTagName = $.summernote.core.agent.isMSIE ? '<' + sTagName + '>' : sTagName;
|
||||
document.execCommand('FormatBlock', false, sTagName);
|
||||
return;
|
||||
}
|
||||
|
||||
// fix by odoo because if you select a style in a li with no p tag all the ul is wrapped by the style tag
|
||||
var nodes = dom.listBetween(r.sc, r.ec);
|
||||
for (var i=0; i<nodes.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user