diff src/formats/xhtml.js @ 30:db061869f28f

remove sceditor.command, add options.onCreate
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 12 Aug 2022 00:54:39 -0600
parents 8165b83907af
children c23475f3f466
line wrap: on
line diff
--- a/src/formats/xhtml.js	Thu Aug 11 19:54:03 2022 -0600
+++ b/src/formats/xhtml.js	Fri Aug 12 00:54:39 2022 -0600
@@ -24,7 +24,9 @@
 	var each = utils.each;
 	var isEmptyObject = utils.isEmptyObject;
 
-	var getEditorCommand = sceditor.command.get;
+	function getEditorCommand(cmd) {
+		return sceditor.commands[cmd];
+	}
 
 	var defaultCommandsOverrides = {
 		bold: {