Hi,
I wanted to shift from Wysiwyg editor to Aloha, but I'm getting this error message: Filter filter_tokens has no type specified!

This happen even if I create a new text format using Aloha, while keeping Full Html using Wysiwyg.

Any help?

Comments

dave reid’s picture

I have no idea what is required in our filter information in order to support Aloha.

robert castelo’s picture

StatusFileSize
new405 bytes

This also affects the Edit module so that when using in-line editing ('Quick Edit') the token value is in the field being edited instead of the token.

To fix this and also avoid the warning message, add:
'type' => FILTER_TYPE_TRANSFORM_REVERSIBLE

to token_filter_filter_info()

robert castelo’s picture

Status: Active » Needs review
dave reid’s picture

Status: Needs review » Needs work

Will this work for people that don't have the Edit module installed, and hence the constant won't be defined? Also, please don't have hashes in your patch file name, it makes it so that no one can actually view them on Drupal.org.

robert castelo’s picture

Good point, as FILTER_TYPE_TRANSFORM_REVERSIBLE is defined in Editor that would throw up an error if Editor not installed.

I can wrap it in a check for the module being enabled.

Sorry about the hashes on the patch file name.

robert castelo’s picture

Status: Needs work » Needs review
StatusFileSize
new475 bytes

Updated patch that checks if Editor module is enabled before adding the filter type to the hook_filter_info() array.

darvanen’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Edit module has been replaced by quick_edit and this issue has not received an update in 5 years, closing.

Please feel free to resurrect with a new patch if required.