[Webkit-unassigned] [Bug 8811] REGRESSION: TinyMCE: Style toolbar buttons don't work

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Jun 4 17:01:26 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8811





------- Comment #2 from darin at apple.com  2006-06-04 17:01 PDT -------
Yes, the code that's going awry is some Safari-specific code that's attempting
to work around the fact that the selection gets cleared in older versions of
Safari. If you change the user agent string to Firefox, the toolbar buttons
work just fine.

There's something called lastSafariSelection.

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.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list