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

Extending the CKEditor #1536

Open
cosminonea opened this issue Jun 26, 2016 · 0 comments
Open

Extending the CKEditor #1536

cosminonea opened this issue Jun 26, 2016 · 0 comments

Comments

@cosminonea
Copy link

cosminonea commented Jun 26, 2016

I need to install a couple more plugins for the CKEditor.

I created my own module with a descriptor that registers my main javascript file:

public override IEnumerable<JsIncludeDescriptor> RegisterJsIncludes()
{
  return new[]
  {
    new JsIncludeDescriptor(this, "main"),
  };
}

My main.js file looks like this:

bettercms.define('paste-rich-text', ['bcms.jquery', 'bcms.htmlEditor'],
    function($, htmlEditor) {
        // load ckeditor plugins here
    }
);

My Scripts folder has the following structure:

.
|--ckeditor
|  |--plugins
|  |  |--plugin1
|  |  |  |--plugin.js
|  |  |--plugin2
|  |  |  |--plugin.js
|--main.js

How can I get a reference to the CKEDITOR and inject the extra plugins from my main file?

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

1 participant