Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/112 list and documentlist switcher #122

Merged
merged 9 commits into from Aug 12, 2023

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jul 19, 2023

Description

When defining the CKEditor config, allow the user to choose between using List + ListProperties or DocumentList + DocumentListProperties.

In both cases, we use their bulletedList and numberedList buttons, but the DocumentList supports styling as described here: ckeditor/ckeditor5#14200.

We include a switcher to allow users to choose because List and DocumentList cannot coexist, and DocumentList can’t coexist with TodoList. So user’s options are:

  • use basic lists and have the ability to continue to use todo lists
  • use more advanced lists that can be styled but without the ability to use to-do lists.

The saving of the todo list can only be tested in conjunction with PR#121.
This PR required updating CKEditor to at least version 38.0.0. That means the introduction of the “Powered by CKEditor” logo. This is what it looks like in the Control Panel (only shows when the field is in focus):
Screenshot 2023-07-31 at 11 55 54

Related issues

#112

@i-just i-just marked this pull request as ready for review July 31, 2023 11:16
# Conflicts:
#	package-lock.json
#	src/Field.php
#	src/web/assets/ckeconfig/dist/ckeconfig.js.map
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
#	src/web/assets/ckeditor/dist/ckeditor5-craftcms.js.map
#	src/web/assets/ckeditor/dist/ckeditor5-dll.js
#	src/web/assets/ckeditor/dist/translations/en-au.js
#	src/web/assets/ckeditor/dist/translations/fi.js
#	src/web/assets/ckeditor/dist/translations/gl.js
#	src/web/assets/ckeditor/dist/translations/hr.js
#	src/web/assets/ckeditor/dist/translations/pt-br.js
#	src/web/assets/ckeditor/dist/translations/sl.js
#	src/web/assets/ckeditor/dist/translations/sq.js
#	src/web/assets/ckeditor/dist/translations/ug.js
#	src/web/assets/ckeditor/dist/translations/uz.js
#	src/web/assets/ckeditor/dist/translations/zh.js
@brandonkelly brandonkelly merged commit 6ac381f into main Aug 12, 2023
3 checks passed
@brandonkelly brandonkelly deleted the feature/112-list-and-documentlist-switcher branch August 12, 2023 04:58
@brandonkelly
Copy link
Member

Updated the setting UI to a table that more clearly shows the differences:

The new “List Plugin” CKEditor config setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants