Comments (3)
Dealing with the same problem. When I drop texts in the editor, the formats retain their font properties. I use Quill 2.0.0 and even-though have configured the registry to exclude formats/font(like using formats:[] white list in Quill 1.3.7). It seems that Quill's handle and support with the drop event are inadequate. Additionally, the editor won't take the last insert location into account if you use a different method, such as a custom function to handle drop event.
from quill.
@hiahiahyj Can you reproduce in playground?
from quill.
@luin Sure. This problem seems to be inconsistent in the playground with my local electron app, but it can basically reproduce part of the problem. In the playground link I provided, if you are in a Mac Chrome environment, the text "drag me" that you provided will not cause any problems. The problem is that when dragging text from applications such as Microsoft Word or WPS, even if I do not register the font module, The font size can exceed the limit.
Playground Link: playground
Also, I recommend the team to check out https://v2.quilljs.com/playground/
The V2 demo version on the official website loads two versions, 2.0.0 and 1.3.6, but the one that actually works is 1.3.6. I tried using deprecated formats configuration inside and it still works.
from quill.
Related Issues (20)
- Edit text box not displaying on click of image
- There are errors when using Chinese input methods in versions above Quill 2.0 HOT 20
- Ctrl+Shift+Z doesn't redo on Chrome/Ubuntu HOT 4
- Created a custom Divider and also works but prompts before working HOT 3
- Edit Aria-label through Parameter HOT 1
- Inline blot breaks when newline is inserted in the middle HOT 4
- Last line format override all lines in Copy & paste from Google Docs
- Duplicated ql-picker element when create Quill with toolbar dom container. HOT 1
- getText() returns extra \n at the end of the string as opposed to v2.0.0-dev.4 HOT 2
- Proposed update to code handeling to support hljs better... HOT 3
- Toolbar Handlers not working? HOT 5
- quill 2.0.0-beta.2 How to use highlight.js, here is how I use it, but he can't load HOT 4
- Nested Elements
- How to insert editable images and videos? HOT 1
- Missing docs for getHTML in docs/api
- Bold format. How replace <strong> tag with <span> wich has inline style 'font-weight: 700;'
- Fails to run on Vite HOT 6
- Change log issue HOT 1
- Esbuild issue HOT 6
- After upgrading to v2.0.0.rc1 embed is not working HOT 7
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 quill.