Item1549: TML-to-HTML conversion entered into Editor's undo-history
Priority: Low
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
When the TMCE is first opened, the undo button is disabled (perhaps because the edit window does not have focus). However, when I select the edit window, the undo button is enabled. If I click undo, it looks the conversion from TML to HTML is undone.
To reproduce:
- Click Edit on any topic and wait for the TMCE to load and be fully loaded.
- Click in the edit window to give it focus.
- Click undo.
You end up with the TML for the topic but with the newlines removed.
This may be related to
Item5178.
I am using Firefox 3. I am using the default skin.
--
MichaelTempest - 01 May 2009
The undo history is under the control of
TinyMCE, and if it chooses to store the conversion in the undo history, I'm not sure there's anything we can do about it. Maybe we need to clear the undo history in the conversion function?
--
CrawfordCurrie - 24 May 2009
I like being able to undo and redo changes make in wikitext, from within TMCE.
Perhaps we should only clear the undo history when the TML is first converted to HTML?
--
MichaelTempest - 25 May 2009
Making this 'low' - but note to whoever goes to fix this - if we go for the "don't record the initial "please wait" response' approach, might as well use that same logic to help the autosave plugin do its job (at the moment, autosave is saving editor content, but never has a chance to restore it thanks to the tml2html procedure when we start up)
--
PaulHarvey - 25 Jun 2010
This seems to be fixed in the new TinyMCE planned for Foswiki 2.0.
--
Main.GeorgeClark - 16 Sep 2017 - 17:38