Ueditor修改涂鸦窗口显示大小
1. 修改scrawl.html中的宽高
<div class="drawBoard border_style1">
<canvas id="J_brushBoard" class="brushBorad" width="760" height="400"></canvas>
<div id="J_picBoard" class="picBoard" style="width:760px;height:400px"></div>
</div>
1. 修改scrawl.CSS中的hot和drawToolbar样式的宽高
2. 修改ueditor.all.js中的加载dialog的代码
// ui/dialog.js
///import core
///import uicore
///import ui/mask.js
///import ui/button.js
fitSize: function (){
var popBodyEl =this.getDom('body');
// if (!(baidu.editor.browser.ie && baidu.editor.browser.version == 7)) {
// uiUtils.removeStyle(popBodyEl, 'width');
// uiUtils.removeStyle(popBodyEl, 'height');
// }
var size =this.mesureSize();
// 涂鸦窗口重新定义宽高
if (this.className == 'edui-for-scrawl') {
size.width = '917';
size.height = '529';
}
popBodyEl.style.width = size.width +'px';
popBodyEl.style.height = size.height +'px';
return size;
},
2.给涂鸦框加上自定义颜色(在ueditor.all.js里面修改)
新闻热点
疑难解答