Open tomdyson opened 7 years ago
@tomdyson this is a matter of configuration of the editor, with a maxListNesting
attribute (default = 1). This is what overriding the default would look like (proper documentation to come):
WAGTAILADMIN_RICH_TEXT_EDITORS = {
'lots_of_nesting': {
'WIDGET': 'wagtaildraftail.widgets.DraftailTextArea',
'OPTIONS': {
'enableHorizontalRule': True,
'enableLineBreak': False,
'maxListNesting': 5,
'entityTypes': [
DRAFT_ENTITY_TYPE_LINK,
DRAFT_ENTITY_TYPE_DOCUMENT,
],
'blockTypes': [
DRAFT_BLOCK_TYPE_H3,
DRAFT_BLOCK_TYPE_UL,
],
'inlineStyles': [
DRAFT_INLINE_STYLE_BOLD,
DRAFT_INLINE_STYLE_ITALIC,
],
}
},
}
We will want this package to come with the most sensible config, so most people don't have to touch all of this – what do you think the default should be?
Oh, great, thanks! I think the default should be unlimited, or a high number. I've just checked Dropbox Paper, which limits indents to the 7th level.
👌 personally I don't like the idea of encouraging nesting, but aligning with other word editors is more important.
Word - Office for Mac 2011 has a maximum of 9 (even in landscape)
Let's go with 9 whenever we get to make the default config.
See screencast: