Editor.js: Editor height by default has too much empty space

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

Editor height is calculated as sum of block heights + 300px of bottomZone. This extra bottomZone of 300 px is huge for use cases such as comment section, or asking users to write small notes or paragraph.

It would be great if we have option to decrease the bottomZone height.
Screenshot from 2019-04-13 10-38-33

Most helpful comment

@khan9920

this.editor = new EditorJS({
  holder: 'editor-js',
  ...,
  minHeight : 0
});

All 8 comments

Resolved by #719

Wasn't solved, as far as i can see.

image

Even if you reduce the codex-editor content height, an 300px padding-bottom overflows the editor content.

How can i fix this?

minHeight option can't set to 0px.
Please fix

this.config.minHeight = this.config.minHeight || 300;

to

this.config.minHeight = this.config.minHeight!==undefined ? this.config.minHeight || 300;

https://github.com/codex-team/editor.js/pull/719/files#diff-e3bf20e89f6b22c16beb3e17fb3c8a60R154

@hata6502 you are welcome to fix it and send a PR

Not fixed, still a problem!

image

minHeight set to 30 however it still creates a 300px padding-bottom, this is really annoying. Please resolve

image

Not fixed, still a problem!

image

minHeight set to 30 however it still creates a 300px padding-bottom, this is really annoying. Please resolve

image

you are using it wrong. There is an unnecessary config wrapper in your code.

How do I use config in my code? I couldn't find any examples anywhere. Please help!

image

@khan9920

this.editor = new EditorJS({
  holder: 'editor-js',
  ...,
  minHeight : 0
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ar53n picture ar53n  路  3Comments

Someskumarasamy picture Someskumarasamy  路  4Comments

ghost picture ghost  路  4Comments

chouglesaud picture chouglesaud  路  3Comments

sei-jdshimkoski picture sei-jdshimkoski  路  5Comments