I use ckeditor and when I edit the addtoany properties, the 'additional javascript' textarea is opened with ckeditor. This appears to insert "<br/>" into this field, causing the dropdown to not appear.

When I switch off ckeditor for this field ('exclude' admin/settings/addtoany.edit-addtoany-additional-js in the ckeditor settings) and remove the "<br/>" the dropdown works.

This is not really an issue with addtoany, but a side-effect of using ckeditor, however I'm writing about it here in case anyone else has this problem.

Comments

wtjxmaster’s picture

Thanks for posting this! It only took me an hour to find this info - ckeditor, of course...

micropat’s picture

Likewise, thanks for posting! I saw the 'mysterious <br/> in Additional Options' anomaly posted elsewhere, so thanks very much for tracking this down. Is this a known bug in ckeditor?

If it's not a ckeditor bug, is there a way we can have ckeditor always exclude AddToAny? I'd be happy to get a working patch committed to AddToAny.

micropat’s picture

Status: Active » Fixed

I've seen CKEditor and FCKeditor affecting too many Drupal publishers that use AddToAny. After a little research I found an undocumented "wysiwyg" property in the forms API which will prevent the WYSIWYG editors (hopefully all of them!) from loading on the Additional Options box.

The cross-module fix will be in the next dev release and will of course be in the next version. :)

Note: Be sure to remove "<br/>" in the Additional Box once the WYSIWYG helper is gone!

tallsimon’s picture

Status: Fixed » Active

after installing the 6.x-3.x-dev dated september 11th, this remains a problem. I am using the wysiwyg module. I cannot see a
in the additional options box (it appears blank to me) but the dropdown is not appearing and the error continues to appear:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MDDC; .NET CLR 3.0.30729; InfoPath.2)
Timestamp: Sat, 18 Sep 2010 14:18:34 UTC

Message: 'da2a' is undefined
Line: 967
Char: 1
Code: 0
URI: http://gpstsociety.org.uk/

micropat’s picture

Status: Active » Fixed

@tallsimon the <br/> would appear in the source code of your webpage, not in the actual Additional Options box. This is a sneaky bug caused by some wysiwyg editors. :)

I couldn't reproduce this issue with the wysiwyg module (same module you're using?) and the latest AddToAny dev release. Did you try disabling the module to see if it works? Marking as fixed for now.

tallsimon’s picture

Thank you, preventing the wysiwyg editor from messing with the field fixed the problem.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.