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.
I am using Footnotes with WYSIWYG (7.x-2.1) and CKEditor (3.6.3.7474). When I activate the Footnotes Wysiwyg and then activate the footnotes button in the WYSIWYG configuration I lose my editor window. Instead I get a blank space on the page where the editor should be. When I deactivate the footnote button in the WYSIWYG configuration, I again get the WYSIWYG CKEditor window with an appropriate button bar. The behavior toggles on and off by checking/unchecking the button in the WYSIWYG button configuration settings.
Comment | File | Size | Author |
---|---|---|---|
#6 | footnotes-wysiwyg_fix_js_error_ckeditor-1589130-6.patch | 557 bytes | rossb89 |
Comments
Comment #1
GuyB CreditAttribution: GuyB commentedI have the same issue using a slightly older version of CKEditor (3.6.2.7275).
Comment #2
erald CreditAttribution: erald commentedsame with CKEditor 3.6.0.6902
Comment #3
auraell CreditAttribution: auraell commentedsame with CKEditor 3.5.2.6450
Comment #4
gsquirrelI think this is a duplicate of http://drupal.org/node/1333748 - I found upgrading to the dev version got things working.
Comment #5
GuyB CreditAttribution: GuyB commentedThe dev version works for me. Thanks gsquirrel.
Comment #6
rossb89 CreditAttribution: rossb89 commentedFor anyone who has been having javascript errors with footnotes and CKeditor v4.0 onwards (presumably). More specifically, the error "Uncaught TypeError: Object [object Object] has no method 'addCss' "
This causes footnotes_wysiwyg module to 'wipe out editor window' again -This patch against 7.x-2.x-dev fixes the error.
It's only 1 line of javascript in the plugin.js that needed changing; line 26 - changed
editor.addCss(
to
CKEDITOR.addCss(.
Comment #7
kiwad CreditAttribution: kiwad commentedFootnote 7.x-2.x-dev + CKEditor 4.0.1
Patch in #6 does provide the solution to a bug that makes footnotes otherwise unusable
Comment #8
bruitism CreditAttribution: bruitism commentedI can confirm that patch #6 works with 4.0.1.d02739be4b as well.
Comment #9
pyrojonc CreditAttribution: pyrojonc commentedI have footnotes-7.x-2.5 and CKEditor 4.1.1. I am having this issue and the patch does not work for me. Wysiwyg editor works fine when footnotes_wysiwyg module is disabled, but the text editor does not show up when it is enabled.
Comment #10
dtrees CreditAttribution: dtrees commentedThis patch does not work for me either. I am using CKEditor 4.0.1.1.270438, i've tried both the dev and footnotes-7.x-2.5 versions. I've double checked that changes were made to plugin.js via the patch and the WYWIYG editor window is still wiped out. Any help in troubleshooting this is greatly appreciated. Thanks
Comment #11
pjcdawkins CreditAttribution: pjcdawkins commentedThe patch in #6 works for me. @pyrojonc and @dtrees, did you clear Drupal and your browser caches?
Comment #12
R.Muilwijk CreditAttribution: R.Muilwijk commentedThis issue might be interesting for you #2025027: Add support for ckeditor 4.x
Comment #13
jrao CreditAttribution: jrao commentedYes, patch in #6 works, will need to clear browser cache for it to take effect.
Comment #13.0
jrao CreditAttribution: jrao commentedClarification
Comment #14
JThan CreditAttribution: JThan commentedPatch in #6 worked for me instantly. Thanks.
Have the latest dev Versions of WYSIWYG and Footnote. CKEDITOR 4.3.1 without (sic!) the patch from here https://drupal.org/node/2025027
Comment #15
WillowDigit CreditAttribution: WillowDigit commentedI can confirm that #14 works.
I have also found out that dropping the jQuery down from 1.10 to 1.8 solves the problem for me and I am now able to use it with the ckeditor module (foregoing wysiwyg)
Comment #16
ecat CreditAttribution: ecat commentedI'm having trouble with this. I've been using the dev version of Footnotes (7.x-2.5+7-dev). I have applied the patch in #6 (manually changed line 26). I've tried WYSIWYG with ckeditor 3.3.1, 3.6.6, and 4.4.2. I've cleared my cache at Configuration > Performance > Clear cache every time, and also cleared my browser's cache. Also tried the latest version of the CKEditor module (7.x-1.14). No matter what, I still get a blank space under "Body" when the footnotes wysiwyg button is turned on (everything works fine when it's turned off). Any ideas much appreciated.
Comment #17
fonant CreditAttribution: fonant commentedFootnotes works fine for me if I use:
Any chance the current DEV release could be made an official 7.x-2.6 version?
Comment #18
andersju CreditAttribution: andersju commentedWorks for me when using WYSIWYG 7.x-2.2+46-dev, Footnotes Wysiwyg 7.x-2.5+7-dev, CKEditor 4.4.5.25cdcad (latest right now), jQuery 1.7 (jquery_update setting for admin pages), and the patch from #6.
Comment #19
GiorgosKfor wysiwyg (with ckeditor plugin) there was no need for this patch
for ckeditor module even this patch did not work
Comment #20
GiorgosKspoke too soon
its not working with or without the patch, it was working for a while (don't know why)
tried clearing cache, and changing to jquery 1.4 (default for drupal 7)
but it does not seem to work
maybe it conflicts with something some other module
Comment #21
pifagorComment #22
tky CreditAttribution: tky commentedI have enabled modules in below:
The editor toolbar and input area were wiped out, unless I unchecked the "Add footnote" option in Plugins of ckeditor profile setting.
I have changed the ckeditor version by modified the version number in CDN, but no luck at all. Have to disable this pluging to make ckeditor functioning.
Comment #23
Proteo CreditAttribution: Proteo as a volunteer commentedFor newcomers:
The patch from #6 works just fine with the following combination:
Footnotes & Footnotes Wysiwyg 7.x-3.1
Wysiwyg 7.x-2.5
CKEditor (library) 4.9.2
Apply the patch and flush caches, done. Works fine with jQuery 1.10, no need to touch that.
Comment #24
DamienMcKennaAgreed, this problem could still happen with the latest release.
Comment #25
pifagorComment #28
pifagorDone