[Expo-tech] Remove tinymce dependency - use plain text editing
Martin Green
martin.speleo at gmail.com
Fri Jun 12 17:28:14 BST 2020
Has anyone checked how many people on expo get scared by html? It may be
more than we would assume. Several people have complained about it over
the years.
Is it that often that we search for changes to make it actually a
problem?
Cheers, Martin
On Thu, 11 Jun 2020, 17:22 Philip Sargent (Gmail), <philip.sargent at gmail.com>
wrote:
> OK,
> Wookey & I agree that the wysiwyg HTML editing is more trouble than it is
> worth, so we propose to remove the TinyMCE javascript editor from troggle
> when we move to python3.
>
> This is only used in the "Edit this page" capability on HTML pages.
> (The similar capability to edit .svx files online just uses JQuery and is
> not a problem.)
>
> The problem is that TinyMCE insists on reformatting all the HTML so that
> git
> thinks the whole page has been changed when the person editing made only a
> one-line change.
>
> We can't find a setting, even in the most recent version of TinyMCE, that
> stops this happening. There are settings to add to the default format:{}
> setting but none to get rid of it completely that we can find.
> If anyone can find this setting, please get in touch asap.
>
> The only real use for it is editing tables, as in the who&when table or the
> gear-tape table:
> http://expo.survex.com/handbook/geartape.html_edit
>
> example of the svx editor which we propose to use instead:
> http://expo.survex.com/survexfile/caves-1623/107/alcovepop.svx
>
> Philip
>
> -----Original Message-----
> From: Wookey [mailto:wookey at wookware.org]
> Sent: 11 June 2020 16:11
> To: Philip Sargent (Gmail)
> Subject: Re: edit this page - tinymce or plain text
>
> On 2020-06-11 16:03 +0100, Philip Sargent (Gmail) wrote:
> > Ideally we would want one that used language-servers to provide syntax
> > colouring.
> >
> > The same tinymce editor is NOT used in the online svx editing, e.g.
> > http://expo.survex.com/survexfile/caves-1623/264/amalgamation.svx
> > which is just jQuery / form.
> >
> > So if we used that instead for the HTML pages, we would lose all the
> > HTML-wysiwyg-ness, but at least it wouldn't reformat.
> > probably a short-medium term solution ?
>
> Fine by me. The wysiwyg-ness is useful for table-editing (e.g. on
> who-and-when pages), (and not scaring away people who've never seen
> HTML) but that's about it.
>
> Wookey
> --
> Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/
>
>
> _______________________________________________
> Expo-tech mailing list
> Expo-tech at lists.wookware.org
> https://lists.wookware.org/cgi-bin/mailman/listinfo/expo-tech
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wookware.org/pipermail/expo-tech/attachments/20200612/f8179197/attachment.htm>
More information about the Expo-tech
mailing list