Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨(feat) Migrate to CKEditor 5 + allow back Php7.4 #260

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

floviolleau
Copy link

@floviolleau floviolleau commented Feb 10, 2024

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? yes
Fixed tickets N/A
License MIT

Hi,

This is a full rewrite to make it working with ckeditor 5.
Because I still use Symfony 5.4 and Php 7.4, I allowed to install with Php 7.4

Here is an example of configuration:

# Read the documentation: https://symfony.com/doc/current/bundles/FOSCKEditorBundle/index.html
twig:
    form_themes:
        - '@FOSCKEditor/Form/ckeditor_widget.html.twig'

fos_ck_editor:
    default_config: classic_config
    powered_by: false
    configs:
        balloon_config:
            build: 'balloon'
            toolbar: { items: ['bold', 'italic', 'bulletedList', 'link' ] }
        classic_config:
            build: 'classic'
            minHeight: '212px'
#            width: '50px'
#            licenseKey: 'your-license-key',
            toolbar: { items: ['undo', 'redo', '|', 'bold', 'italic', 'bulletedList', 'link' ] }
#            ui: { poweredBy: { position: 'inside', side: 'right', label: '' } }
#            extraPlugins: ['ResizableHeight']
#            ResizableHeight: {
#                resize: false,
#                height: '500px',
#                minHeight: '100px',
#                maxHeight: '1000px'
#            }
#            style: {
#                definitions: [
#                    {
#                        name: 'Article category',
#                        element: 'h3',
#                        classes: [ 'category' ]
#                    },
#                    {
#                        name: 'Info box',
#                        element: 'p',
#                        classes: [ 'info-box' ]
#                    },
#                ]
#            }
#            template: {
#                definitions: [
#                    {
#                        title: 'The title of the template',
#                        description: 'A longer description of the template',
#                        data: '<p>Data inserted into the content</p>'
#                    }
#                ]
#            }
    styles: { '.ck.ck-editor__editable': { 'background-color': 'red' }

#    plugins:
#        ResizableHeight:
#            path: '/bundles/ckeditor5-resizableheight/'
#            filename: 'plugin.js'

Remaining tasks:

@Nek-
Copy link

Nek- commented May 14, 2024

Related issue: #242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants