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

No button on CKEditor in Drupal #6

Open
jrochate opened this issue Sep 24, 2017 · 1 comment
Open

No button on CKEditor in Drupal #6

jrochate opened this issue Sep 24, 2017 · 1 comment

Comments

@jrochate
Copy link

jrochate commented Sep 24, 2017

Hi.

I'm not in ckeditor API, but I found out that I need to add the following code in order to show the button on ckeditor cdn 4.7.3 under drupal module:

In plugin.js after this line:
init: function (editor) {
add
var lang = editor.lang.collapsibleItem; editor.ui.addButton('accordionList', { label: lang.buttonTitle, command: 'accordionList', icon: this.path + 'icons/accordionlist.png' });
sorry if this is not the way to do it, but here is the solution i found for my problem.

@anurag2050doit
Copy link

anurag2050doit commented Jan 25, 2019

We need to UI buttton for plugin and need to update icon also icons: 'accordionList'

 editor.ui.addButton('accordionlist', {
            label: 'accordionlist',
            command: 'accordionList', // The command that was created by addCommand, above.
            toolbar: 'insert' // Defines the toolbar group. Can also specify an index for ordering: 'insert,30' or 'insert,100', or 'insert,0'.
        });

I am not sure if this is a best solution, but it solved my problem.

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