hi anybody
thanks to the maintainers for your great work for this cool module!
my problem:
if i add tokens of fields which are not present in all node-types, linkit shows the token-code in the auto-suggest area instead of hiding it. this makes the auto-suggest area quite ugly. can anybody give a hint how to avoid these tokens to be shown?
any help is greatly appreciated!
Comments
Comment #1
anonHi.
I havent really thought about this, but it seems like you are right.
Just remove the "tokens" in the text is not a solutuion I think, as there can be text that looks like tokens, but is just text.
I will have to think about this issue.
Comment #2
anonComment #3
anonComment #4
anonThat will remove all tokens that isnt replaced.
Fix commited to 2.x and 3.x
Comment #5
anonI found a better solution:
token_replace can take options.
clear: A boolean flag indicating that tokens should be removed from the final text if no replacement value can be generated.
Comment #6
anonFixed with the solution from #5