Comments (3)
Have not tested whether #16 fixes yet
from simpla-richtext-behavior.
See attached commit. Initially thought it was just forcing the selection that would fix it, but nope. Not really sure why but adding a zero width space to before the actual placeholder meant Safari would focus on it. Logically, no idea why, but figured it was something to do with Safari needing an extra piece of DOM to sit the cursor next to.
from simpla-richtext-behavior.
That seems to be the case for most things that happen to work on Safari - "no idea why this works, but hey, it's Safari". Coolio.
from simpla-richtext-behavior.
Related Issues (20)
- Provide hooks for embedded images HOT 2
- State history isn't working HOT 4
- Img align center shouldn't set top and bottom margin HOT 3
- Selected image should unfocus on certain hotkeys
- Images should autofocus when embedded
- Removing all the content in a formatted range should remove the format
- Should we auto focus?
- Blockquotes / Headings should be applicable in lists HOT 5
- If image embedded after first line, cannot delete first line
- Image embed shouldn't insert new line if line already exists after image
- Backspacing in new list item removes list, but doesn't go to new line
- Spaces clobbered in Firefox HOT 22
- Cursor should always focus to left of placeholder HOT 1
- Lists items should not create nested paragraphs HOT 5
- Generalise styles across plugins HOT 2
- Fork this into JS module HOT 5
- Make selected img nodes selection transparent HOT 7
- Make subprops notify? HOT 3
- Inserting image doesn't preserve selection HOT 3
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 simpla-richtext-behavior.