Provide a description of the task
Goal
Currently, we don’t accept margin on ul ol li . Depending on the configuration (GHS, indent, indent block) you will get different results.
Huuuge problem for import from Word incompatibility and migration from other HTML editors.
We need to be able to indent entire lists, independently of indenting their list items. Currently we have to do a bunch of hacks and patches to achieve this, so an upvote for supporting this in the core plugins!
Description
What is it?
Loading or copy/pasting indented list causes list to lose indentation #6761
IndentBlock breaks upcast of OL element's margin-left / Support margin for list li ol ul #16742
Indent whole list when selection is inside the first list item #14383
Notes
Refinement notes
GHS stores this correctly (without IndentBlock)
separate plugin (which feature? indent or list package),
Tuning of indent block, so it’s not coupled with lists?
TBD
dedicated model attributes for margins and isFormatting for them
only remove format allows to remove it? Don’t touch decrease/increase?
when remove, by default it will remove all attributes of the items of the same list level
POC needed.
Prev notes
accept (load/import/paste?) and properly place the margin when set on lists: ol ul and list items li (including multi-level lists)
potentially we could scope-cut the paste? But it wouldn’t make too much sense…
UI:
indent decrease removes the whole margin on the list item .
what if multiple items in the list item? Two paragraphs.
indent decrease removes the margin on the list , if selection is in the first item, index 0 (start of the list)??
indent right does nothing, no possibility to add those margin from the UI!
Scope:
Functional requirements:
Supports bullet/numbered/multi-level/to do lists,
whole list indentation (preservation + UX with the keyboard and toolbar)
list item indentation (preservation + UX to remove with toolbar)
< ol style ="margin-left:40px; ">
< li style ="margin-left:50px; ">
asdasdasd
</ li >
< li style ="margin-left:60px; ">
asdasdasd
</ li >
</ ol >
UX allows indent/outdent lists
Support RTL
Keyboard
Indent scenario:
Selection: Collapsed or Touching the beginning, beginning of the first list item top of the list (not nested)
Trigger: TAB / Indent button
Result: Indent of the whole list increases.
Outdent scenario
Selection: Collapsed, beginning of the first list item top of the list (not nested)
Trigger: Only outdent button
Result: Indent of the whole list increases.
UX to remove indent from list items - TBD is this useful (yes, one less GHS preservation?)
Selection: in the list item.
Trigger: Outdent
Condition: List item has its individual indent
Result: Whole indent of list item removed.
Configuration
inherits from block indentation
Preserve correctly import/paste scenarios with
“left” margins on lists
“left” margins on list items
< ol style ="margin-left:40px; ">
< li style ="margin-left:50px; ">
asdasdasd
</ li >
< li style ="margin-left:60px; ">
asdasdasd
</ li >
</ ol >
Non-functional requirements:
This is not about implementing skip-level lists
Some of the actions mentioned here may be done later by Ruler, like indenting list items but we are not interested in it right now.
📃 Other details
Browser: …
OS: …
CKEditor version: …
Installed CKEditor plugins: …
Provide a description of the task
Goal
Currently, we don’t accept margin on
ulolli. Depending on the configuration (GHS, indent, indent block) you will get different results.Huuuge problem for import from Word incompatibility and migration from other HTML editors.
We need to be able to indent entire lists, independently of indenting their list items. Currently we have to do a bunch of hacks and patches to achieve this, so an upvote for supporting this in the core plugins!
Description
What is it?
Loading or copy/pasting indented list causes list to lose indentation #6761
IndentBlock breaks upcast of OL element's margin-left / Support margin for list
liolul#16742Indent whole list when selection is inside the first list item #14383
Notes
Refinement notes
IndentBlock)isFormattingfor themPrev notes
oluland list itemsli(including multi-level lists)Scope:
Functional requirements:
UX allows indent/outdent lists
UX to remove indent from list items - TBD is this useful (yes, one less GHS preservation?)
Configuration
Preserve correctly import/paste scenarios with
Non-functional requirements:
📃 Other details