History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4396
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Benjamin Shine
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

rich text editor: clicking bold moves insertion point

Created: 30/Jul/07 12:34 PM   Updated: 22/Aug/07 02:29 PM
Component/s: Components - Incubator
Affects Version/s: 3.4.2, 4.0.5WaffleCone, Legals
Fix Version/s: 4.0.5WaffleCone

Time Tracking:
Not Specified

Environment: swf8

Severity: Minor
Fixed in Change#: 6,041
Runtime: N/A
Flags: Emerald
Fix in hand: True


 Description  « Hide
1. bring up a rich text editor
2. type some text
3. click the "bold" button
4. type some more text
5. click "bold" again, repeat 2-5

RESULTS: insertion point jumps to the middle of the existing text intsead of staying at the end of the line

EXPECTED RESULT: insertion point should never move when clicking a formatting command



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Benjamin Shine - 30/Jul/07 01:06 PM
I can't reproduce this in a standalone test of just the rich text editor. I've checked the test in to svn here:

http://svn.openlaszlo.org/openlaszlo/branches/wafflecone/test/components/incubator/richtexteditor-driver.lzx

Benjamin Shine - 30/Jul/07 01:17 PM
I also can't reproduce this in a more complex test:
http://svn.openlaszlo.org/openlaszlo/branches/wafflecone/test/components/incubator/richtexteditarea-driver.lzx
I suspect the wtformatbtn is at fault.

Amy Muntz - 08/Aug/07 11:08 AM
please investigate


Benjamin Shine - 08/Aug/07 11:51 AM
The insertion point seems to move when the focus goes back to the text area by mouse movement.

Benjamin Shine - 08/Aug/07 05:49 PM
Change sent to Max for review. Changeset is http://svn.openlaszlo.org/openlaszlo/patches/20070808-ben-z.tar

Benjamin Shine - 09/Aug/07 01:31 PM
Change checked in to wafflecone with r5985.

Mamye Kratt - 09/Aug/07 04:50 PM
(wafflecone branch local build r5986)
Ben - I'm still seeing the problem in the interactive test listed in the bug.

Benjamin Shine - 13/Aug/07 11:28 AM
Can't reproduce -- please provide more information.

Mamye Kratt - 13/Aug/07 11:46 AM
(wafflecone branch local build r6030)

Test:
http://127.0.0.1:8080/wafflecone/lps/components/incubator/rich-text/test/richtexteditarea-test.lzx?debug=true&lzr=swf8

Steps:
Go to bottom of text
Enter reuturn to go to new line
Type "This is a test"
Click "B" for bold
Type "This is a test"
Click "B" for bold
Cursor jumps to the middle of the line

Benjamin Shine - 13/Aug/07 02:29 PM
Not present in r5847.

Benjamin Shine - 13/Aug/07 02:30 PM
Not present in r5856.

Benjamin Shine - 13/Aug/07 02:32 PM
This *is* present in my current local build, which is around r6010.

Benjamin Shine - 13/Aug/07 02:35 PM
Wait, this *is* present in r5856.

Benjamin Shine - 13/Aug/07 02:38 PM
This *is* present in r5847!
To reproduce this, you have to click in the text editor before you start typing. That first click is where the cursor jumps back to. It is a little bit fiddly to reproduce, though.

Benjamin Shine - 13/Aug/07 02:49 PM
Holy cow, this is present in r5813!

Benjamin Shine - 13/Aug/07 03:20 PM
This is present in legals r5751.

Benjamin Shine - 13/Aug/07 03:23 PM
In legals r3345, the rich text editor has tons of errors and warnings in the debugger; it can't really be tested for this behavior.

Benjamin Shine - 13/Aug/07 03:26 PM
Ooooh, this is present in trunk at r5996. Discovered in this test file:
http://localhost:8080/trunk/lps/components/incubator/rich-text/test/richtexteditor-test.lzx

Benjamin Shine - 13/Aug/07 04:54 PM
Fixed *better* in r6041 in wafflecone. Really!
(Used the patch from dstowell/diamond changeset 51051.)

Mamye Kratt - 22/Aug/07 01:50 PM
(wafflecone branch local build r6185)
Test files run successfully. Cursor stays at end of text when changing style.

Mamye Kratt - 22/Aug/07 02:29 PM
(wafflecone branch local build r6185)
http://svn.openlaszlo.org/openlaszlo/branches/wafflecone/test/components/incubator/richtexteditarea-driver.lzx works for testing this problem but has many other broken bits. Will create new bugs for other issues.