Editor.js: Improve paste function of multiple lines

Created on 17 Jan 2020  Â·  3Comments  Â·  Source: codex-team/editor.js

Paste multiple lines text:

スクリーンショット 2020-01-17 19 00 17

Then, text is pasted as other blocks.
スクリーンショット 2020-01-17 19 00 32

I expected that text is pasted in same block.
And I think that it is more useful!
スクリーンショット 2020-01-17 19 00 56

Most helpful comment

I feel unnatural that paste result is different from copied text.
I think that one Paragraph block shouldn't contain multiple

, but my case is
, not

I’m agree this too.

All 3 comments

I think, that current behaviour is more suitable. We prefer concept "One paragraph = one block", because it is block-style editor, so you able to perform some manupulations with separated blocks. Having line breaks inside one block is more like an exception for rare use cases.

Can you describe your use case, when you need a several <p> inside one Paragraph block?

I feel unnatural that paste result is different from copied text.
I think that one Paragraph block shouldn't contain multiple <p>, but my case is <br>, not <p>.

I agree "One paragraph = one block" concept, too!

I feel unnatural that paste result is different from copied text.
I think that one Paragraph block shouldn't contain multiple

, but my case is
, not

I’m agree this too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neSpecc picture neSpecc  Â·  4Comments

ReactorboY picture ReactorboY  Â·  5Comments

davedbase picture davedbase  Â·  3Comments

talyguryn picture talyguryn  Â·  3Comments

vincentdesmares picture vincentdesmares  Â·  3Comments