Editor with widgets: Difference between revisions

No edit summary
Line 62: Line 62:
# 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


=== SPAN editable='false' inside editable area===
=== SPAN contentEditable='false' are contained in editable area===
# span can be removed
All content of element SPAN with contentEditable='false' attribute is treated as a word. All controls inside element have normal behaviour. Element is selected with all content as one element.
# span can be removed by Backspace or Del keys
# span can't have focus but widgets in span can have focus
# span can't have focus but widgets in span can have focus
# if span is inside selection and try to remove selection then content of the selection will be removed with span (see bullet 1)
# if span is in selection and try to remove selection then content of the selection will be removed with span (see bullet 1)
# span can't be copied into clipboard
# span can is copied into clipboard
# if caret is directly before/after the span then pressing right/left key should move caret directly after/before span.  
# if caret is directly before/after the span then pressing right/left key should move caret directly after/before span.  
# when in multiline editable field Up/Down is pressed and in the next line under caret there is the span then caret should be moved to position directly before or after span (it depends on which place is closer).
# when in multiline editable field Up/Down is pressed and in the next line under caret there is the span then caret should be moved to position directly before or after span (it depends on which place is closer).
This behavior is actual for medical documents and other not fully structured documents.
'''Example''' of email letter.


==Bugs==
==Bugs==