Hi
I'm not sure if i've made an error installing this module, but as far as i can see (and after inspecting the code) there is no support for setups using the ckeditor standalone module, ie:
http://drupal.org/project/ckeditor
(i'm currently on version 7.x-1.6)
I've made a start adding support; i've managed to register the plugin, however when ckeditor loads the button is not available. I assume something must be failing in plugin.js, but i'm not sure what.
Heres the code to register the plugin:
function video_filter_ckeditor_plugin() {
return array(
'video_filter' => array(
// Name of the plugin used to write it.
'name' => 'video_filter',
// Description of the plugin - it would be displayed in the plugins management section of profile settings.
'desc' => t('Video Filter plugin'),
// The full path to the CKEditor plugins directory, with the trailing slash.
'path' => drupal_get_path('module', 'video_filter') . '/editors/ckeditor/',
'buttons' => array(
'button_name' => array(
'icon' => 'video_filter.png',
'label' => 'Video filter',
)
)
)
);
}
I'm happy to help with supplying a patch to add this, if you / somebody can help spot the problem?
Cheers
Comment | File | Size | Author |
---|---|---|---|
#13 | update_the_readme_for-1434158-13.patch | 3.16 KB | kyletaylored |
Comments
Comment #1
VVS CreditAttribution: VVS commentedFor adding in standalone CKEditor see instruction in file: /sites/all/modules/video_filter/editors/ckeditor/README.txt
Comment #2
rooby CreditAttribution: rooby commentedI have followed the instructions and it doesn't seem to work.
The instructions seem to be for the older version of ckeditor, where you added buttons in a text field.
Now there is a fancy drag drop UI for adding buttons.
This worked for me (perhaps this can be added to the readme).
#1279042-2: Video Filter button not appearing in CKEditor
Comment #3
ttkaminski CreditAttribution: ttkaminski commentedPatch for updated instructions in README.txt based on #1279042-2: Video Filter button not appearing in CKEditor. Also updated the main video_filter README.txt to indicate where to find the ckeditor plugin.
Comment #4
Yaron Tal CreditAttribution: Yaron Tal commentedSince the ckeditor also has a hook_ckeditor_plugins() we could also implement that to make it even simpler.
I updated the readme (taking the patch by @ttkaminski as a basis) to reflect this change and added the hook to the module.
This way you can leave the plugin in the module and there is no need to hack/patch/modify other modules or libraries.
Comment #5
Yaron Tal CreditAttribution: Yaron Tal commentedUpdated version of the patch to also reflect the change by @ttkaminski to the main readme file.
Comment #6
bibo CreditAttribution: bibo commentedThanks Yaron Tal, your patch in #5 worked perfectly. Ckeditor (4) now works as it should.
Comment #7
joep.hendrix CreditAttribution: joep.hendrix commented#5 Works fine.
Thanks all!
Please commit.
Cheers,
Joep
Comment #8
agileadamThe patch in #5 allowed me to add the video filter plugin and button to the standalone CKEditor (after a cache clear).
There is apparently an issue in Chrome; as of right now clicking the button doesn't do anything. #2335169: Reliance on showModalDialog breaks CKEditor plugin in Chrome
Comment #9
DamienMcKennaRerolled.
Comment #10
DamienMcKennaThe button shows in the CKEditor settings page, but it doesn't show on the editor itself.
Comment #11
helmo CreditAttribution: helmo commentedThe path was missing a '/' to start with. The ckeditor.api.php example also adds this.
I've updated the patch to use base_path() for this, per the example of the media_wysiwyg module. Then it also works for Drupal sites installed in a subdirectory.
Comment #12
MrPeanut CreditAttribution: MrPeanut commentedPatch from #11 applied cleanly, but I'm not seeing the button in "Available buttons" on my CKEditor profile (nor in the Plugins). Using CKEditor 7.x-1.16 (standalone).
Comment #13
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedI had the same issue in #12. It seems adding base_path() doesn't link to the icon correctly. Once I removed it, the icon showed right up.
re-rolled.
Comment #14
zviryatko CreditAttribution: zviryatko at AnyforSoft commentedBtw, need to click on checkbox "Plugin to directly embed videos with the video filter module." in "Editor appearance" section.
Comment #15
Maico de Jong#13 Works for me
Comment #16
MrPeanut CreditAttribution: MrPeanut commented#13 works for me as well. Thanks!
Comment #17
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedSeems appropriate now.
Comment #18
DamienMcKenna+1
Comment #19
blackdog CreditAttribution: blackdog as a volunteer commentedCommitted #13