自定义配置
CKFinder 提供了许多配置选项,可以更改它们来自定义应用程序。有关详细信息,请查看 文档。
在下面的示例中,设置了以下选项
id
将实例 ID 设置为custom-instance-id
,thumbnailDefaultSize
在 CKFinder 启动后将默认缩略图大小设置为 400 像素,width
将小部件宽度设置为 100%,以使用所有可用空间,height
将小部件高度设置为 500 像素。
CKFinder.widget( 'ckfinder-widget', {
id: 'custom-instance-id',
thumbnailDefaultSize: 400,
width: '100%',
height: 500
} );