Ckeditor-4-without-underline-button

QuestionsCkeditor-4-without-underline-button
Denis Fontaine asked 2 years ago

Hello Abu, The underline button does not appear on the editor menu bar. However, this button is in the script you provide us: { name: \’basicstyles\’, groups: [ \’basicstyles\’, \’cleanup\’ ], items: [ \’Bold\’, \’Italic\’, \’Underline\’, \’Strike\’ , \’Subscript\’, \’Superscript\’, \’-\’, \’CopyFormatting\’, \’RemoveFormat\’ ] },. What should I do to make it appear in the menu ? Thank you !

2 Answers
Abu Ghufran Staff answered 2 years ago

Hello,

These buttons are most likely disabled in config.js
https://ckeditor.com/old/comment/122939#comment-122939

First Solution is to load ckeditor locally (not cdn) so you can edit config.js.

Another way is to override the config like below, You can set removeButtons to blank like following.
Ref: https://www.gridphp.com/demo/demos/integrations/ckeditor.phps Line 196

var editor = CKEDITOR.replace( el, {
    removeButtons: '',
    on: {
        change: function(){ jQuery(el).val(editor.getData()); }
    }
});
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Denis Fontaine answered 2 years ago

Bonsoir Abu,

Sure enough, overriding is the solution that worked for me. I now see the underline button.

Once again a thousand thanks!

Your Answer

2 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?