Opened 16 years ago

Last modified 15 years ago

#3133 review_failed Bug

insertElement incorrect after deleteContents — at Version 4

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 Beta 2
Keywords: Confirmed Cc:

Description (last modified by Garry Yao)

If there's a insertion happened after the selection range content is deleted, the inserted element is at the end instead of in the front.
Take the smiley plugin for reproducing:

  1. Make the content and selection as below:
    		<p>te^xt</p>
    		<ul>
    			<li>te^xt</li>
    		</ul>
    
    
  2. Open the smiley plugin to insert a motion;
  • Expected Result:
    <p>te<img alt=":)" title=":)" ...></p><ul><li>xt</li></ul>
    
  • Actual Result:
    <p>te</p><img alt=":)" title=":)" ...><ul><li>xt</li></ul>
    

Change History (5)

comment:1 Changed 16 years ago by Frederico Caldeira Knabben

I think you have inverted the "expected" and "actual" results, right?

comment:2 Changed 16 years ago by Garry Yao

Description: modified (diff)
Keywords: Confirmed added

Updated the bug symptom with current trunk.

comment:3 Changed 16 years ago by Frederico Caldeira Knabben

Please do not change the ticket description in this way. If anything changed, you can add comments for it.

In this specific case for example, your original ticket text was much more useful to understand the bug (the js error is just another issue here).

comment:4 in reply to:  3 Changed 16 years ago by Garry Yao

Description: modified (diff)

Replying to fredck:

Please do not change the ticket description in this way. If anything changed, you can add comments for it.

In this specific case for example, your original ticket text was much more useful to understand the bug (the js error is just another issue here).

Revert to the old description.

Changed 16 years ago by Garry Yao

Attachment: 3133.patch added
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy