Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor: Remove the MagicLine plugin

I've been trying to remove the red line in CKEditor that allows you to insert a paragraph, and it's stubbornly refusing to remove itself.

Adding this code in the javascript that creates it:

CKEDITOR.replace(target,{
    removePlugins: 'magicline',
    ... 
});

Still has the red bar show up.

Adding the following line to CKEditor's config.js

config.removePlugins = 'magicline';

Still has the red bar show up.

I have tried several permutations of MagicLine, magicline, Magic Line, magic-line, Magic-Line in each spot, and in each time, the red bar stubbornly refuses to be gone.

I'm sure I'm simply missing the proper name for the plugin. What is it.

like image 773
RedDwarfian Avatar asked Dec 08 '25 19:12

RedDwarfian


1 Answers

In config.js add these lines:

config.removePlugins = 'magicline';
CKEDITOR.config.magicline_color = '#0000FF';
like image 149
Phạm Thiệp Avatar answered Dec 11 '25 10:12

Phạm Thiệp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!