简体   繁体   中英

How to set minimum width for CKEditor?

My website is being built to support mobile as well. The problem is that I need to set the minWidth of the editor in order to be able to put the one I want.

Can anybody guide me or tell me what config to add in order to set minimum width for the editor?

The two config options you are looking for are config.width and config.resize_minWidth .

So for instance, to start the editor at 500px wide and prevent it from being resized any smaller:

config.width = 500;
config.resize_minWidth = 500;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM