Bug 7508 - TinyMCE: Major regression in TinyMCE's Safari-specific selection code
: TinyMCE: Major regression in TinyMCE's Safari-specific selection code
Status: RESOLVED FIXED
: WebKit
HTML Editing
: 420+
: Macintosh Mac OS X 10.4
: P2 Normal
Assigned To:
: http://tinymce.moxiecode.com/example....
:
:
: 6627
  Show dependency treegraph
 
Reported: 2006-02-27 21:47 PST by
Modified: 2006-08-12 23:50 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-02-27 21:47:43 PST
In the TinyMCE 2.0.3 update, a change was made that broke editing operations to selected text when performed via a toolbar button.

Goto:
http://tinymce.moxiecode.com/example.php?example=true
Select some text, click the Bold button.  The selection is blown away and nothing becomes bold.

It sounds like some refactoring was done to the selection code between 2.0.2 and 2.0.3 by one of the TinyMCE contributor, which is probably where the regression was introduced.  I'm filing a bug against TinyMCE now and I'll attach a link to that bug shortly.
------- Comment #2 From 2006-06-05 08:28:42 PST -------
*** Bug 8811 has been marked as a duplicate of this bug. ***
------- Comment #3 From 2006-06-05 08:29:17 PST -------
It looks like this section of the moveToBookmark function is the buggy Safari-specific TinyMCE code:

    if (tinyMCE.isSafari) {
        sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset,
            bookmark.endContainer, bookmark.endOffset);
        return true;
    }

That should be bookmark.rng.startContainer, bookmark.rng.startOffset, etc. A bookmark doesn't have properties with those names.
------- Comment #4 From 2006-06-05 08:55:55 PST -------
I added some comments and a patch to the bug tracker for TinyMCE, but I don't know what it's going to take to get the attention of people working on the TinyMCE project.
------- Comment #5 From 2006-08-12 22:20:58 PST -------
TinyMCE says it is fixed in their CVS - someone should verify.
------- Comment #6 From 2006-08-12 23:50:58 PST -------
Verified with http://tinymce.moxiecode.com/test/examples/example_full.htm