mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
Support American and English Spelling of Colour.
This commit makes this change non-breaking.
This commit is contained in:
parent
f035e8cbec
commit
53cd638e1e
5 changed files with 11 additions and 11 deletions
|
@ -58,7 +58,7 @@
|
||||||
<span id="setFontFace" class="prompt">Font face</span>
|
<span id="setFontFace" class="prompt">Font face</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span id="setTextColour" class="prompt">Text color</span>
|
<span id="setTextColor" class="prompt">Text colour</span>
|
||||||
<span id="setHighlightColor" class="prompt">Text highlight</span>
|
<span id="setHighlightColor" class="prompt">Text highlight</span>
|
||||||
<span id="makeLink" class="prompt">Link</span>
|
<span id="makeLink" class="prompt">Link</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -250,13 +250,13 @@ This method takes one argument:
|
||||||
|
|
||||||
Returns self (the Squire instance).
|
Returns self (the Squire instance).
|
||||||
|
|
||||||
### setTextColour
|
### setTextColor
|
||||||
|
|
||||||
Sets the colour of the selected text.
|
Sets the colour of the selected text.
|
||||||
|
|
||||||
This method takes one argument:
|
This method takes one argument:
|
||||||
|
|
||||||
* **colour**: The colour to set. Any CSS colour value is accepted, e.g. '#f00', or 'hsl(0,0,0)'.
|
* **color**: The colour to set. Any CSS color value is accepted, e.g. '#f00', or 'hsl(0,0,0)'.
|
||||||
|
|
||||||
Returns self (the Squire instance).
|
Returns self (the Squire instance).
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ Sets the colour of the background of the selected text.
|
||||||
|
|
||||||
This method takes one argument:
|
This method takes one argument:
|
||||||
|
|
||||||
* **colour**: The colour to set. Any CSS colour value is accepted, e.g. '#f00', or 'hsl(0,0,0)'.
|
* **color**: The colour to set. Any CSS color value is accepted, e.g. '#f00', or 'hsl(0,0,0)'.
|
||||||
|
|
||||||
Returns self (the Squire instance).
|
Returns self (the Squire instance).
|
||||||
|
|
||||||
|
|
|
@ -3361,7 +3361,7 @@ proto.setFontSize = function ( size ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.setTextColour = function ( colour ) {
|
proto.setTextColor = proto.setTextColour =function ( colour ) {
|
||||||
this.changeFormat({
|
this.changeFormat({
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
attributes: {
|
attributes: {
|
||||||
|
@ -3375,7 +3375,7 @@ proto.setTextColour = function ( colour ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.setHighlightColor = function ( colour ) {
|
proto.setHighlightColor = proto.setHighlightColour = function ( colour ) {
|
||||||
this.changeFormat({
|
this.changeFormat({
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2283,12 +2283,12 @@ proto.setFontSize = function ( size ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.setTextColour = function ( colour ) {
|
proto.setTextColor = proto.setTextColour =function ( color ) {
|
||||||
this.changeFormat({
|
this.changeFormat({
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
attributes: {
|
attributes: {
|
||||||
'class': 'colour',
|
'class': 'colour',
|
||||||
style: 'color: ' + colour
|
style: 'color: ' + color
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
|
@ -2297,12 +2297,12 @@ proto.setTextColour = function ( colour ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
proto.setHighlightColor = function ( colour ) {
|
proto.setHighlightColor = proto.setHighlightColour = function ( color ) {
|
||||||
this.changeFormat({
|
this.changeFormat({
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
attributes: {
|
attributes: {
|
||||||
'class': 'highlight',
|
'class': 'highlight',
|
||||||
style: 'background-color: ' + colour
|
style: 'background-color: ' + color
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
tag: 'SPAN',
|
tag: 'SPAN',
|
||||||
|
|
Loading…
Reference in a new issue