comparison src/sceditor.js @ 42:69654081643b

css cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 29 Aug 2022 22:36:31 -0600
parents 9f63c8f506d1
children ab852c9f04c3
comparison
equal deleted inserted replaced
41:7491026f7623 42:69654081643b
1807 '<link rel="stylesheet" type="text/css" href="{style}" />' + 1807 '<link rel="stylesheet" type="text/css" href="{style}" />' +
1808 '</head>' + 1808 '</head>' +
1809 '<body contenteditable="true" {spellcheck}><p></p></body>' + 1809 '<body contenteditable="true" {spellcheck}><p></p></body>' +
1810 '</html>', 1810 '</html>',
1811 1811
1812
1813 toolbarButton: '<a class="sceditor-button" ' + 1812 toolbarButton: '<a class="sceditor-button" ' +
1814 'data-sceditor-command="{name}" unselectable="on">' + 1813 'data-sceditor-command="{name}" unselectable="on">' +
1815 '{icon}</a>', 1814 '{icon}</a>',
1815 // toolbarButton: '<button>{icon}</button>',
1816 1816
1817 emoticon: '<img src="{url}" data-sceditor-emoticon="{key}" ' + 1817 emoticon: '<img src="{url}" data-sceditor-emoticon="{key}" ' +
1818 'alt="{key}" title="{tooltip}" />', 1818 'alt="{key}" title="{tooltip}" />',
1819 1819
1820 fontOpt: '<a class="sceditor-font-option" href="#" ' + 1820 fontOpt: '<a class="sceditor-font-option" href="#" ' +
4745 commands = base.commands, 4745 commands = base.commands,
4746 exclude = (options.toolbarExclude || '').split(','), 4746 exclude = (options.toolbarExclude || '').split(','),
4747 groups = options.toolbar.split('|'); 4747 groups = options.toolbar.split('|');
4748 4748
4749 toolbar = createElement('div', { 4749 toolbar = createElement('div', {
4750 className: 'sceditor-toolbar', 4750 className: 'sceditor-toolbar'
4751 unselectable: 'on'
4752 }); 4751 });
4753 4752
4754 each(groups, function (_, menuItems) { 4753 each(groups, function (_, menuItems) {
4755 group = createElement('div', { 4754 group = createElement('div', {
4756 className: 'sceditor-group' 4755 className: 'sceditor-group'