Bug 7160 - TinyMCE: Undo toolbar command doesn't undo the previous operation
Summary: TinyMCE: Undo toolbar command doesn't undo the previous operation
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://tinymce.moxiecode.com/example....
Keywords: InRadar
Depends on:
Blocks: 6627
  Show dependency treegraph
 
Reported: 2006-02-09 11:15 PST by Chris Petersen
Modified: 2006-09-19 17:32 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Petersen 2006-02-09 11:15:49 PST
Summary: Clicking the Undo toolbar button DOESN'T undo the last previous operation that was applied in the textarea field. I have several cases were this occurs.


Steps to reproduce:


Undoing a style applied to text

1) With TOT webkit, go to http://tinymce.moxiecode.com/example.php?example=true
2) Delete all elements in the first textarea field;  then type a new sentence in this textarea field
3) Select the entire sentence or a single word
4) Click on B toolbar icon and verify style is applied
5) Click on Undo toolbar icon. Instead of removing the bold style applied, it removes the entire line of text
6) This does work if I choose the Undo from the Edit menu.


Undoing the LAST style applied to text

1) With TOT webkit, go to http://tinymce.moxiecode.com/example.php?example=true
2) Delete all elements in the first textarea field;  then type a new sentence in this textarea field
3) Select the entire sentence or a single word
4) Click on B, I, U toolbar icon and verify all styles are applied
5) Click on Undo toolbar icon. Instead of removing that last style applied, it removes the entire line of text
6) This does work if I choose the Undo from the Edit menu.


Undoing pasted text 

1) With TOT webkit, go to http://tinymce.moxiecode.com/example.php?example=true
2) Delete all elements in the first textarea field;  then type a new sentence in this textarea field
3) Select the entire sentence or a single word
4) Press command -C. Place the caret at the end of the sentence and press return key.
5) Caret appears on new line. Now press command -v to paste the text
6) Click on Undo toolbar icon. Instead of removing the pasted text , it removes the both lines of text
7) This does work if I choose the Undo Paste from the Edit menu.
Comment 1 Chris Petersen 2006-02-09 11:16:49 PST
Note: All of these cases do work correctly in PPC FF 1.5
Comment 2 Chris Petersen 2006-02-09 11:32:39 PST
This bug is also in Radar as <rdar://4439701 >
Comment 3 Justin Garcia 2006-09-19 17:15:48 PDT
This is Moxiecode's bug.  Browsing the source I don't see any calls to add an undo level in the Safari code paths.
Comment 5 David Kilzer (:ddkilzer) 2006-09-19 17:32:09 PDT
This bug could be reopened as an evangelism bug.