Closed yangtoude closed 7 years ago
+1
Hi, @tonydspaniard I found that I can add button by adding extra plugins according to How to add custom plugins , for example, colorbutton. Does mean that I have to add other buttons(except standard buttons) by adding extra plugins since version 2.0.0? I don't think it's a good way to do that. By the way, toolbarGroups still not work. Here is my widget options:
'widgetOptions' => [
'class' => '\dosamigos\ckeditor\CKEditor',
'preset' => 'full',
'clientOptions' => [
'allowedContent' => true,
'extraPlugins' => 'lineheight,uploadimage,colorbutton',
'line_height' => '1;1.2;1.5;2;2.5;3',
'imageUploadUrl' => '/accelerator/upload',
],
]
And I also found that the Basic Styles plugin, which has been integrated into the editor and should have Bold Italic Underline Strikethrough Subscript Superscript format commands, actually has only Bold Italic Strikethrough commands, lacking other three commands. I tried to add this plugin according to How to add custom plugins, but it didn't work as well as colorbutton plugin. Is there any other way to config Basic Styles plugin in order to add the other threee commands?
Changing the config.js and presets/full.php doesn't work
Dear @yangtoude I'll have a look at it... Thank you for the description. I would like to ask you if you have added the path of your extra plugins?
$this->registerJs("CKEDITOR.plugins.addExternal('pbckcode', '/pbckcode/plugin.js', '');");
@yangtoude according to the information http://docs.ckeditor.com/#!/guide/dev_toolbarconcepts-section-toolbar-groups-configuration you don't seem to have it correctly. What you need to do is to define your toolbar
setting and then use the ['name' => 'GROUPNAME', 'items' => ['your items']
The problem lies in the composer.json of this project. According to CKEditor docs, the composer's require part should look like this in order to get the full package:
{
"require": {
"ckeditor/ckeditor": "dev-full/stable"
}
}
@yangtoude @jeesus @CyanoFresh I have updated adding the dev-full, mind updating to 2.0.2 and tell me if it works for you guys? Thanks
will check as soon as I have some time
@tonydspaniard now works good. But composer chose 2.0.1 version, maybe stability issue. Thanks
@CyanoFresh great! Thank you for the feedback. Could be some requirements... I'll check that.
Hi @tonydspaniard got a problem with toolbarGroups settings
but only standard toolbar shows, the toolbarGroups settings just not work