diff src/changes.txt @ 30:db061869f28f

remove sceditor.command, add options.onCreate
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 12 Aug 2022 00:54:39 -0600
parents 499f38b5eeff
children cd02cd04bc9d
line wrap: on
line diff
--- a/src/changes.txt	Thu Aug 11 19:54:03 2022 -0600
+++ b/src/changes.txt	Fri Aug 12 00:54:39 2022 -0600
@@ -1,6 +1,8 @@
 changes, most recent at top
 
 
+Removed sceditor.command with its get(), set(), and remove().  It is better to work with sceditor.commands directly.  I also added an options.onCreate callback which lets one work with the final editor.commands .
+
 Remove DOMPurify.  This was a huge amount of incomprehensible code that adds little value.  XSS should basically be handled on the server side, and if one is using bbcode then it isn't an issue anyway.
 
 Removed "this" from command functions and instead pass "editor" as first arg.  Javascript's object-oriented features are a disgusting hack and should never be used.  I will remove uses of this as I encounter them.