I know using a Drupal module that relies on third party software can be problematic and susceptible to version changes and what not, but I'm encountering some problems with the usually reliable CKEditor (this version- 7.x-1.15+1-dev, the latest). Though I read that I didn't need to get the software from CKEditor.com (since the 7.x-1.4 version), installing the latest version led to my site prompting me to get the CKEditor software which I did. Also, I'd like to use some of their plugins.

So right out of the box here's a few problems that puzzled me. Some of the default Full Mode buttons aren't showing up in my toolbar when I edit a new basic page with Full HTML selected, but on the config page in Editor Appearance they seem to be in the toolbar.

They are:
createDiv, show Blocks, select all, iframe, text direction buttons, font, size pulldowns, background door, text color buttons all don’t show. In CK's ckeditor.config.js file

They are listed in the array, though.

I've also installed the following plugins following directions:
format
dialog
floatpanel
listblock
panel
richcombo
stylesheetparser-fixed

Out of all these, I could only get the PerformX to work as advertised. Is there a better way to customize the editor or does anyone else have a similar problem with it? Tips? Tricks?

What I'd like to do eventually is to use the editor to wrap contents with a section element. Add attributes for aria, etc. I know you can add styles in the ckeditor.styles.js file and I've done that somewhat. When I tried using that to add a "section" as a block element in the styles pulldown menu, it didn't work as I expected- instead of wrapping everything with one section tag, it wrapped each thing, each paragraph, heading and so on, with a section.

Comments

wwalc’s picture

There might a few reasons why is it happenineg:
- browser cache, if the buttons appear in the toolbar (e.g. you see empty "holes" in the toolbar, which you can click) - the sprite image with icons is served from the cache in such case
- you downloaded the standard package instead of full package, which contains more plugins

If you just need the plugins that are distributed by CKSource, you may use CDN instead. Set in the global profile path to CKEditor: //cdn.ckeditor.com/4.4.3/full-all (make sure to update the version number when new releases of CKEditor are available)

ricksta’s picture

I decided to just go with PerformX and Justify and enabled them in the CK configuration for Editor appearance section. Works fine now. Thanks.