Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags not colored #11

Open
darkostanimirovic opened this issue Jul 25, 2013 · 2 comments
Open

Tags not colored #11

darkostanimirovic opened this issue Jul 25, 2013 · 2 comments

Comments

@darkostanimirovic
Copy link

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!

@darkostanimirovic
Copy link
Author

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?

@bbrossaud
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants