Open sixtyniner-official opened 6 years ago
Did you try passing config name when defining form field as explained here:
Thank you for reply, but after testing output is same and the problem still exists in Firefox.
Just tested with your config and it works for me.
Chrome:
Firefox:
Reproducable, but not reliable.
It's a race condition and only happens if you have more than one ckeditor field in the form. Sometimes the config.js is fetched before the ckeditor.js. The ckeditor.js is loaded for each field by default, the config.js only once.
If you remove the autoload and load the ckeditor.js inside the head, it fixes it.
@mestro67 Is there any chance you can provide a PR that would help with this based on Update section of your issue?
Environment
Ubuntu: 18.04 Chrome: 67.0.3396.79 (Official Build) (64-bit) Firefox: 60.0.2 (64-bit) nginx: nginx/1.14.0
Symfony packages
composer.json
Subject
CKEditor loading default settings in Firefox
Steps to reproduce
class AboutType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('focus',CKEditorType::class, array( 'required' => false, )); } }
Expected results
Chrome loading custom settings for toolbar/styles
Actual results
Firefox loading default CKEditor Settings
There is no any console error.
UPDATE
It's related to JS init timing, if redefine on
onload
event, then work fine.