SenBiTeSolution.UI/ueditor/dialogs/internal.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

(function () {
    var parent = window.parent;
    //dialog对象
    dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )];
    //当前打开dialog的编辑器实例
    editor = dialog.editor;

    UE = parent.UE;

    domUtils = UE.dom.domUtils;

    utils = UE.utils;

    browser = UE.browser;

    ajax = UE.ajax;

    $G = function ( id ) {
        return document.getElementById( id )
    };
    //focus元素
    $focus = function ( node ) {
        setTimeout( function () {
            if ( browser.ie ) {
                var r = node.createTextRange();
                r.collapse( false );
                r.select();
            } else {
                node.focus()
            }
        }, 0 )
    };
    lang = UE.I18N[editor.options.lang][dialog.className.split( "-" )[2]];
    utils.domReady( function () {
        var langImgPath = editor.options.langPath + editor.options.lang + "/images/";
        //针对静态资源
        for ( var i in lang.static ) {
            var dom = $G( i );
            if(!dom) continue;
            var tagName = dom.tagName,
                    content = lang.static[i];
            if(content.src){
                //clone
                content = utils.extend({},content,false);
                content.src = langImgPath + content.src;
            }
            if(content.style){
                content = utils.extend({},content,false);
                content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath)
            }
            switch ( tagName.toLowerCase() ) {
                case "var":
                    dom.parentNode.replaceChild( document.createTextNode( content ), dom );
                    break;
                case "select":
                    var ops = dom.options;
                    for ( var j = 0, oj; oj = ops[j]; ) {
                        oj.innerHTML = content.options[j++];
                    }
                    for ( var p in content ) {
后面还有 11 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。