username@email.com
2023-03-08 f7a2d28869cc31c7dbe057a1d80dd40536d97fed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//编辑器
; RoadUI.Editor = function ()
{
    var instance = this;
    this.init = function ($editors)
    {
        $editors.each(function ()
        {
            var id = $(this).attr('id');
            var width = $(this).attr('width') || "100%";
            var height = $(this).attr('height') || "300";
            var readonly = "readonly" == $(this).attr('readonly') || "1" == $(this).attr('readonly') ? true : false;
            UE.getEditor(id, {
                initialFrameWidth: width,
                initialFrameHeight: height,
                readonly: readonly
            });
        });
 
    };
}