mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-03 11:42:19 +03:00
Cleanup unused Squire code
This commit is contained in:
parent
01692075c6
commit
6d6690009c
2 changed files with 5 additions and 239 deletions
22
dev/External/SquireUI.js
vendored
22
dev/External/SquireUI.js
vendored
|
|
@ -70,9 +70,9 @@ class SquireUI
|
|||
{
|
||||
constructor(container) {
|
||||
const
|
||||
doClr = fn => () => {
|
||||
doClr = name => () => {
|
||||
clr.value = '';
|
||||
clr.onchange = () => squire[fn](clr.value);
|
||||
clr.onchange = () => squire.setStyle({[name]:clr.value});
|
||||
clr.click();
|
||||
},
|
||||
|
||||
|
|
@ -114,29 +114,15 @@ class SquireUI
|
|||
colors: {
|
||||
textColor: {
|
||||
html: 'A<sub>▾</sub>',
|
||||
cmd: doClr('setTextColor'),
|
||||
cmd: doClr('color'),
|
||||
hint: 'Text color'
|
||||
},
|
||||
backgroundColor: {
|
||||
html: '🎨', /* ▧ */
|
||||
cmd: doClr('setBackgroundColor'),
|
||||
cmd: doClr('backgroundColor'),
|
||||
hint: 'Background color'
|
||||
},
|
||||
},
|
||||
/*
|
||||
bidi: {
|
||||
bdoLtr: {
|
||||
html: '‎𝐁',
|
||||
cmd: () => this.doAction('bold','B'),
|
||||
hint: 'Bold'
|
||||
},
|
||||
bdoRtl: {
|
||||
html: '‏𝐁',
|
||||
cmd: () => this.doAction('bold','B'),
|
||||
hint: 'Bold'
|
||||
}
|
||||
},
|
||||
*/
|
||||
inline: {
|
||||
bold: {
|
||||
html: 'B',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue