Comments (3)
You should to set the initial value before initializing Tagify and also for links to work they should have a contentEditable="false"
attribute but note that they won't be editable.
input.value = `This is some text with a <a contentEditable="false" href="http:google.com">link</a>. The link will show initially, but it won't be saved back to the textarea.`;
from tagify.
Unfortunately, this requires pre/post processing the HTML in order to facilitate the solution you mentioned. And it means you don't have the ability to easily round-trip things without a whole lot of extra effort.
Due to this issue and a few others, I've moved away from Tagify for mixed-mode content. I think it's great for tags, but I think there's a lot of stuff in mixed-mode it just doesn't handle well—this being one of them.
But it's all good. It's not really what it is for, and if it works for people in this use case, great. For me, I need something a bit different, and the change you made isn't doing to work for my usage scenario.
from tagify.
Yeah I understand.. mix-mode
is insanely difficult to develop, there are endless amount of browser bugs that I do not have time/motivation to address as I'm pretty thin on my motivation to continue programming after almost 3 decades.
When I started working on mix-mode
in 2017 I thought how hard can this be.
well, it's pretty much very hard. and it's not my fault, it's there are just so so many browser bugs and insane workarounds that has to be done around them.. and browser vendors won't fix a thing. frustrating.
I did re-wrote the whole code in React 2 years ago to make a mix-mode
version which works very well but have never released it.. it takes a lot of time to release a project because demo pages needs to be authored and README file and whatnot..
from tagify.
Related Issues (20)
- mix mode : pressing the enter key selects the first tag
- Callback when original tag data has loaded HOT 1
- Console warning on tag addition via enter key HOT 1
- Warning in Console: [Tagify]: Cannot find element in Tag template: . .tagify__tag-text HOT 1
- mix mode : pressing the down key at the end of line displays drop-down list
- Multiple init Tagify HOT 1
- Sprockets error in Rails 7 due to filename change in v4.25.0
- Intermittent error in setRangeAtStartEnd HOT 3
- prop-type error HOT 9
- Clicking outside doesn't close dropdown in select mode and tagX class is blank
- Options not filtered in select mode, userInput=true and tagX='' HOT 1
- in 4.26.2 value cannot be non-string in users-list example
- A double tag is created for delimiter when typed HOT 3
- react.tagify.jsx Failed to compile HOT 1
- Ignore an email address in the middle of an sentence HOT 1
- Tagify selct mode incorrect behavior HOT 6
- React className property supports only one class
- "Uncaught (in promise) TypeError: t is null" when pressing Tab key with empty input and dropdown is shown
- default highlighting of selected value in single-select mode in the dropdown
- autoComplete.rightKey = true, mode = null (Default), two problems with the rightKey behavior
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tagify.