You are here: Foswiki>Tasks Web>Item1549 (16 Sep 2017, GeorgeClark)Edit Attach

Item1549: TML-to-HTML conversion entered into Editor's undo-history

pencil
Priority: Low
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
Applies To: Extension
Component: TinyMCEPlugin
Branches:
Reported By: MichaelTempest
Waiting For:
Last Change By: GeorgeClark
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

ItemTemplate edit

Summary TML-to-HTML conversion entered into Editor's undo-history
ReportedBy MichaelTempest
Codebase 2.1.4, trunk
SVN Range 3974
AppliesTo Extension
Component TinyMCEPlugin
Priority Low
CurrentState Waiting for Release
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 2.2.0
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r5 - 16 Sep 2017, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy