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

code snippet is non-existent #249

Open
pprgva opened this issue Feb 13, 2023 · 2 comments
Open

code snippet is non-existent #249

pprgva opened this issue Feb 13, 2023 · 2 comments

Comments

@pprgva
Copy link

pprgva commented Feb 13, 2023

Environment

Symfony 6.1.12

Symfony packages

"php": ">=8.1",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "doctrine/annotations": "^1.0",
        "doctrine/doctrine-bundle": "^2.8",
        "doctrine/doctrine-migrations-bundle": "^3.2",
        "doctrine/orm": "^2.14",
        "friendsofsymfony/ckeditor-bundle": "^2.4",
        "phpdocumentor/reflection-docblock": "^5.3",
        "phpstan/phpdoc-parser": "^1.16",
        "sensio/framework-extra-bundle": "^6.1",
        "symfony/asset": "6.1.*",
        "symfony/console": "6.1.*",
        "symfony/doctrine-messenger": "6.1.*",
        "symfony/dotenv": "6.1.*",
        "symfony/expression-language": "6.1.*",
        "symfony/flex": "^2",
        "symfony/form": "6.1.*",
        "symfony/framework-bundle": "6.1.*",
        "symfony/http-client": "6.1.*",
        "symfony/intl": "6.1.*",
        "symfony/mailer": "6.1.*",
        "symfony/mime": "6.1.*",
        "symfony/monolog-bundle": "^3.0",
        "symfony/notifier": "6.1.*",
        "symfony/process": "6.1.*",
        "symfony/property-access": "6.1.*",
        "symfony/property-info": "6.1.*",
        "symfony/runtime": "6.1.*",
        "symfony/security-bundle": "6.1.*",
        "symfony/serializer": "6.1.*",
        "symfony/string": "6.1.*",
        "symfony/translation": "6.1.*",
        "symfony/twig-bundle": "6.1.*",
        "symfony/validator": "6.1.*",
        "symfony/web-link": "6.1.*",
        "symfony/webpack-encore-bundle": "^1.16",
        "symfony/yaml": "6.1.*",
        "twig/extra-bundle": "^2.12|^3.0",
        "twig/twig": "^2.12|^3.0"

Subject

Despite the presence of the codenippet plugin, it remains invisible in the menu

Steps to reproduce

Nothing more than the installation: https://symfony.com/bundles/FOSCKEditorBundle/current/installation.html

    main_config:
        height: 230
        width: 1500 
        toolbar: full

Expected results

Capture d’écran 2023-02-13 à 13 30 12

.. this one more

Actual results

Capture d’écran 2023-02-13 à 13 24 49

@khaledBou
Copy link

I already have the same problem, i installed manually codesnippet inside plugins folder and inside config file iadded this :

`fos_ck_editor:
  configs:
    main_config:
      extraPlugins: "codesnippet"
      toolbar:
        - { name: "styles", items: ['Bold', 'Italic', 'Underline', 'Strike', 'Blockquote', '-', 'Link', '-', 'RemoveFormat', '-', 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Image', 'Table', '-', 'Styles', 'Format','Font','FontSize', '-', 'TextColor', 'BGColor', 'Source', 'codeSnippet'] }
  plugins:
    codesnippet:
      path: "/bundles/fosckeditor/plugins/codesnippet/" # with trailing slash
      filename: "plugin.js"`

I don't understand why fos ckeditor doesn't contain codesnippet plugin by defaut !

@pprgva
Copy link
Author

pprgva commented Feb 16, 2023

Thanks for your help !
Warning "codeSnippet" must start with a capital letter,
On s'ecrit en anglais mais apparemment à nantes on parle un peu francais :-)

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

No branches or pull requests

2 participants