Editor with widgets: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 70: Line 70:


===SELECTION===
===SELECTION===
# text and widgets can be selected by mouse or keyboard
# text and widgets can be selected with mouse or keyboard
# if widgets are into the selection then they should change visual presentation
# if widgets are into the selection then they should change visual presentation
# widgets in selection should be copied, cut, pasted as part of the selection
# widgets in selection should be copied, cut, pasted as part of the selection
Line 86: Line 86:


'''Example''' of email letter.
'''Example''' of email letter.
==Bugs==
Test on FF 3.5 Beta 2, Windows XP, Intel Atom
===SELECT===
# SELECT widget doesn't handle any events. As the result there is no popup menu ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox.html|video]])
# if cursor is directly after SELECT widget and Left key is pressed then all typed text will appears inside the widget ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox1.html|video]])
# if in the element DIV with contentEditable='true' there is SPAN with contentEditable='false' and in SPAN there is SELECT widget then it is possible to move caret into SELECT with keyboard ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox6.html|video]]).
===BUTTON===
# if the caret is directly before/after the BUTTON widget then pressing delete/backspace key is editing the widget's content. If content is empty then widget is removed ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox2.html|video]])
===INPUT type=text===
# if to move the caret into text field with mouse and after then it is impossible to the field by pressing Right/Left keys. There is no problems to leave field if the caret is moved into field by pressing Right/Left keys  ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox3.html|video]]).
===INPUT type=checkbox===
# widget doesn't handle any events. As the result it is impossible to change the valued of checked attribute ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox4.html|video]])
# if in the element DIV with contentEditable='true' there is SPAN with contentEditable='false' and in SPAN there is INPUT type=checkbox and the caret is directly after SPAN then caret disappears after pressing the Left key. The after next pressing Left key the caret will appears directly before SPAN
([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox7.html|video]])
===INPUT type=radio===
# widget doesn't handle any events. As the result it is impossible to change widget's state
([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox5.html|video]])
===TABLE===
# if in the table's cell there is only one widget the there is no way to move caret into cell
===Common===
# if in the element DIV with contentEditable='true' there is SPAN with contentEditable='false' and SPAN is not empty and the caret is directly before/after SPAN then the caret is appeared in non editable area after pressing Right/Left key. When caret returns back to editable area then it appears in the second position before/after SPAN ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox8.html|video]])
# if in editable area there are 10-20 widgets then the significant performance degradation is occurred (tested on Intel Atom)
# in selected area BUTTON and INPUT widgets are not visual selected ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox9.html|video]])
# visual selection is not cleared after selection for widget INPUT type=text
([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox10.html|video]])
# it is impossible to copy to clipboard widget INPUT type=text and all text area before the widget ([[http://hgaid.ispvds.com/mozilla_editor_with_widgets/firefox11.html|video]])