Editor with widgets: Difference between revisions

Line 64: Line 64:
=== SPAN contentEditable='false' are contained in editable area===
=== SPAN contentEditable='false' are contained in editable area===
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.
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 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 in 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)
# operations Undo can be applied for removed span
# span can is 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.