[Expo-tech] Remove tinymce dependency - use plain text editing

Philip Sargent (Gmail) philip.sargent at gmail.com
Thu Jun 11 17:21:55 BST 2020


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/




More information about the Expo-tech mailing list