Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jesterFortyEight on
I have found and tried about 5 different tutorials on how to add a cutom button to CKEditor, not one has worked.
I need a basic working example of adding a button to CKEdtor for Drupal 7
Comments
=-=
it would aid if you provided the code that you've already cobbled together. Otherwise, please edit this post and move it to the 'post installation' forum. Thank you.
I have three that I have
I have three that I have tried, this is the one I need to work.
the below code was copied and modified form one of the online tutorials I found
the lr_ckeditor.module code
the plugin.js code
I changed the .module code
I changed the .module code to this
but I don't know how to add the button/icon taken from here
http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/Plugin...
using the above gives my the option of activating the plugin on the CKEditor config page (progress)
but the js causes an error - pulled from firebug:
f is null
and as a result the editor does not load
plugin.js