ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Page editor doesn't handle <textarea> well #114

Open joachimschmidt557 opened 5 years ago

joachimschmidt557 commented 5 years ago

The HTML editor for pages doesn't seem to handle <textarea> well:

image

The text A more complete example should be part of the page to be edited.

ThomasTJdev commented 5 years ago

Confirmed, this is a bug. The page data is inserted into a <textarea id="editordataCodemirror">, which codemirror formats. The problem occurs, when the pagedata also includes <textarea>-fields, due to codemirror is closing the editor on first </textarea>.

juancarlospaco commented 4 years ago

Solution https://stackoverflow.com/a/2844617 :grey_question:

More of a CodeMirror bug than our bug, but still. 🤷‍♀️