Link entry in the editor now works. The example code at https://www.thatsoftwaredude...
authorArt Cancro <ajc@citadel.org>
Fri, 26 Nov 2021 05:39:04 +0000 (00:39 -0500)
committerArt Cancro <ajc@citadel.org>
Fri, 26 Nov 2021 05:39:04 +0000 (00:39 -0500)
commit6f0e26168da5d0c4f8115c67f68d87a1c879a76c
treed8ea25afded9e35147b727fcd62a1a18645a3818
parentb72d201c04f87e2a29f7cfcdd29dff2644aec84e
Link entry in the editor now works.  The example code at https://thatsoftwaredude.com/content/8912/create-a-basic-text-editor-in-javascript was a bit naive because it assumes the URL is already known at the moment the user presses the Link button.  We open a box for URL entry, but when the user clicks into that box the original selection disappears.  So we have to save the selection range in hidden fields so we know where to replace the text.
webcit-ng/static/css/webcit.css
webcit-ng/static/js/view_forum.js