From f23b7205c6100a4dd044b71c22074c2d37683a57 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 25 Jan 2023 09:28:48 +0100 Subject: [PATCH] Squire Colour to Color --- vendors/squire/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vendors/squire/README.md b/vendors/squire/README.md index 2ce7b803d..437cff617 100644 --- a/vendors/squire/README.md +++ b/vendors/squire/README.md @@ -205,7 +205,7 @@ Returns the path through the DOM tree from the `
` element to the current c ### getFontInfo -Returns an object containing the active font family, size, colour and background colour for the the current cursor position, if any are set. The property names are respectively `family`, `size`, `color` and `backgroundColor`. It looks at style attributes to detect this, so will not detect `` tags or non-inline styles. If a selection across multiple elements has been made, it will return an empty object. +Returns an object containing the active font family, size, color and background color for the the current cursor position, if any are set. The property names are respectively `family`, `size`, `color` and `backgroundColor`. It looks at style attributes to detect this, so will not detect `` tags or non-inline styles. If a selection across multiple elements has been made, it will return an empty object. ### createRange @@ -252,7 +252,7 @@ Returns self (the Squire instance). ### saveUndoState Saves an undo checkpoint with the current editor state. Methods that modify the -state (e.g. bold/setHighlightColour/modifyBlocks) will automatically save undo +state (e.g. bold/setHighlightColor/modifyBlocks) will automatically save undo checkpoints; you only need this method if you want to modify the DOM outside of one of these methods, and you want to save an undo checkpoint first. @@ -354,23 +354,23 @@ This method takes one argument: Returns self (the Squire instance). -### setTextColour +### setTextColor -Sets the colour of the selected text. +Sets the color of the selected text. This method takes one argument: -* **colour**: The colour to set. Any [CSS colour value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) is accepted, e.g. '#f00', or 'hsl(0,0,0)'. +* **color**: The color to set. Any [CSS color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) is accepted, e.g. '#f00', or 'hsl(0,0,0)'. Returns self (the Squire instance). -### setHighlightColour +### setHighlightColor -Sets the colour of the background of the selected text. +Sets the color of the background of the selected text. This method takes one argument: -* **colour**: The colour to set. Any [CSS colour value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) is accepted, e.g. '#f00', or 'hsl(0,0,0)'. +* **color**: The color to set. Any [CSS color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) is accepted, e.g. '#f00', or 'hsl(0,0,0)'. Returns self (the Squire instance).