Skip to content

Is there a way to change the max-width of the editor to be 100%? #1891

Answered by gatanaso
philmetzger asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @philmetzger,

I believe that the max-width is there to allow for a nice UX as there should be space for the block controls (i.e. tune buttons). However, I am not an EditorJS expert or a maintainer, so hopefully someone with more know-how can tell you about it in greater detail.

Regarding the full width, you can change the max-width by modifying these classes:

.ce-block__content, 
.ce-toolbar__content {
 max-width: 1000px;  /* example value, adjust for your own use case */
}

Hope this helps,
Goran

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by talyguryn
Comment options

You must be logged in to vote
1 reply
@GlebGlushchenko
Comment options

Comment options

You must be logged in to vote
2 replies
@thinkdj
Comment options

@leonnicklas
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #1328 on January 17, 2022 14:11.