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

Support initial value on mix mode containing white spaces #237

Closed
ricardojbertolin opened this issue May 24, 2019 · 2 comments
Closed

Support initial value on mix mode containing white spaces #237

ricardojbertolin opened this issue May 24, 2019 · 2 comments

Comments

@ricardojbertolin
Copy link

ricardojbertolin commented May 24, 2019

I'm trying to set an initial value for a textarea, with the following configuration:

  • Mix mode
  • White list enforced
  • Pattern: @
  • On white list, tags with whitespaces (e.g 'My label')
  • An initial value that have an expression to be "tagified", for example: "This is @my label"

It seems that doesn't work if the label has whitespaces, but it works without them.
This can be reproduced using the code in the demo page: https://yaireo.github.io/tagify/#section-textarea

My suggestion is, in the initial value, to limit labels between the pattern. For example:
"This is @my label@". It would help for an easier implementation.

Thank you

@yairEO
Copy link
Owner

yairEO commented May 25, 2019

I am thinking to changing the initial tagging to this:

[[cartman]] and [[kyle]] do not know [[homer simpson]]

That means it would be a breaking change.

@ricardojbertolin
Copy link
Author

Great, thank you!

@yairEO yairEO closed this as completed in 294b91d May 27, 2019
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