gr2m / contenteditable-autocomplete Goto Github PK
View Code? Open in Web Editor NEWAutocomplete for contenteditable tags
Home Page: https://gr2m.github.io/contenteditable-autocomplete
Autocomplete for contenteditable tags
Home Page: https://gr2m.github.io/contenteditable-autocomplete
Hey. Nice plugin. I've been working on something similar myself that allows auto complete mid way through a paragraph for example. I notice that if I write some text prior to the country, the auto complete doesn't work. It's more like a single input autocomplete. Is this something you're looking at? Currently I'm struggling with IE. I'll chuck it up on GitHub at some stage.
If that wasn't a clear explanation, I mean like this...
http://c.sampotts.me/Uuj6
When I used bower for download new version I cant simply run that cause exception "ReferenceError: module is not defined".
I tried to make build but resultant dist js file is corrupt. Do i need Webpack for build?
I think it's nonsense need to make build for single usage of this little library..
Hello,
I tested your demo page and it works in Firefox, Chrome, Edge, but not in IE11.
Man I used your older version via bower and one day I tried make bower install and it told me it can find selected version of contenteditable-autocomplete....
Let's say I have this:
$('[name=country]').on('autocomplete:request', function(event, query, callback) {
callback([
{label: 'Germany (Europe)', value: 'Germany', meta: 1},
{label: 'Thailand (Asia)', value: 'Thailand', meta: 2},
{label: 'Uruguay (South America)', value: 'Uruguay', meta: 3}
]);
})
Today, the autocomplete:select
event passes the value as string. But what I it should pass an object with label
, value
and all other properties passed to the respective suggestions instead
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.