我在jquery的对话框中有一个ckeditor。我需要使ckeditor不可调整大小。我已经尝试了config.resize_enabled = false;
,但它不起作用。我还试图设置max-width
,然后它也不起作用。
<script src="include/ckeditor/ckeditor.js"></script>
<script src="include/ckeditor/adapters/jquery.js"></script>
<textarea id="dialog_description" style="width: 440px; max-height: 200px; min-height: 170px;">
</textarea>
$(function() {
CKEDITOR.editorConfig = function(config) {
config.resize_enabled = false;
config.resize_maxWidth = 600;
};
$("#dialog_loader").dialog({
resizable: false,
height: "auto",
modal: true,
minWidth: 800,
autoOpen: false,
position: 'center top',
open: function() {
$('#dialog_description').ckeditor();
},
close: function() {
$('#dialog_description').ckeditorGet().destroy();
},
buttons: {
//some stuff
}
});
});