Wysiwyg applies itself to all filtered textfields, including those outside of a comment or node context such as you'd find in settings pages. In those situations the token insert button will still be there, but there will be a JS error re: missing token_insert_wysiwyg.

Looking at the code, this is because token_insert_wysiwyg_form_alter limits itself to node types of node_form or comment, where Wysiwyg doesn't. Suggested solution: Use the same approach Wysiwyg does for inserting itself.

Are you open to patches? I've got a project that looks to be adding a number of features that I'd love to kick back into contrib (UI improvements, Webform token support, etc)

Comments

jelle_s’s picture

Status: Active » Fixed

marked #1829688: Doesn't seem to work as duplicate.

I committed your solution as described to the latest dev. As for the features, of course we are open to patches. Feel free to open feature requests in this issue queue and post your patches there ;-)

Status: Fixed » Closed (fixed)

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