Comments (5)
The ui element is still not rigorously tested and I would be reluctant to try to expand its usage. I'm not sure the use case you are describing is what it was designed for either though. Can you explain more about the newline + Block scenario?
from parchment.
We're working on a track changes feature for showing the changes a user has made to a document. Part of this is showing them when they've inserted a paragraph break.
We're doing this by showing a "return" character at the end of the block. In theory this could be done with a pseudoelement, but we'd quite like for it to be a span
so that we can underline it when the user selects the change (as in the screenshot). So we're currently adding this span
manually, and also having to make sure it stays at the end of the Block
if the contents of the paragraph change.
The character is purely for UI, and should not be considered part of the document, or be able to be interacted with. It also belongs conceptually one-to-one with a block. In these ways, it feels a lot like the existing UI elements in lists.
It could be that the UI elements don't quite fit this bill - I haven't dug into them in depth yet - hence the exploratory issue.
Do you think this is something that would be worth adding to core Quill? (Obviously if not, we'll just extend however we see fit with subclasses - just thought it might be a nice feature to add if other people have other use cases, eg status indicators at the end of a list item?)
(Side note on UI elements not being tested: I've noticed an issue with keyboard behaviour in lists in Quill. I've raised slab/quill#2651, although I'm still not sure if the solution is correct, so it'd be good to get thoughts on that when you have time, please!)
from parchment.
Do you think this is something that would be worth adding to core Quill?
To be clear "this" is something that exists in Quill's DOM purely for display and does not represent content?
The list issue you noted is an example of why the ui node is still needs to be tweaked and tested.
from parchment.
To be clear "this" is something that exists in Quill's DOM purely for display and does not represent content?
Yes, I suppose I was talking about having something at the end of the blot, but perhaps it would be better to think more "generally".
from parchment.
Closing inactive issue.
from parchment.
Related Issues (20)
- block
- How cloud I understand Scope and What is the meaning of & operator between Scope and another Scope
- How to set editor content with html style
- Make v2 the default branch HOT 1
- register Blot unsucessfully
- [Question] Is it possible to define how a blot is serialized ? HOT 1
- How to add custom inline blot (or any blot whatsoever)? HOT 2
- Where can I find the old version commit? HOT 1
- Incorrect descendant typing (ts2769) HOT 1
- Adding a custom Blot HOT 1
- Remove Byte Order Mark (BOM) characters from Blot HOT 3
- Quill editor removes inline style margin-left on loading content
- the img tag is not closed HOT 1
- re-export classes from quill-delta and parchment
- How do we replicate the functionality inside a blot's `replace` function?
- Support ClassAttributor if prefix == ''
- Paste options for plain text content
- Inline Embed not working in 2.0 branch
- Is this condition of `uiNode` a typo? HOT 2
- registering a new blot does not add it to the allowed children of the scroll object
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 parchment.