mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -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 ) {
|
||||
// Normalise the arguments and get selection
|
||||
if ( !range && !( range = this.getSelection() ) ) {
|
||||
return;
|
||||
return this;
|
||||
}
|
||||
|
||||
// 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 ) {
|
||||
// Normalise the arguments and get selection
|
||||
if ( !range && !( range = this.getSelection() ) ) {
|
||||
return;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Save undo checkpoint
|
||||
|
|
Loading…
Reference in a new issue