mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-28 09:41:29 +08:00
This commit is contained in:
parent
8b53b189f8
commit
f300ec94ee
1 changed files with 6 additions and 1 deletions
7
vendors/squire/build/squire-raw.js
vendored
7
vendors/squire/build/squire-raw.js
vendored
|
@ -66,6 +66,7 @@ const
|
||||||
},
|
},
|
||||||
|
|
||||||
inlineNodeNames = /^(?:#text|A|ABBR|ACRONYM|B|BR|BD[IO]|CITE|CODE|DATA|DEL|DFN|EM|FONT|HR|IMG|INPUT|INS|KBD|Q|RP|RT|RUBY|SAMP|SMALL|SPAN|STR(IKE|ONG)|SU[BP]|TIME|U|VAR|WBR)$/,
|
inlineNodeNames = /^(?:#text|A|ABBR|ACRONYM|B|BR|BD[IO]|CITE|CODE|DATA|DEL|DFN|EM|FONT|HR|IMG|INPUT|INS|KBD|Q|RP|RT|RUBY|SAMP|SMALL|SPAN|STR(IKE|ONG)|SU[BP]|TIME|U|VAR|WBR)$/,
|
||||||
|
phrasingElements = 'ABBR,AUDIO,B,BDO,BR,BUTTON,CANVAS,CITE,CODE,COMMAND,DATA,DATALIST,DFN,EM,EMBED,I,IFRAME,IMG,INPUT,KBD,KEYGEN,LABEL,MARK,MATH,METER,NOSCRIPT,OBJECT,OUTPUT,PROGRESS,Q,RUBY,SAMP,SCRIPT,SELECT,SMALL,SPAN,STRONG,SUB,SUP,SVG,TEXTAREA,TIME,VAR,VIDEO,WBR',
|
||||||
|
|
||||||
leafNodeNames = {
|
leafNodeNames = {
|
||||||
BR: 1,
|
BR: 1,
|
||||||
|
@ -310,7 +311,11 @@ const
|
||||||
for ( i = 0, l = children.length; i < l; ++i ) {
|
for ( i = 0, l = children.length; i < l; ++i ) {
|
||||||
child = children[i];
|
child = children[i];
|
||||||
isBR = child.nodeName === 'BR';
|
isBR = child.nodeName === 'BR';
|
||||||
if ( !isBR && isInline( child ) ) {
|
if ( !isBR && isInline( child ) && (
|
||||||
|
config.blockTag !== 'DIV' ||
|
||||||
|
!phrasingContentElements.matches(phrasingElements)
|
||||||
|
)
|
||||||
|
) {
|
||||||
if ( !wrapper ) {
|
if ( !wrapper ) {
|
||||||
wrapper = createElement( doc, 'div' );
|
wrapper = createElement( doc, 'div' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue