Comments (1)
Hi Antonio,
The problem is that browsers simply do it differently and have for a long time. Also I don't know of any real efforts on their parts to remedy the situation. The API's for contentEditable are pretty opaque and don't offer much in the way of customization of the output. The only way I can think of the have complete normalization between browsers would be to abandon using the API and roll our own. That would be A LOT of tricky code that would need a lot of cross-browser shimming since the selection API's are different in the browsers as well. I feel like the best thing to do is to be ok with some differences and keep the codebase lightweight. If someone wanted to rewrite all the contentEditable operations I would consider abstracting the calls in etch to make it possible to use a plugin like that, but it isn't something that I feel driven to do myself. I'm not even sure it is 100% possible. Its a tough problem and you aren't the first person to ask. In my own projects I have encouraged users to use the same browsers for best results. Seemed to work pretty well.
from etch.
Related Issues (20)
- Not work on Opera 12.16 HOT 2
- Return focus to text using list and other buttons in Firefox HOT 1
- "Image Uploading, Cropping and Insertion - already built, just needs some work" HOT 8
- Repeatable Regions, i.e.: collections HOT 2
- Weird contruct in helper `etchInstantiate`. What does `each` iterate over? HOT 3
- enhancement (?): unlinking entire link instead of subrange HOT 2
- something wrong with `toggleHeading` as it's not present in the default toolbar? HOT 1
- Etch 0.6.2 doesn't seem to work with Backbone 1.1.0 HOT 4
- Issue with absence of buttons HOT 1
- Link to Demo from Readme
- Saving edited content HOT 2
- Keyboard Shortcuts for links, lists
- Auto-detect links
- Menu positioned outside the visible area
- Add keyboard events
- Pass editable content or target on save HOT 4
- Add custom icon
- img Editor
- $editor.size is not a function HOT 2
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 etch.