Mercurial Hosting > sceditor
comparison 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 |
comparison
equal
deleted
inserted
replaced
29:ea32a44b5a6e | 30:db061869f28f |
---|---|
1 changes, most recent at top | 1 changes, most recent at top |
2 | 2 |
3 | |
4 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 . | |
3 | 5 |
4 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. | 6 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. |
5 | 7 |
6 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. | 8 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. |
7 | 9 |