From 8aa38d8b30f15b7758dd4d9b839a6a0aea730a6c Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Mon, 1 Apr 2019 13:14:44 -0400 Subject: [PATCH 1/3] AlloyEditor Extra Buttons --- src/bundle/DependencyInjection/Configuration.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bundle/DependencyInjection/Configuration.php b/src/bundle/DependencyInjection/Configuration.php index 45d6c567..6a8f4270 100644 --- a/src/bundle/DependencyInjection/Configuration.php +++ b/src/bundle/DependencyInjection/Configuration.php @@ -168,6 +168,10 @@ private function addCustomStylesSection(NodeBuilder $ezRichTextNode) * ezpublish: * ezrichtext: * alloy_editor: + * extra_plugins: [plugin1, plugin2] + * extra_buttons: + * - paragraph: [button1, button2] + * - embed: [button1] * * * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $ezRichTextNode @@ -183,6 +187,12 @@ private function addAlloyEditorSection(NodeBuilder $ezRichTextNode) ->example(['plugin1', 'plugin2']) ->prototype('scalar')->end() ->end() + ->arrayNode('extra_buttons') + ->arrayPrototype() + ->example(['button1', 'button2']) + ->prototype('scalar')->end() + ->end() + ->end() ->end() ->end() ; From e8d5267daec50af98161fc41c05383cc40487a54 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Tue, 2 Apr 2019 12:04:33 -0400 Subject: [PATCH 2/3] AlloyEditor Extra Buttons, mention that it will be deprecated in 3.x --- src/bundle/DependencyInjection/Configuration.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bundle/DependencyInjection/Configuration.php b/src/bundle/DependencyInjection/Configuration.php index 6a8f4270..c564bbfa 100644 --- a/src/bundle/DependencyInjection/Configuration.php +++ b/src/bundle/DependencyInjection/Configuration.php @@ -174,6 +174,10 @@ private function addCustomStylesSection(NodeBuilder $ezRichTextNode) * - embed: [button1] * * + * Please note extra_buttons setting will be deprecated in eZ Platform 3.x. + * The alternative and more flexible solution will be introduced. + * So you will need to update Online Editor Extra Buttons as part of eZ Platform 3.x upgrade. + * * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $ezRichTextNode * * @return \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition From 00a8a69ac3431432f9ccb99cf6a6a6e38236206c Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Fri, 5 Apr 2019 08:12:33 -0400 Subject: [PATCH 3/3] AlloyEditor Extra Buttons, fixing example --- src/bundle/DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/DependencyInjection/Configuration.php b/src/bundle/DependencyInjection/Configuration.php index c564bbfa..3226975a 100644 --- a/src/bundle/DependencyInjection/Configuration.php +++ b/src/bundle/DependencyInjection/Configuration.php @@ -170,8 +170,8 @@ private function addCustomStylesSection(NodeBuilder $ezRichTextNode) * alloy_editor: * extra_plugins: [plugin1, plugin2] * extra_buttons: - * - paragraph: [button1, button2] - * - embed: [button1] + * paragraph: [button1, button2] + * embed: [button1] * * * Please note extra_buttons setting will be deprecated in eZ Platform 3.x.