Hi dear friends,
How can i make a plugin like a button on the toolbar, I need this button to display a popup to configure a page properties like margins and paper type and then save it to the database.
Can you help me please, any example.
Thanks.
How can i make a plugin like a button on the toolbar, I need this button to display a popup to configure a page properties like margins and paper type and then save it to the database.
Can you help me please, any example.
Thanks.
Re: How need make a button on toolbar ...
Hi,
After some hours investigating this, I could achieve what I was looking for: A custom Toolbar Button which opens a popup window with my custom made Picture Gallery dialog, made on .NET .
Hope this helps, here's what I've made (procedures and code):
1 - Create a new folder for your plugin on /ckeditor/plugins folder. ex: /ckeditor/plugins/newplugin
2 - Inside this newplugin folder, create a JS file: ex. plugin.js
3 - Copy a toolbar button icon image to this newplugin folder. This can be a gif/jpg/etc..
4 - Edit the /ckeditor/config.js.
If you are using CKEditor version 3.3.X (and maybe on some earlier versions), your /ckeditor/config.js file looks like this:
In my case, I have a customized toolbar, showing some ckeditor toolbar buttons only.
Also, I've specified my newplugin in this section.
My /ckeditor/config.js file looks like this:
Finally, here's my /ckeditor/plugins/newplugin/plugin.js file:
I'm using CKEditor version 3.3.2
Good luck, and sorry for my bad english.
JL
(Portugal)