简体   繁体   中英

Setting the width of a RichCombo box in CKEditor

I've created a plugin with a RichCombo box. Unfortunately the name of the dropdown is a little too long for the RichCombo and it gets cut off.

在此处输入图片说明

Is there a way to force a wider RichCombo ? Likewise, is there a way to force a width of the actual dropdown list ( ListBox ) itself?

The CSS value you seek is .cke_combopanel { width: 150px; } .cke_combopanel { width: 150px; } . It can be found within editor.css .

style your page with:

 .cke_combo_text { width: 130px !important; } .cke_combopanel { width: 370px !important; } 

I got it. I added this to the page containing the ckeditor control:

<style>
    .cke_combo_text { width:auto !important; }
    .cke_combopanel { height:600px !important; }
</style>

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