mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
Updated README, aligned return value with other API functions.
This commit is contained in:
parent
6aba099388
commit
90660e8e4f
3 changed files with 10 additions and 0 deletions
|
@ -403,3 +403,9 @@ Returns self (the Squire instance).
|
||||||
Decreases by 1 the nesting level of any at-least-partially selected blocks which are part of a list.
|
Decreases by 1 the nesting level of any at-least-partially selected blocks which are part of a list.
|
||||||
|
|
||||||
Returns self (the Squire instance).
|
Returns self (the Squire instance).
|
||||||
|
|
||||||
|
### removeAllFormatting
|
||||||
|
|
||||||
|
Removes all formatting from the selection. Block elements (list items, table cells, etc.) are kept as separate blocks.
|
||||||
|
|
||||||
|
Returns self (the Squire instance).
|
||||||
|
|
|
@ -3700,6 +3700,8 @@ proto.removeAllFormatting = function ( range ) {
|
||||||
} );
|
} );
|
||||||
|
|
||||||
this.setSelection( this._getRangeAndRemoveBookmark() );
|
this.setSelection( this._getRangeAndRemoveBookmark() );
|
||||||
|
|
||||||
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );
|
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );
|
||||||
|
|
|
@ -2242,6 +2242,8 @@ proto.removeAllFormatting = function ( range ) {
|
||||||
} );
|
} );
|
||||||
|
|
||||||
this.setSelection( this._getRangeAndRemoveBookmark() );
|
this.setSelection( this._getRangeAndRemoveBookmark() );
|
||||||
|
|
||||||
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );
|
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );
|
||||||
|
|
Loading…
Reference in a new issue