I've been trying to add a CKEditor plugin (http://ckeditor.com/addon/strinsert) to the editor toolbar in Full HTML text format. The widget placeholder is present in the configuration page, but the widget itself is never rendered in CKEditor instances.
Steps to reproduce:
- Install module
- Go to admin/config/content/formats/manage/full_html
- Drag the "Insert snippet" combobox placeholder to anywhere in the toolbar
- Save configuration
- Go to node/add/page and select "Full HTML" text format
Expected behavior:
A select list with four options should appear in the toolbar
Actual behavior:
No select in toolbar. The library is loading (first console.log() is firing) but the init() method of CKEDITOR.ui.addRichCombo() does not run.
Am I missing some required files/steps to make this work?
UPDATE: Steps to reproduce issue have been updated to run the test in Full HTML mode per Wim Leers suggestion, to rule out ACF interference.
| Comment | File | Size | Author |
|---|---|---|---|
| plugin_test.tar_.gz | 1.69 KB | kaldimar |
Comments
Comment #2
wim leersCan you add it to and report back whether that works?
Comment #3
kaldimar commentedSame with Full HTML, so ACF is not to blame. Combobox placeholder shows up in configuration page but not in actual CKEditor instance, despite plugin code being loaded.
The symptoms look very similar to this issue, I wonder if the underlying cause is the same.
Comment #4
kaldimar commentedComment #5
wim leersAgreed. Can you read the feedback in that issue, especially that of mlewand from the CKEditor team?
Comment #6
kaldimar commentedI don't think mlewand's comments apply here:
3. The toolbar element does not show up even for Full HTML (no ACF) nor even after setting the content to insert to
<p>or other allowed tags, free of attributes.4.
.addButton()is not used by this plugin because it does not implement a button but a richcombo.Something is missing on my plugin -or maybe beyond, I can't tell yet- preventing the richcombo to be rendered in the CKEditor toolbar. It'd be great if somebody has successfully implemented this and wants to share the code, or care to review the code attached to the first post.
Comment #8
p.kasianov commentedSubscribe.
Hi, kaldimar.
Any news about your problem?
I got the same problem on D7, ckeditor 4.5.11 with my custom plugins that uses addRichCombo.
Update.
I was fixed it for D7 + ckeditor 4.5.11.
So, name of button (button from hook_ckeditor_plugin) and name of richcombo element from 'addRichCombo' should be the same.
I hope it help you.
Comment #10
rulley commentedI ran into this issue when using the strinsert plugin.. I got this to work by going into the ckeditor configuration page and clicking edit on the CKEditor Global Profile. I then disabled the drag and drop toolbar feature. Then, edited Full Html and inserted the button 'strinsert'. The dropdown/richcombo is now showing...
Comment #12
icicleking commented"...disabled the drag and drop toolbar feature..." ugh.
Comment #19
cilefen commentedI am closing this support request because there have been no recent comments.