Editor.js: Support for column layout

Created on 9 Apr 2019  路  8Comments  路  Source: codex-team/editor.js

It would be great if blocks could be arranged in columns. Here is an example from Notion, where dragging a block to the left or right edge of another block positions them in a column layout.

While dragging:
ScreenCapture at Tue Apr 9 15:09:12 CEST 2019

The result:
ScreenCapture at Tue Apr 9 15:06:27 CEST 2019

feature

Most helpful comment

I developed editor-js-grid, but EditorJS can't be nested.

https://www.npmjs.com/package/editor-js-grid

I'm fixing EditorJS to be nested.

Do you have a valid link for your module? It would be great to see how you solved your problem. Both the links you provide are 404 now.

All 8 comments

Of course it would be great and handy, there is no doubt about that but most of the time it complicates editing experience because we want more and more nesting.

But I am thinking a different and endless approach right now.

How?

For example, those columns can be a single module that takes the number of columns as parameters and each column could has one configure button to open a modal which has another full editor.js instance and other configuration inputs. We could add columns in that modal's editor too and that columns could open another modals and so on.

This way, our editing experience never stuck and we could do crazy nestings.

I developed editor-js-grid, but EditorJS can't be nested.

https://www.npmjs.com/package/editor-js-grid

I'm fixing EditorJS to be nested.

It looks like you've worked hard. I respect that.

I wonder do you think that a solution like I explained above cannot be produced?

https://codesandbox.io/s/editor-js-grid-nest-ro2uz?fontsize=14&hidenavigation=1&theme=dark

My demo launches Editor.js instance each grid item.
So I think it is one of the solution of https://github.com/codex-team/editor.js/issues/708#issuecomment-596458239

I developed editor-js-grid, but EditorJS can't be nested.

https://www.npmjs.com/package/editor-js-grid

I'm fixing EditorJS to be nested.

Do you have a valid link for your module? It would be great to see how you solved your problem. Both the links you provide are 404 now.

@hayatbiralem @netpalantir
Unfortunately, editor-js-grid was completely removed from GitHub and npm.
editor-js-grid was too untable plugin, so it was not useful.

But, I'm developing an alternative plugin: editorjs-inline.
Please watch:
https://github.com/hata6502/editorjs-inline
https://hata6502.github.io/editorjs-inline/

@hayatbiralem @netpalantir

editor-js-grid is revived as editorjs-layout!
See: https://github.com/hata6502/editorjs-layout

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yakumo-Yukari picture Yakumo-Yukari  路  5Comments

hata6502 picture hata6502  路  3Comments

cossssmin picture cossssmin  路  3Comments

vsvanshi picture vsvanshi  路  4Comments

sei-jdshimkoski picture sei-jdshimkoski  路  5Comments