view src/changes.txt @ 26:160be99e1517

remove bbcode call
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 09 Aug 2022 23:30:24 -0600
parents 499f38b5eeff
children db061869f28f
line wrap: on
line source

changes, most recent at top


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.

Add optional "icon" to command spec.

Formats set default format so the "format" option isn't needed.

Allow selector for textarea.

CSS cleanup.  Avoiding CSS includes is wrong for the same reason that minification is wrong.

Changing icons required including a javascript file and setting the "icons" option.  This is confusing so I got rid of the "icons" option.  And I added icons/famfamfam.js as an option which is the default.

Added examples/min.html and fixed defaults of 'style', 'width', and 'height'.  'width' defaults to 600 and 'height' defaults to 300.  The dimensions of the textarea aren't used.  This guarantees a reasonable default.

fix emoticonsRoot

Move /development/* to /

Remove jQuery, another modern nightmare.

Remove minified.  Donald Knuth said "The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming."  This certainly applies to minification of static files that are cached in the browser anyway.  Not only is this pointless but it makes debugging more difficult and forces a build process.  But of course modern scum programmers love this because they love pointless complexity.

Add changes.txt
Add serve.sh