ckeditor 4.5.9版本
打開文件 \ckeditor\plugins\image\dialogs\image.js
搜索:
(g=c.$.width,c=c.$.height);d&&d.setValue(g);f&&f.setValue(c)
g= 設(shè)置寬度這個(gè)輸入框
c= 設(shè)置高度這個(gè)輸入框
改成:
(g=c.$.width,c=c.$.height);d&&d.setValue("100%");f&&f.setValue("")
這樣方便按手機(jī)寬度的100%來顯示,高度設(shè)為空,會(huì)保持圖片的寬高比例年局,不會(huì)變形辜膝。