Comments (2)
Thanks for reporting this. I think this is a good start, but it would also require logic changes on the Elm side as well. Currently, if characterDataMutations are passed to Elm, the elm logic will skip validation. This could cause the vdom to crash in some cases if the browser removed a node but the validation didn't catch it. Perhaps we could experiment with first applying the character data mutations, then doing the validation if there are other mutations; maybe with 2 different events or with an extra parameter on the current editorchange event.
from elm-rte-toolkit.
For the time being, I have fixed this be performing a String.replace "\n" ""
on the initial HTML, since newlines aren't currently significant. However, that workaround won't work if code blocks are in use, since newlines inside pre
are significant.
from elm-rte-toolkit.
Related Issues (20)
- IME support in Chrome and Safari
- Add more powerful validation support
- Google Japanese IME - selection persists after selecting autocomplete HOT 1
- iOS Safari - cursor disappears sometimes HOT 1
- TypeError: HTMLElement constructor: 'new' is required HOT 3
- Pasting in Firefox in the example doesn't have any effect HOT 5
- `htmlToElementArray` fails to parse "empty paragraphs" HOT 4
- `joinBackward` and `joinForward` are not correct HOT 1
- `RichText.Definitions.link` bad `htmlToNode` HOT 4
- Backwards deletion of newline plus character fails (e.g. "\nh") HOT 3
- When you have 2 rte's on one page only the first one is updating the selection HOT 1
- Cannot type after a link on Chrome HOT 2
- space at the end of a line in firefox doesn't seem to work HOT 1
- Requires Elm 0.19.1 but can run on 0.19.0
- Cmd-backspace not deleting entire line (most of the time)
- Ignore unknown nodes
- State change story
- Large documents HOT 3
- ranges are persisted after deselection 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 elm-rte-toolkit.