0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Updated README, aligned return value with other API functions.

This commit is contained in:
Gert Sønderby 2015-06-16 15:27:31 +02:00
parent 3c6ea38ca6
commit c19e8a9ebc
3 changed files with 10 additions and 0 deletions

View file

@ -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.
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).

View file

@ -3715,6 +3715,8 @@ proto.removeAllFormatting = function ( range ) {
} );
this.setSelection( this._getRangeAndRemoveBookmark() );
return this;
};
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );

View file

@ -2257,6 +2257,8 @@ proto.removeAllFormatting = function ( range ) {
} );
this.setSelection( this._getRangeAndRemoveBookmark() );
return this;
};
proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );