From 90660e8e4fe8f965fab5d350d8d9a01e7d4697cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gert=20S=C3=B8nderby?= Date: Tue, 16 Jun 2015 15:27:31 +0200 Subject: [PATCH] Updated README, aligned return value with other API functions. --- README.md | 6 ++++++ build/squire-raw.js | 2 ++ source/Editor.js | 2 ++ 3 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 19b4d63..124fc55 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/build/squire-raw.js b/build/squire-raw.js index dd0e71c..567b0ac 100644 --- a/build/squire-raw.js +++ b/build/squire-raw.js @@ -3700,6 +3700,8 @@ proto.removeAllFormatting = function ( range ) { } ); this.setSelection( this._getRangeAndRemoveBookmark() ); + + return this; }; proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel ); diff --git a/source/Editor.js b/source/Editor.js index 2e10c6f..1d5e465 100644 --- a/source/Editor.js +++ b/source/Editor.js @@ -2242,6 +2242,8 @@ proto.removeAllFormatting = function ( range ) { } ); this.setSelection( this._getRangeAndRemoveBookmark() ); + + return this; }; proto.increaseQuoteLevel = command( 'modifyBlocks', increaseBlockQuoteLevel );