<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>7508</bug_id>
          
          <creation_ts>2006-02-27 21:47:43 -0800</creation_ts>
          <short_desc>TinyMCE: Major regression in TinyMCE&apos;s Safari-specific selection code</short_desc>
          <delta_ts>2006-08-12 23:50:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://tinymce.moxiecode.com/example.php?example=true</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6627</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
    
    <cc>mozillabug321</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34262</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-02-27 21:47:43 -0800</bug_when>
    <thetext>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&apos;m filing a bug against TinyMCE now and I&apos;ll attach a link to that bug shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34263</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-02-27 22:01:05 -0800</bug_when>
    <thetext>Filed:
https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1440124&amp;group_id=103281&amp;atid=635682</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44771</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-05 08:28:42 -0700</bug_when>
    <thetext>*** Bug 8811 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44772</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-05 08:29:17 -0700</bug_when>
    <thetext>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&apos;t have properties with those names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44773</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-05 08:55:55 -0700</bug_when>
    <thetext>I added some comments and a patch to the bug tracker for TinyMCE, but I don&apos;t know what it&apos;s going to take to get the attention of people working on the TinyMCE project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52443</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-08-12 22:20:58 -0700</bug_when>
    <thetext>TinyMCE says it is fixed in their CVS - someone should verify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52458</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-08-12 23:50:58 -0700</bug_when>
    <thetext>Verified with http://tinymce.moxiecode.com/test/examples/example_full.htm</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>