How to set the height of CKEditor 5 (Classic Editor)

后端 未结 17 1371
清歌不尽
清歌不尽 2020-12-01 08:41

In CKEditor 4 to change the editor height there was a configuration option: config.height.

How do I change the height of CKEditor 5? (the Classic Editor)

17条回答
  •  天命终不由人
    2020-12-01 09:18

    In the case of ReactJS.

              {
                // You can store the "editor" and use when it is needed.
                // console.log("Editor is ready to use!", editor);
                editor.editing.view.change(writer => {
                  writer.setStyle(
                    "height",
                    "200px",
                    editor.editing.view.document.getRoot()
                  );
                });
              }}
          />
    

提交回复
热议问题