Hi all,
First, please let me complement the developers of CKeditor. Wow, what an accomplishment guys, it's a masterpiece. I looked at a number of other editors before finding CKeditor, and none of them come close. Well done, well done. Bowing, bowing...
If your time permits, a couple of fairly trivial questions.
1) Ideally I'd like to be able to center the toolbar icons over the textarea. I'm using about half the features, and have them organized in to three rows. They look kinda lonely way over on the left margin. Can you give me a clue what file this code is in?
2) Ideally I'd like to replace the toolbar icons with buttons which describe the feature using a word instead of a picture. (Like the editor in this forum) The tooltips popups are great, but it might be greater if they weren't needed. I realize the icons are necessary if one wanted all the features, but I'm going for fewer clearer features in my setup.
I was hoping I could perhaps just replace the toolbar icon images with different images, but maybe the toolbar icons aren't actually images?
I'd be grateful if you might give me an idea how much work this would be be, and where the changes could be made.
If none of this is possible etc, no worries, I love CKeditor as it is.
Thanks so much!
First, please let me complement the developers of CKeditor. Wow, what an accomplishment guys, it's a masterpiece. I looked at a number of other editors before finding CKeditor, and none of them come close. Well done, well done. Bowing, bowing...
If your time permits, a couple of fairly trivial questions.
1) Ideally I'd like to be able to center the toolbar icons over the textarea. I'm using about half the features, and have them organized in to three rows. They look kinda lonely way over on the left margin. Can you give me a clue what file this code is in?
2) Ideally I'd like to replace the toolbar icons with buttons which describe the feature using a word instead of a picture. (Like the editor in this forum) The tooltips popups are great, but it might be greater if they weren't needed. I realize the icons are necessary if one wanted all the features, but I'm going for fewer clearer features in my setup.
I was hoping I could perhaps just replace the toolbar icon images with different images, but maybe the toolbar icons aren't actually images?
I'd be grateful if you might give me an idea how much work this would be be, and where the changes could be made.
If none of this is possible etc, no worries, I love CKeditor as it is.
Thanks so much!
Re: How To Center Toolbar Icons?
Re: How To Center Toolbar Icons?
Thanks for your reply, much appreciated.
Do you mean the file api.html in the _samples folder?
Or this perhaps? http://docs.cksource.com/ckeditor_api/
Re: How To Center Toolbar Icons?
The page that you linked is a reference for all the internal objects, methods, etc... that you might need to look at when you want to know how something works, but as I said, it's a reference, not a tutorial or guide.
Re: How To Center Toolbar Icons?
We must be talking about different files? I can see no reference to buttons in this file...
ckeditor/_samples/api.html
Re: How To Center Toolbar Icons?
Re: How To Center Toolbar Icons?
So, I could remove all the toolbar icons (i know how to do that) and then create all my own buttons outside of the editor interface using the method shown in the avi sample page, right?
I could add the onclick command to my own images, instead of using form buttons as shown in the example, yes?
If yes, I think I get it now, and should be able to do what I have in mind. Thanks for hanging with me.
Re: How To Center Toolbar Icons?
Well, almost, once I learn how to make plugins that is.
Thanks again!
Re: How To Center Toolbar Icons?
Almost there....
I've got all my own toolbar buttons working, except for four.
Here's a stripped down test page which shows only the four features.
http://forum-engine-network.com/tooltest/test.html
In this sample, all four features work when triggered by the built-in default icons, but these features do not work when triggered by my own buttons.
I've experimented with these four commands extensively (uppercase, lowercase, etc). I've spent an hour searching forum, docs, files etc for a list of these toolbar commands, without success. I can see the issue probably is that these four commands involve two words, and have tried spaces, hyphens, underscores, and merging the two words in to one. I seem to be a lousy hacker... There's got to be a simple solution here, but it escapes me.
I was able to get all other toolbar commands I need to work by taking them from the icon code, and shifting the command to lowercase.
Here's the full source of the sample page I've linked to above.
Many thanks for any tips!
Re: How To Center Toolbar Icons?
Re: How To Center Toolbar Icons?
Many thanks! Your suggestion helped me fix two of my broken buttons.
All I have left to fix is TextColor and BGColor.
The only plugin I can find that seems related to these features is "colorbutton". Not sure if this is helpful, but here's the code for that plugin. Thanks for any tips!
Re: How To Center Toolbar Icons?
Re: How To Center Toolbar Icons?
Ok, thanks for letting me know, that's helpful.
But fear not, I have engineered a brilliant solution to this tricky issue.
Keep the icons for the color feature. Duh!
This is great software, much fun to work with.
Re: How To Center Toolbar Icons?