jquery-textntags
jquery-textntags copied to clipboard
Tags not colored
When I hit a tag, it appears as normal text.
I noticed this HTML:
<div class="textntags-beautifier">
<div>@[[9::Darko Stanimirović]] just testing!</div>
</div>
But on the website, when I test a tag, the markup is different:
<div class="textntags-beautifier">
<div>
<strong class="">
<span>Daniel Nathans</span>
</strong>
</div>
</div>
Sorry if I'm missing an obvious setting or something… The CSS file is being included, but it can't reach the correct HTML.
Thanks!
Ok, I just figured out what was causing it.
It's (some) UTF-8 letters like šđčćž. I haven't tested with all of them, but once I fix the name from Darko Stanimirović to Darko Stanimirovic in the responseData (Ajax), it works. Also, I've been trying to do parseTaggedText with no luck, until I changed the letter.
Anyone with an idea how to fix it?
I found the solution !
In the jquery-textntags.js, line 34, you have to change :
/(@)[[(\d+):([\w\s.-]+):([\w\s@.,-/#!$%^&*;:{}=-_~()]+)]]/gi by /(@)[[(\d+):([\w\s.-]+):([\W\w\s@.,-\/#!$%^&*;:{}=-_
~()]+)]]/gi
or you can redefine the parser properties in the trigger object...
Hope it will help!
see you