Ticket #16 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

SAPI: Mozilla: startNode/endNode are the BODY element

Reported by: jf.hovinne Owned by: jf.hovinne
Priority: major Milestone: 0.5
Component: editor Version: trunk
Keywords: sapi mozilla Cc:

Description

When you double-click at the end of a paragraph, it is selected, but startNode and endNode return the BODY element.

Change History

Changed 3 years ago by v.mische

That's right, the question is: do we want it this way. Here's an explanation: | is the selction start/end. If you double click an paragraph, the whole paragraph gets selected, not only the contents

<body>|<p>text<p>|</body>

The best way is perhaps to change the selection range automaticly to

<body><p>|text|<p></body>

on initialisation.

Changed 3 years ago by v.mische

Fixed with r202 as described above (comment:1).

Changed 3 years ago by jf.hovinne

  • milestone changed from 0.3 to 0.4

Changed 3 years ago by jf.hovinne

  • milestone changed from 0.4 to 0.5

Changed 2 years ago by jf.hovinne

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.