mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
changeFormat should always return self.
This commit is contained in:
parent
8eea926e2b
commit
048a7296b2
3 changed files with 3 additions and 3 deletions
|
@ -3401,7 +3401,7 @@ proto._removeFormat = function ( tag, attributes, range, partial ) {
|
||||||
proto.changeFormat = function ( add, remove, range, partial ) {
|
proto.changeFormat = function ( add, remove, range, partial ) {
|
||||||
// Normalise the arguments and get selection
|
// Normalise the arguments and get selection
|
||||||
if ( !range && !( range = this.getSelection() ) ) {
|
if ( !range && !( range = this.getSelection() ) ) {
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save undo checkpoint
|
// Save undo checkpoint
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1133,7 +1133,7 @@ proto._removeFormat = function ( tag, attributes, range, partial ) {
|
||||||
proto.changeFormat = function ( add, remove, range, partial ) {
|
proto.changeFormat = function ( add, remove, range, partial ) {
|
||||||
// Normalise the arguments and get selection
|
// Normalise the arguments and get selection
|
||||||
if ( !range && !( range = this.getSelection() ) ) {
|
if ( !range && !( range = this.getSelection() ) ) {
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save undo checkpoint
|
// Save undo checkpoint
|
||||||
|
|
Loading…
Reference in a new issue