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

[4.x] - Nested CKEditor fields deleting content and functionality not working #276

Open
zizther opened this issue Aug 1, 2024 · 2 comments
Labels

Comments

@zizther
Copy link

zizther commented Aug 1, 2024

Description

I have a nested matrix field which contains a CKEditor field, there are some instances where I am not able to paste content into the field or click the Source button, refreshing the page allows me to sometimes solve the Source button issue and paste content via the source
Additionally it is not possible to add a link either.

Upon saving, sometimes the all content is removed from the field.

Steps to reproduce

  1. Create a matrix field
  2. Add a nested matrix field with a CKEditor field within it

Additional info

  • Craft version: 5.2.9
  • PHP version: 8.3
  • Database driver & version: MySQL 8
  • Plugins & versions: CKEditor 4.1.0
@zizther zizther added the bug label Aug 1, 2024
@missatrox44
Copy link

missatrox44 commented Aug 6, 2024

I am having a similar issue with MediaEmbed in CKEditor. I am not using a matrix field but rather adding it directly. I can select the MediaEmbed icon and am able to enter the embedded url then click the green checkmark. The embedded media preview shows up in the editor but does not persist on page reload after entry is Saved.

Additional info

  • Craft version: Craft Pro 5.2.5
  • PHP version: 8.2.20
  • Database driver & version: MySQL 8.0.36
  • Plugins & versions: CKEditor 4.1.0

@i-just
Copy link
Contributor

i-just commented Aug 9, 2024

@missatrox44, it sounds like you could be running into a different issue than @zizther. Please double-check your HTML Purifier config. You can find more info about that in the docs and on the following issues: #59, #80.

@zizther, can you please describe your issue in a bit more detail? What do you do after creating the fields you described? What are you expecting to happen vs what’s actually happening? Are there any errors in the console when you encounter the issue(s)?

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

No branches or pull requests

3 participants