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

Remove plugin options "Functions to remove from CKEditor toolbar" and add the opposite #184

Closed
q2apro opened this issue May 3, 2016 · 12 comments

Comments

@q2apro
Copy link

q2apro commented May 3, 2016

I think it would be much easier for usability to give the user one input field (one line), where he can add what buttons he needs for the editor (comma separated).

With the recent Functions to remove from CKEditor toolbar the user cannot remove all elements. The paste bar for example still persists, also many other buttons.

So instead of "what don't you want", I would suggest to give an input field "what do you want" to appear. Very simple and full freedom user-side. Of course, by default showing most of the buttons.

And also provide a link to all available ckeditor buttons.

I am a minimalist and only need B | I | U for example...

@turnermm
Copy link
Owner

turnermm commented May 3, 2016

@q2apro
Copy link
Author

q2apro commented May 3, 2016

Mhh, is it not possible to provide this option in the admin panel?

Each update will override fckconfig.js and remove the changes (thinking of standard users or user groups)...

@turnermm
Copy link
Owner

turnermm commented May 3, 2016

fckconfig.js applies to the fckg plugin, which is the antecedent to ckgedit. In ckgedit the file is config.js, which is a compressed version of ckeditor/config.js.unc. You can always back up config.js and config.js.unc; the back-ups won't won't be overwritten. For compression, see the ckgedit documentation on dokuwiki.org.

thinking of standard users or user groups)...

Don't know what you mean.

@q2apro
Copy link
Author

q2apro commented May 4, 2016

thinking of standard users or user groups

If the users are not developers and just know that in order to update, you have to copy the files to the server, overriding them. A developer probably notices or remembers that there is one file that was changed x years ago :)

@turnermm
Copy link
Owner

turnermm commented May 4, 2016

You can include a comma separated list in the textbox below the checkboxes. I updated the description to make that clear. See current version.

@turnermm turnermm closed this as completed May 4, 2016
@q2apro
Copy link
Author

q2apro commented May 8, 2016

I still can't get it to work. How do I get:

B | U | I | subscript | superscript | Textcolor | special chars | Link | Table | Source

I have tried all admin options, also adding "TextColor" separately for instance. No chance.

@turnermm
Copy link
Owner

turnermm commented May 8, 2016

You can do this mostly from the Dokuwiki configuration manager, in the ckgedit section. See:
https://www.dokuwiki.org/plugin:ckgedit:configuration#alt_toolbar. Any toolbar items without a checkbox can be listed in the textbox below the checkboxes, comma-delimited.

@turnermm
Copy link
Owner

turnermm commented May 8, 2016

Configuration Manager:
configuration settings

ToolBar:
tools

@turnermm turnermm reopened this May 8, 2016
@q2apro
Copy link
Author

q2apro commented May 8, 2016

Checking all checkboxes to remove "all" elements (which are not all), I get:

capture

But I need:

B | U | I | subscript | superscript | Textcolor | special chars | Link | Table | Source

@turnermm
Copy link
Owner

turnermm commented May 8, 2016

On 2016-05-08 3:27 PM, q2apro.com wrote:

Checking all checkboxes to remove "all" elements (which are not all), I
get:

capture
https://cloud.githubusercontent.com/assets/6764548/15100212/716c2298-1574-11e6-9a47-85fc72ae298d.PNG

But I need:

B | U | I | subscript | superscript | Textcolor | special chars | Link |
Table | Source


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#184 (comment)

That's the point of the textbox, where you can list all the items you
want to remove that do not have check-boxes.


This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

@q2apro
Copy link
Author

q2apro commented May 8, 2016

Sorry, but still I think it would be extremely easier to just provide an option:

Enable what you want

instead of the way it is implemented now.

@q2apro
Copy link
Author

q2apro commented May 10, 2016

Could you help out one more time regarding the config.js?

I have added my own code to it, and set ckeditor configurations, however, the config.js is not loaded on the website. But the ckeditor.js. What is the step to get the ckeditor with the new config?

Update:

It was a cache issue. Browser cache cleared, now showing up. By modifying the config.toolbar_Dokuwiki I could create my own mimial version. Thanks.

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