mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Only maintain LI numbering when splitting OL if in BLOCKQUOTE.
Fixes #53
This commit is contained in:
parent
3c8eaa1fcc
commit
4c63ad696e
3 changed files with 6 additions and 6 deletions
|
@ -421,8 +421,8 @@ function split ( node, offset, stopNode ) {
|
||||||
offset = next;
|
offset = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maintain li numbering
|
// Maintain li numbering if inside a quote.
|
||||||
if ( node.nodeName === 'OL' ) {
|
if ( node.nodeName === 'OL' && getNearest( node, 'BLOCKQUOTE' ) ) {
|
||||||
clone.start = ( +node.start || 1 ) + node.childNodes.length - 1;
|
clone.start = ( +node.start || 1 ) + node.childNodes.length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -290,8 +290,8 @@ function split ( node, offset, stopNode ) {
|
||||||
offset = next;
|
offset = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maintain li numbering
|
// Maintain li numbering if inside a quote.
|
||||||
if ( node.nodeName === 'OL' ) {
|
if ( node.nodeName === 'OL' && getNearest( node, 'BLOCKQUOTE' ) ) {
|
||||||
clone.start = ( +node.start || 1 ) + node.childNodes.length - 1;
|
clone.start = ( +node.start || 1 ) + node.childNodes.length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue