pimcore-toolbox icon indicating copy to clipboard operation
pimcore-toolbox copied to clipboard

Need Help: How to configure/overwrite global wysiwyg options (menu / styles / ...)

Open Stefan-JustMe69-SQ opened this issue 3 years ago • 0 comments

Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? no

Using pimcore X and actual toolbox How can I overrwrite vendor/dachcom-digital/toolbox/src/ToolboxBundle/Resources/config/pimcore/ckeditor/config_global.yml correctly?

and how can I setup custom styles for the wysiwyg-editor?

I tried as an new brick, with own settings., not working. like view.html.twig

<div class="container {{ additionalClassesData|join(' ') }}">
    {{ pimcore_wysiwyg("customWysiwyg", {
        "width": '100%',
        "toolbarGroups": [
            { name: 'document', items: [ 'Source', '-' ] },
            { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
            '/',
            { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
            { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
            { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
            '/',
            { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
            { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
            { name: 'insert', items: [ 'Table', 'SpecialChar' ] },
        ],
        "customConfig": false
    })
    }}
</div>

I get on page-edit:

toolbox-ckeditor-style.js?tb_document_request_id=10&t=LAHF:4 toolbox: ckeditor style set "default" already has been set. 
did you forget to add the config? usage: pimcore_wysiwyg("text", {"customConfig":toolbox_get_ckeditor_config_path()})
(anonymous) @ toolbox-ckeditor-style.js?tb_document_request_id=10&t=LAHF:4

Stefan-JustMe69-SQ avatar Apr 19 '22 14:04 Stefan-JustMe69-SQ