Closed (fixed)
Project:
Token Insert
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2012 at 14:40 UTC
Updated:
20 Dec 2012 at 08:40 UTC
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
Comment #1
jelle_smarked #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 ;-)