Closed kubaceg closed 5 years ago
Ok so problem was in configuration of easyadmin entity forms. I've solved it by adding additional type_options
in field config:
- { property: 'content', type: 'FOS\CKEditorBundle\Form\Type\CKEditorType', type_options: { config: {toolbar: 'full'}} }
Reason why default it sets simple toolbar instead of full is in \EasyCorp\Bundle\EasyAdminBundle\Form\Type\Configurator\FOSCKEditorTypeConfigurator
class (https://github.com/EasyCorp/EasyAdminBundle/blob/master/src/Form/Type/Configurator/FOSCKEditorTypeConfigurator.php) where easyadmin sets default values for toolbar when configuration is empty.
I've no idea why I had before full toolbar without any additional config. I do not remember to upgrade my bundles :)
I have problem with default toolbar config. I see only really basic toolbar but I want to see full version:![image](https://user-images.githubusercontent.com/696884/56998292-1193f680-6bab-11e9-91de-87e415251f92.png)
Here is my ck_editor.yaml
fm_elfinder.yaml:
Here is generated HTML:
As You see there is something like CKEDITOR.replace which sets basic toolbar. I have no idea where this code is generated.
Symfony packages
`` symfony/asset v4.2.6 v4.2.7 Symfony Asset Component symfony/browser-kit v4.1.7 v4.2.7 Symfony BrowserKit Component symfony/cache v4.2.4 v4.2.7 Symfony Cache component with PSR-6, PSR-16, and tags symfony/config v4.1.6 v4.2.7 Symfony Config Component symfony/console v3.4.17 v4.2.7 Symfony Console Component symfony/contracts v1.0.2 v1.0.2 A set of abstractions extracted out of the Symfony components symfony/css-selector v4.1.7 v4.2.7 Symfony CssSelector Component symfony/debug v4.1.6 v4.2.7 Symfony Debug Component symfony/dependency-injection v4.1.6 v4.2.7 Symfony DependencyInjection Component symfony/doctrine-bridge v4.1.6 v4.2.7 Symfony Doctrine Bridge symfony/dom-crawler v4.1.6 v4.2.7 Symfony DomCrawler Component symfony/dotenv v3.4.17 v4.2.7 Registers environment variables from a .env file symfony/event-dispatcher v4.2.4 v4.2.7 Symfony EventDispatcher Component symfony/expression-language v4.1.6 v4.2.7 Symfony ExpressionLanguage Component symfony/filesystem v4.2.6 v4.2.7 Symfony Filesystem Component symfony/finder v4.2.6 v4.2.7 Symfony Finder Component symfony/flex v1.1.1 v1.2.3 Composer plugin for Symfony symfony/form v4.1.6 v4.2.7 Symfony Form Component symfony/framework-bundle v4.1.6 v4.2.7 Symfony FrameworkBundle symfony/http-foundation v4.1.6 v4.2.7 Symfony HttpFoundation Component symfony/http-kernel v4.1.6 v4.2.7 Symfony HttpKernel Component symfony/inflector v4.1.6 v4.2.7 Symfony Inflector Component symfony/intl v4.1.6 v4.2.7 A PHP replacement layer for the C intl extension that includes additional data from the ICU library. symfony/maker-bundle v1.8.0 v1.11.6 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code. symfony/monolog-bridge v4.1.6 v4.2.7 Symfony Monolog Bridge symfony/monolog-bundle v3.3.0 v3.3.1 Symfony MonologBundle symfony/options-resolver v4.2.6 v4.2.7 Symfony OptionsResolver Component symfony/orm-pack v1.0.5 v1.0.6 A pack for the Doctrine ORM symfony/panther v0.2.0 v0.3.0 A browser testing and web scraping library for PHP and Symfony. symfony/phpunit-bridge v4.1.7 v4.2.7 Symfony PHPUnit Bridge symfony/polyfill-ctype v1.11.0 v1.11.0 Symfony polyfill for ctype functions symfony/polyfill-intl-icu v1.9.0 v1.11.0 Symfony polyfill for intl's ICU-related data and classes symfony/polyfill-mbstring v1.9.0 v1.11.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php56 v1.9.0 v1.11.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions symfony/polyfill-php72 v1.9.0 v1.11.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/polyfill-util v1.9.0 v1.11.0 Symfony utilities for portability of PHP codes symfony/process v3.4.25 v4.2.7 Symfony Process Component symfony/property-access v4.1.6 v4.2.7 Symfony PropertyAccess Component symfony/property-info v4.1.6 v4.2.7 Symfony Property Info Component symfony/routing v4.1.6 v4.2.7 Symfony Routing Component symfony/security v4.1.6 v4.2.7 Symfony Security Component symfony/security-bundle v4.1.6 v4.2.7 Symfony SecurityBundle symfony/serializer v4.1.6 v4.2.7 Symfony Serializer Component symfony/stopwatch v4.1.6 v4.2.7 Symfony Stopwatch Component symfony/swiftmailer-bundle v3.2.3 v3.2.6 Symfony SwiftmailerBundle symfony/templating v4.2.6 v4.2.7 Symfony Templating Component symfony/test-pack v1.0.4 v1.0.5 A pack for functional and end-to-end testing within a Symfony app symfony/thanks v1.1.0 v1.1.0 Give thanks (in the form of a GitHub ⭐) to your fellow PHP package maintainers (not limited to Symfony components)! symfony/translation v4.1.6 v4.2.7 Symfony Translation Component symfony/twig-bridge v4.1.6 v4.2.7 Symfony Twig Bridge symfony/twig-bundle v4.1.6 v4.2.7 Symfony TwigBundle symfony/validator v4.1.6 v4.2.7 Symfony Validator Component symfony/var-dumper v4.1.6 v4.2.7 Symfony mechanism for exploring and dumping PHP variables symfony/var-exporter v4.2.4 v4.2.7 A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code symfony/workflow v4.1.6 v4.2.7 Symfony Workflow Component symfony/yaml v4.1.6 v4.2.7 Symfony Yaml Component