Coder Social home page Coder Social logo

Comments (6)

Przemek625 avatar Przemek625 commented on August 25, 2024 3

Hi!

It looks that currently it is not possible. I tried. Follow https://github.com/ckeditor/strapi-plugin-ckeditor#-contributing to adjust the config to your needs. This plugin would be greater if it was possible to create custom configuration...

from strapi-plugin-ckeditor.

marob avatar marob commented on August 25, 2024 2

@prestonator If I'm not mistaking, Strapi only supports extending the server part of a plugin. The problem in this plugin is that the configuration is in the React front part and is hard-coded. I think we have no choice but change this plugin's code to make the hard-coded part more configurable.

from strapi-plugin-ckeditor.

boazpoolman avatar boazpoolman commented on August 25, 2024 2

Would you guys accept a PR which allows the configuration object to be overwritten?
Kinda the same way as possible in https://github.com/nshenderov/strapi-plugin-ckeditor

If so; any requirements you might have as to how this is implemented?

from strapi-plugin-ckeditor.

prestonator avatar prestonator commented on August 25, 2024

Oh wait, there's no entry for this plugin in config/plugins.js, so probably won't work :(

@anthonyhexium @Przemek625

Forgive me if I am wrong, which I probably am, but is it not possible to modify a plugin by extending it via the Strapi docs "Plugin Extension"?

I'm kind of talking out of my butt right now, because I don't really know how to do it, but just thought I'd chime in because I'm trying to extend the plugin right now. Which will hopefully work :)

from strapi-plugin-ckeditor.

twog93 avatar twog93 commented on August 25, 2024

@anthonyhexium You can use configurator.js to affect custom configuration and rebuild strapi to take effects.

from strapi-plugin-ckeditor.

douwepausma avatar douwepausma commented on August 25, 2024

The ability to overwrite parts of the configuration would be great. I am still on the fence wether to switch from TinyMCE to CKEditor, and this and not being able to do source editing are the main reasons.

For example adding a lead element to the heading options:

config: {
   rich: {
      heading: {
          options: [
              { model: 'lead', view: 'p', title: 'Lead', class: 'lead' },
          ]
      }
   }
}

from strapi-plugin-ckeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.