Closed patrickmaynard closed 4 years ago
Did you try to use SonataFormatterBundle?
Hi @OskarStark -- thanks for commenting. I did not try to use SonataFormatterBundle. Is there a piece of documentation somewhere that describes how to use that bundle along with the block bundle?
Hello @patrickmaynard, i've fix same issue with ['input_sync' => true] option.
Did this work for you @patrickmaynard ?
Feel free to close
IMO this bug is not related to the block bundle. The CKEditorType
type needs two field
Hi, is there someone who found the solution? I have the same problem.
@christophe-bardzinsky you can try this, it works for me :
$formMapper
->add('description', CKEditorType::Class, array(
'config' => array(
'uiColor' => '#ffffff', 'toolbar' => 'full', 'required' => true
),'input_sync' => true
));
Environment
Sonata packages
Symfony packages
PHP version
Subject
Steps to reproduce
Open TextBlockService.php.
Replace
with
... and create a new block, then edit the default text in the resulting CKEditor. Save text. You will find that the text does not save but is replaced again with the default text.
Expected results
New text saves and is visible when the block's editing interface is refreshed.
Actual results
Text is again replaced with 'Insert your custom content here.'