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

Custom Config Not Appying to Field #202

Closed
zadro opened this issue Apr 3, 2024 · 5 comments
Closed

Custom Config Not Appying to Field #202

zadro opened this issue Apr 3, 2024 · 5 comments
Labels

Comments

@zadro
Copy link

zadro commented Apr 3, 2024

Description

Maybe I'm not doing something properly, as I'm new to CK Editor. I tried to update a Redactor field to a CK Editor field and, at the same time, created a new CK Editor config. The CK Editor interface does NOT have the fields from the config.

Screenshot 2024-04-03 at 4 41 38 PM
Screenshot 2024-04-03 at 4 41 55 PM
Screenshot 2024-04-03 at 4 42 11 PM

Steps to reproduce

  1. Create custom config in GUI
  2. Apply custom config to field
  3. View field for new interface features (not there)

Additional info

PHP version 8.1.27
OS version Linux 6.1.0-18-amd64
Craft version Craft Pro 4.8.6

Plugins

CKEditor 3.8.3
Super Table 3.0.12

@zadro zadro added the bug label Apr 3, 2024
@i-just
Copy link
Contributor

i-just commented Apr 4, 2024

Hi, thanks for getting in touch! I'm having trouble replicating this. Do you see any errors in the console?

@zadro
Copy link
Author

zadro commented Apr 4, 2024

No errors are being displayed. To troubleshoot further, I created a new CKEditor field and attached the config -- this new field shows the config options correctly.

So, the issue appears to be with converting a Redactor field to a CK Editor field and its config association.

What I did next was convert the field back to Redactor, then used php craft ckeditor/convert to convert the field to CKEditor. Success!

Not sure if this is explained somewhere that I missed, but properly converting the field is necessary.

@i-just
Copy link
Contributor

i-just commented Apr 5, 2024

Thanks for all the info! So, to be clear, when you said you first converted the field and then converted it properly (via the php craft ckeditor/convert command), do you mean that the first time, you didn’t go via the command?

@zadro
Copy link
Author

zadro commented Apr 5, 2024

Of course! Please note that I would not have known about the convert command if I hadn't been part of this discussion: craftcms/redactor#489 (comment)

In the first attempt, I did not convert the field. I updated the field type (dropdown). Then, after learning about the convert utility and your reply that you couldn't replicate it, I thought to try it.

@i-just
Copy link
Contributor

i-just commented Apr 5, 2024

Right, thanks! I also tried switching the field type via the dropdown, and that worked okay for me. Anyway, the command is there to take the hassle out of converting, and I’m glad to hear it’s working as expected for you.

I will close this now, but feel free to reach out if you run into any more problems.

@i-just i-just closed this as completed Apr 5, 2024
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

2 participants