django-dbtemplates icon indicating copy to clipboard operation
django-dbtemplates copied to clipboard

Source code editor must be enabled by default

Open vstoykov opened this issue 11 years ago • 2 comments

I think that writing templates in textarea is pain. There is two possibilities:

  1. Source Code Editor
  2. WYSIWYG Editor

Using rich text editor can cause many problems and you will not have control over the code. The best solution is source code editor. The only one JavaScript code editor supported by dbtemplates is CodeMirror. We can enable it by default. If some people doesn't use static files we can modify documentation how to make it to work without staticfiles app or how to disable it if they don't want it.

@jezdez has some concerns about usefulness of CodeMirror. If anybody has issues with it can share it and we can see if it is possible (and easy) to fix. If this CodeMirror has too many problems another one can be chosen. Suggestions are welcome.

vstoykov avatar May 16 '13 06:05 vstoykov

In iPad, Codemirror window is frozen, whatever window size is shown that is what you get. Can not scroll down.

sunjoomoon avatar Jan 29 '14 23:01 sunjoomoon

@sunjoomoon Maybe it's time to upgrade codemirror.

jezdez avatar Jan 30 '14 09:01 jezdez