Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Height is not configurable. Always remains the same. #2000

Closed
naumanzchaudhry opened this issue Jul 25, 2016 · 2 comments
Closed

Height is not configurable. Always remains the same. #2000

naumanzchaudhry opened this issue Jul 25, 2016 · 2 comments

Comments

@naumanzchaudhry
Copy link

Hi,
I just used summernote and its awesome. But the height of the editor is always fixed even if passed as parameter like.

$('#question_text_area').summernote({
height: 450
});

Thanks.

@iisfaq
Copy link

iisfaq commented Sep 13, 2016

Testing this with code from 0.8.2

< script>
$(document).ready(function () {
$('#summernote').summernote({
height: 900, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
focus: true // set focus to editable area after initializing summernote
});
});
It correctly applied the following for me on the correct element

element.style {
height: 900px;
}

This was in Chrome

@1der1
Copy link

1der1 commented Mar 27, 2017

"height: 300" worked for me most of the time.

However, sometimes and for no apparent or reproducible reason, the editor opens with a height of only about 10.

Even adding "minHeight: 300" could not fix it.

Finally, I added a CSS rule, which works all the time:

.panel-body {
min-height: 300px;
}

@summernote summernote deleted a comment from jikhwan Apr 5, 2019
@summernote summernote deleted a comment from jikhwan Apr 5, 2019
@summernote summernote deleted a comment from jikhwan Apr 5, 2019
@summernote summernote deleted a comment from jikhwan Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants