yields / editable Goto Github PK
View Code? Open in Web Editor NEWFixing contenteditable.
Fixing contenteditable.
Expected: No change.
Actual: Selected text is deleted.
I followed the directions to install editable -- twice -- and still cannot get past the console error in Safari: Error: failed to require "k" while trying to view the demo page. I have tried manually installing yields/k and also (in a new directory) not doing that -- just in case. I am not sure how to resolve this. Can anyone help?
Thanks,
Walter
somehow
Hey!
I am trying to integrate the editable
functionality and have a question regarding the noramlization, because I want rather to use a <div>
for new lines.
What part handles the enter
keydown? I couldn't find it :(
Cheers.
google docs does this i suppose, annoying since currently it's a character by character undo.
Observation:
Noticed that when you run your mouse over title controls, the following is unnecessarily appended to start of description.
What should happen:
Nothing should be pre-pended on title.
Reproduce:
Potential source:
checking the source in index.html noticed the following embedded in the page ''⌘ + b". This could be client side not being able to recognise the symbol.
On your demo, if I only type one letter I can't actually undo that letter input. This isn't very obvious right now because editable saves so frequently. But I'm attempting to patch that right now -- to provide a delayed 'change' such that the history is only updated after 500ms of inactivity by the user -- and it becomes much more evident.
It also seems to push to history some invisible changes, such that calling undo doesn't actually appear to do anything.
with a range as argument
Undo is a little bit funky and not like other editors
steps:
editors like google docs select the range you bolded, while editable will just place the cursor at the end.
make it async
Steps to reproduce:
I'd expect the cursor to not move.
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.