Hi,
i was wondering how far config goes.
here's what i'd like :
And some other stuff which would be done the same way i guess...
That was possible in fckeditor, is it possible here ?
Attached : a screenee of what i'm talking about.
thanks in advance
i was wondering how far config goes.
here's what i'd like :
- Hide "Advanced" tab in dialogs
- Default target to "_blank" and hide the select in the Link tab of the Image dialog
And some other stuff which would be done the same way i guess...
That was possible in fckeditor, is it possible here ?
Attached : a screenee of what i'm talking about.
thanks in advance
Re: Removing tabs from dialog boxes
Ok, i've found this :
config.linkShowAdvancedTab = false;
Nothing found for image or to change default "target".
If anyone can help...
Re: Removing tabs from dialog boxes
I've changed the code so that default value for target is '_blank'
link.js
I've also added some stuff to the image plugin so that you can configure it without Link or Advanced Tab :
plugin.js
image.js
Hope this will soon be implemented as official config feature.
My app is supposed to be easely understood by any user and allow simple text editing and formating. The need no clas, id or whatever dev stuff. Neither do they need to choose a target between "_blank" "_top" etc... thing that they wouldn't understand at all.
Anyway, this CKEditor is great. Hope this post interested some people...
Re: Removing tabs from dialog boxes
What's the process you use to test your code? ckeditor_source.js doesn't appear to be working for us and rather than repacking ckeditor.js we pretty much just overrode the plugins by overwriting them after the initial load. I honestly haven't spent much time trying to figure it out, but are going to need to as we need to hook the ckeditor up to our file management system.
Overwriting a plugin looks like so for those that didn't know:
Re: Removing tabs from dialog boxes
Now i haven't touched ckeditor_source.js or ckeditor.js (don't really understand what you're trying to do there) I've just taken the link.js, plugin.js and image.js files from _source folder, past em in the "used" plugin folder and modified them with the code i gave in my last post.
Btw, when you overwrite a plugin like you do, you have to write the whole plugin again or do you only have to add what you need. Looking to your code i'd say you rewrite everything, but wouldn't one be able to access only some properties and modify them ?
The properties i want to access are in an object directly "returned" though. i'm not quite sure how i can do it and haven't much more time to spend on it.
Re: Removing tabs from dialog boxes
The plugin object looks to be simply a JSON object so you can just use dot notation to change pieces instead of the entire plugin. In the plugins I've looked at you can only really change the init and required. When the editor is instanced it runs the plugin init at that time.
Re: Removing tabs from dialog boxes
Hey, Crystark !
Modifications doesn't work for me
I run with CKEditor 3.1
I modified files from folder plugin on source and paste them to the used folder plugin as you said but advanced part still there