A few months ago I discovered CKEditor and needed something like it to support a website I've volunteered to maintain for a local non-profit organization. I've been supporting the site for several years now, but have been looking to have it need less of my time so providing a content editor that other people can use is a huge load off of me. I hadn't really looked for content editors before, when I finally did and found CKEditor, it looked like it was worth a try. Well, I have to say I'm impressed by how flexible it is and how easy it went together. I provide a front end where the users can select an array of "segments" that they can use CKEditor to modify, and they can create new segments designed to show up on the main page as "announcments." It's working really well, kudos to all of you who've contributed to the project. It also seems to be pretty reliable.
There are a couple of things I'm wondering about though-- one is, the "Save" icon is just a floppy disk. Seems to me floppy disks are pretty obsolete these days, though a lot of UIs still use them. Though often the icons I see will have some kind of arrow or something to indicate whether it is a load or a save operation. So I looked into what it would take to update the icon. Found the png file, but it's a 16x16 graphic which makes it hard to do much with... What I'd really like is to be able to configure that button so that like the "Source" button, has both the icon and a text label. But it's not clear to me how to do that-- I looked at the js file in the plugin/save area and saw where the button is being added, and looked at how the Source button was being added in the main js file, but it's not at all clear to me how to set it up as a combo icon/text button like Source is...
Second, I'm wondering, how do people deal with centering? I don't see a style or format option for setting this. And I don't want the users to have to know ANYTHING about html, so entering it in code is not very ideal. What I've done in the interim is a makeshift solution-- in my page rendering code, I substitute the blockquote tags with centered tags-- this allows me to use the "inline quote" style and it will show up in the end centered. It seems to me there may be a better way out there, but a search for "center" in the forums turned up only one post and it was irrelevant to the subject. I do realize that HTML can be pasted in from a Word doc or web page and likely get the centering in that way, but it would seem to me to be nice if the editor supported it directly. Or maybe there's a plugin I should consider? Looking for ideas...
Oh, and BTW, I believe I'm on CKEditor 4.4.4 at this point...
--
Zinc
The part that sets the text
The part that sets the text in the Source plugin is located here... Play around with it. I'm sure you can do the same for other plugins/buttons as well. As for alignment, why not use the Justify plugin?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Looks good...
Both solutions here look good, I hadn't noticed the justify plugin did center as well. Thanks.
Hmm-- there's no presets.css
Hmm-- there's no presets.css file to be found there... I wonder if it's been rearranged since v4.4.4...
Zinc