mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Merge remote-tracking branch 'refs/remotes/neilj/master' into Path-contains-format-values
# Conflicts: # build/squire-raw.js # build/squire.js # source/Node.js
This commit is contained in:
commit
daec81d03f
2 changed files with 14 additions and 8 deletions
|
@ -291,13 +291,16 @@ function getPath ( node, root ) {
|
|||
}
|
||||
if ( classNames ) {
|
||||
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
||||
path += '[backgroundColor=' + node.style.backgroundColor.replace(/ /g,'') + ']';
|
||||
path += '[backgroundColor=' +
|
||||
node.style.backgroundColor.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
||||
path += '[color=' + node.style.color.replace(/ /g,'') + ']';
|
||||
path += '[color=' +
|
||||
node.style.color.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
||||
path += '[fontFamily=' + node.style.fontFamily.replace(/ /g,'') + ']';
|
||||
path += '[fontFamily=' +
|
||||
node.style.fontFamily.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
||||
path += '[fontSize=' + node.style.fontSize + ']';
|
||||
|
|
|
@ -115,13 +115,16 @@ function getPath ( node, root ) {
|
|||
}
|
||||
if ( classNames ) {
|
||||
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
||||
path += '[backgroundColor=' + node.style.backgroundColor.replace(/ /g,'') + ']';
|
||||
path += '[backgroundColor=' +
|
||||
node.style.backgroundColor.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
||||
path += '[color=' + node.style.color.replace(/ /g,'') + ']';
|
||||
path += '[color=' +
|
||||
node.style.color.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
||||
path += '[fontFamily=' + node.style.fontFamily.replace(/ /g,'') + ']';
|
||||
path += '[fontFamily=' +
|
||||
node.style.fontFamily.replace( / /g,'' ) + ']';
|
||||
}
|
||||
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
||||
path += '[fontSize=' + node.style.fontSize + ']';
|
||||
|
|
Loading…
Reference in a new issue