首页 > 网站 > WEB开发 > 正文

ueditor修改涂鸦窗口大小

2024-04-27 15:08:57
字体:
来源:转载
供稿:网友

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里面修改)

 

 

 

 

 

 

 

 


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表