changeset 45:bc1bce78276d

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 30 Aug 2022 02:03:50 -0600
parents 48c153a1a6cf
children ab2dc8736d88
files src/sceditor.js
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/sceditor.js	Tue Aug 30 01:52:16 2022 -0600
+++ b/src/sceditor.js	Tue Aug 30 02:03:50 2022 -0600
@@ -1813,8 +1813,6 @@
 				'<body contenteditable="true" {spellcheck}><p></p></body>' +
 			'</html>',
 
-		toolbarButton: '<button>{icon}</button>',
-
 		emoticon: '<img src="{url}" data-sceditor-emoticon="{key}" ' +
 			'alt="{key}" title="{tooltip}" />',
 
@@ -4765,11 +4763,8 @@
 					}
 
 					let shortcut = command.shortcut;
-					let icon = command.icon;
-					let button = _tmpl( 'toolbarButton', {
-						name: commandName,
-						icon: icon || '',
-					} );
+					let icon = command.icon || '';
+					let button = '<button>' + icon + '</button>';
 					button = parseHTML(button).firstChild;
 					button._sceTxtMode = !!command.txtExec;
 					button._sceWysiwygMode = !!command.exec;