KoboldAI-Client/static
Gnome Ann aaa0c3374e Fix problems with stories that end in newlines
Today I learned that the editor only works properly when the last
<chunk> tag has a <br> inside it at the end.  This last <br> is
invisible and is automatically created by all major browsers when you
use the enter key to type a newline at the end of a story to "prevent
the element from collapsing".  When there's more than one <br> at the
end of the last <chunk>, only the last of those <br>s is invisible, so
if you have three <br>s, they are rendered as two newlines.  This only
applies to the last <chunk>, so if the second last <chunk> has three
<br>s at the end, they are still rendered as three newlines.  Since
the browser is really insistent on doing this, this commit mostly deals
with dynamically creating and deleting <br> tags at the ends of <chunk>
tags as needed to provide a consistent experience, and making sure
that all <br> tags actually go inside of <chunk> tags to prevent
breaking the editor.  The latter behaviour was exhibited by Chrome and
caused a bug when you added a newline at the end of your story using
the editor.
2021-10-13 00:42:03 -04:00
..
application.js Fix problems with stories that end in newlines 2021-10-13 00:42:03 -04:00
bootstrap-toggle.min.css Added Formatting options 2021-05-10 19:17:10 -04:00
bootstrap-toggle.min.js Added Formatting options 2021-05-10 19:17:10 -04:00
bootstrap.min.css Moved files from cdn to static directory 2021-05-31 16:30:40 +02:00
bootstrap.min.js Moved files from cdn to static directory 2021-05-31 16:30:40 +02:00
custom.css Fix world info screen and bump application.js version 2021-09-28 19:00:23 -04:00
jquery-3.6.0.min.js Moved files from cdn to static directory 2021-05-31 16:30:40 +02:00
open-iconic-bootstrap.min.css Add Open Font License to Open Iconic's CSS file 2021-08-31 16:03:11 -04:00
open-iconic.woff Constant world info keys 2021-08-24 13:45:20 -04:00
rangy-core.min.js Rewrite the code for the editor for better browser compat 2021-09-27 13:11:15 -04:00
socket.io.min.js Initial Upload 2021-05-02 18:48:47 -04:00
thinking.gif Initial Upload 2021-05-02 18:48:47 -04:00