Question

I am fine with all the buttons of nicedit for my website. But i would like to remove upload button of the editor in one of my website. I got an option of ppulating button list, but i am searching for setting like:

fullPanel: true, hideButton: 'upload'

Was it helpful?

Solution

The plugin does not seem to have a hideButton option.
You can either have the full button list, or explicitely choose the buttons to show with the buttonList option.

Documentation

I was thinking that maybe you could hide it using CSS but the plugin does add any class or IDs to the buttons so it would make it pretty unreliable to target.

OTHER TIPS

Just put buttons that you need.

new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']}).panelInstance('area1');

You can go to nicEdit.js try to find .. buttonList .. at there you can see button list. Delete the ,upload

I've been extending and fixing the nicEdit plugin (added easy YouTube embedding and DragNDropz https://dragndropz.com image upload support) quite a bit lately, and I added an ignore buttons option as well to easily ignore specific buttons.

Source and updated version is here:

https://dev.x-null.net/own3mall/nic-edit/tree/yt-videos

Example of how to use it:

myNicEditor = new nicEditor({fullPanel : true, buttonIgnoreList: new Array('upload', 'youtube')}).panelInstance('go_nicedit',{hasPanel : true});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top