Closed liamgold closed 4 years ago
Hi @liamgold,
Any plugins that were customized by us override the original respective Froala plugins. To include these, you should use their code name as listed in the Froala documentation. For example, use 'insertLink' instead of OPEN_INSERT_LINK_POPUP_COMMAND_NAME.
I have updated the Wiki article to better explain this issue.
Thanks @mrebro that works fine!
I hadn't thought you were overriding the original plugins, I'd assumed they were added as new ones entirely.
Brief bug description
Using Kentico.InlineEditor.RichText:
Tried to override the toolbarButtons Froala options, e.g. removing the Insert Image button, but get a console error when still including the custom buttons Kentico have implemented.
Repro steps
OPEN_INSERT_LINK_POPUP_COMMAND_NAME
, andOPEN_INSERT_MACRO_POPUP_COMMAND_NAME
OPEN_INSERT_LINK_POPUP_COMMAND_NAME
, andOPEN_INSERT_MACRO_POPUP_COMMAND_NAME
are not defined.Expected behavior
Be able to override all toolbarButtons and keep the custom Kentico plugin buttons. Example:
Test environment