Overview

When using Editor.js, large margins appear on the left and right sides by default. This article introduces how to solve this issue.

Method

The following was helpful.

https://github.com/codex-team/editor.js/issues/1328

Specifically, add the following CSS.

..}.}ccceemdm--axabtx-xlo-b-oowlwclioikbdcd_atkt_rhhc_:{:o_ncc1toa0enl0ntc%te(,n1!t0i0m{%po-rt8a0nptx;)!important;

The full source code is as follows.

<iic}c}e<<..}.}p}smmo)o;d/t/scccr/cppntb];nn}ise<tteemdmebbpsroosil,se)tcmd/ey--axaaoatirrtmo{}twhdo};orpi<<dmlbtx-x{crdypttec,oan,rilvdhipelo-b-kddltb:ktd}eEltCb(pailvl>oowlwgeieEtlsya,dddahl)ttsvj>aclioirrn>sdyon:pttiie:ao;>etstkbdcdo:geipceeaettrnc>yioe_atktu:ttekw[::xoo:bgkldn>_rhhn1uostrrlese=c_:{:dp1pr{D"{:J"o:.=":o_-x0J=ap=Secv"ecncc1cplSOta"(dkaabdotoa0osxaurer{isslainenl0lo;nfte(at.yucttntc%olgrpf)govnekoete(ri=ou<.r使=racgrn,n1!:d"mtOga>jl=rjtt0itDuepsu(os=0m##s"atth {"eaau""{%pfc"@tpT",,pwn>bo4c>eaui,iad<l-rfcdtm)i-/ot4;i}Detcdc8afta(=oik0n4oft)>alvspt;rra,po>"x;jo>{ir)sm(.:/{s!e"aaid@vlmieeiptdrcooi.errtsbtjoalasrvun"jeet;s(";/)>e;ditorjs";使",

As a result, the left and right margins were reduced as shown below.

Summary

I hope this serves as a useful reference when using Editor.js.