Comments (8)
@doodlewind @zuoxiaodong0815 Thank you guys. I have found other more issues about clipboard and I'm trying to debug the code to solve them. I'm not sure whether it will be done, but later I'll submit the other issues.
from blocksuite.
I'm trying to solve this issue, and I think should remove handleBlockSplit
code here.
Can someone please tell me why there need split block? Thanks a lot.
blocksuite/packages/blocks/src/__internal__/service/json2block.ts
Lines 51 to 57 in 52ecfd8
from blocksuite.
I'm trying to solve this issue, and I think should remove handleBlockSplit code here.
Can someone please tell me why there need split block? Thanks a lot.
from blocksuite.
I'm trying to solve this issue, and I think should remove
handleBlockSplit
code here. Can someone please tell me why there need split block? Thanks a lot.blocksuite/packages/blocks/src/__internal__/service/json2block.ts
Lines 51 to 57 in 52ecfd8
When the cursor is positioned in the middle of a block, the block needs to be split when pasting
from blocksuite.
2023-09-05.10.08.49.mov
This is the split block case.
from blocksuite.
I'm trying to solve this issue, and I think should remove
handleBlockSplit
code here. Can someone please tell me why there need split block? Thanks a lot.
blocksuite/packages/blocks/src/__internal__/service/json2block.ts
Lines 51 to 57 in 52ecfd8
When the cursor is positioned in the middle of a block, the block needs to be split when pasting
Thank you for clarifying, it's much clearer for me. Maybe more product design clarification is needed here.
from blocksuite.
@zuoxiaodong0815 I don't think we should add \n
in the case you provided. A part of text can just be inserted unless it's copied with \n
at the end together. @BangKk please feel free to modify the behavior here.
from blocksuite.
Yes, you are right @doodlewind . The issue is needed to be fixed. I just show why to split a block when focus in the middle of the block.
The right behave when not selected whole blocks is that the selected content should be removed, and after split to tow parts, the first pasted block join in the end of the first part, the last pasted block join in the begin of the last part. This issue is about the case of the behavior.
The right behave when selected whole blocks is that the selected content does not be removed, the focus block does not be split yet, the pasted content should pasted at the behind of selected blocks.
from blocksuite.
Related Issues (20)
- Missing page bottom drop area for block hub HOT 3
- Optimize the animation of expanding and retracting the drag handle HOT 2
- Use zod to validate selection data
- Drag handle blinks when selecting text
- Drag handle expansion animation height issue when multi-selecting blocks with indentation
- Dragging area should not select parent and children blocks at the same time HOT 1
- When a member is moving pictures and notes, there is a delay in the action seen by the other member.
- Database cannot be edited by double click in edgeless
- Kanban view in edgeless mode can't be dragged left or right HOT 2
- Kanban view in edgeless mode unable to scroll horizontally
- When the document is too long, the connector will automatically position itself to jump to a certain location. HOT 1
- Link display error in Kanban HOT 1
- Text Block cannot be directly dragged into Database HOT 2
- Cells in Database do not support pasting content HOT 1
- The activation state about whiteboard toobar item
- kanban makes page move HOT 3
- Support format-bar in database text column HOT 1
- After the image is converted to a card, the image name is empty HOT 1
- Should not trigger action in input when pressing Enter while using IME
- Request for HTTP Request Communication EXPLAIN HOW 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 blocksuite.