HOME 首頁
SERVICE 服務(wù)產(chǎn)品
XINMEITI 新媒體代運營
CASE 服務(wù)案例
NEWS 熱點資訊
ABOUT 關(guān)于我們
CONTACT 聯(lián)系我們
創(chuàng)意嶺
讓品牌有溫度、有情感
專注品牌策劃15年

    Ueditor字數(shù)限制解決方案(ueditor限制輸入長度)

    發(fā)布時間:2023-03-13 23:06:13     稿源: 創(chuàng)意嶺    閱讀: 97        問大家

    大家好!今天讓創(chuàng)意嶺的小編來大家介紹下關(guān)于Ueditor字數(shù)限制解決方案的問題,以下是小編對此問題的歸納整理,讓我們一起來看看吧。

    ChatGPT國內(nèi)免費在線使用,一鍵生成原創(chuàng)文章、方案、文案、工作計劃、工作報告、論文、代碼、作文、做題和對話答疑等等

    只需要輸入關(guān)鍵詞,就能返回你想要的內(nèi)容,越精準,寫出的就越詳細,有微信小程序端、在線網(wǎng)頁版、PC客戶端

    官網(wǎng):https://ai.de1919.com

    本文目錄:

    Ueditor字數(shù)限制解決方案(ueditor限制輸入長度)

    一、ueditor首行縮進2字符怎么設(shè)置

    html首行縮進2字符,可以使用CSS屬性中的【text-indent】進行設(shè)置。

    設(shè)置代碼如下:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

    <html xmlns="

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>縮進2字符</title>

    <style type="text/css">

    p{ text-indent:2em;}

    </style>

    </head>

    <body>

    <p>首行縮進2字符的案例展示如下。需要多寫幾行看效果,需要多寫幾行看效果,需要多寫幾行看效果,需要多寫幾行看效果,需要多寫幾行看效果,需要多寫幾行看效果,需要多寫幾行看效果。</p>

    </body>

    </html>

    詳細代碼見附件。

    效果圖如下:

    說明:

            text-indent表示段落首行縮進,2em表示縮進2字符。

    二、dedecms更換了ueditor后,在內(nèi)容模型管理里自定義了幾個HTML文本字段無法加載?

    織夢的后臺我見過一次 老古董界面。。。

    三、ueditor上傳圖片是哪個文件夾,如何限制 上傳圖片的大小(寬高)。

    ueitor默認上傳路徑為:ueditor/jsp/upload/下邊以日期分文件夾(只有你正式上傳后這個目錄才會存在);這個路徑也是可配的;在jsp文件夾下,有一個fileUp.jsp,其中有如下代碼:

      Uploader up = new Uploader(request);

        up.setSavePath("upload"); //保存路徑

    將upload改成你想傳的路徑就好了

    第二點問題:文件大小也能配置,同樣是在fileUp.jsp中,不過這里只能配大小,就是幾M,幾KB,代碼如下:

    up.setAllowFiles(fileType);

        up.setMaxSize(10000);        //允許的文件最大尺寸,單位KB

    圖片尺寸的大小也是能修改的:這個修改文件ueditor.config.js文件,找如下代碼:

       //圖片上傳配置區(qū)

            ,imageUrl:URL+"jsp/imageUp.jsp"             //圖片上傳提交地址

            ,imagePath:URL + "jsp/"                     //圖片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置

            //,imageFieldName:"upfile"                   //圖片數(shù)據(jù)的key,若此處修改,需要在后臺對應(yīng)文件修改對應(yīng)參數(shù)

            //,compressSide:0                            //等比壓縮的基準,確定maxImageSideLength參數(shù)的參照對象。0為按照最長邊,1為按照寬度,2為按照高度

            ,maxImageSideLength:2000

    這個是參照jsp版本的,其它版本的目錄結(jié)構(gòu)基本類似,就是文件格式是.asp,或者php,都一樣

    四、ueditor外部粘入表格時表格樣式瀏覽器不兼容

    這個樣式不是用css定義的,你試著引入下載的完整源碼包里面的ueditor1_4_3-src\_parse\list.js 和

    ueditor1_4_3-src\_src\plugins\list.js 試試,ol的樣式是通過這兩個js生成的。

    -------------------------------------------------------------------------------

    ueditor1_4_3-src\_src\plugins\list.js 片段:

    -------------------------------------------------------------------------------

    me.ready(function () {

    var customCss = [];

    for(var p in customStyle){

    if(p == 'dash' || p == 'dot'){

    customCss.push('li.list-' + customStyle[p] + '{background-image:url(' + liiconpath +customStyle[p]+'.gif)}');

    customCss.push('ul.custom_'+p+'{list-style:none;}ul.custom_'+p+' li{background-position:0 3px;background-repeat:no-repeat}');

    }else{

    for(var i= 0;i<99;i++){

    customCss.push('li.list-' + customStyle[p] + i + '{background-image:url(' + liiconpath + 'list-'+customStyle[p] + i + '.gif)}')

    }

    customCss.push('ol.custom_'+p+'{list-style:none;}ol.custom_'+p+' li{background-position:0 3px;background-repeat:no-repeat}');

    }

    switch(p){

    case 'cn':

    customCss.push('li.list-'+p+'-paddingleft-1{padding-left:25px}');

    customCss.push('li.list-'+p+'-paddingleft-2{padding-left:40px}');

    customCss.push('li.list-'+p+'-paddingleft-3{padding-left:55px}');

    break;

    case 'cn1':

    customCss.push('li.list-'+p+'-paddingleft-1{padding-left:30px}');

    customCss.push('li.list-'+p+'-paddingleft-2{padding-left:40px}');

    customCss.push('li.list-'+p+'-paddingleft-3{padding-left:55px}');

    break;

    case 'cn2':

    customCss.push('li.list-'+p+'-paddingleft-1{padding-left:40px}');

    customCss.push('li.list-'+p+'-paddingleft-2{padding-left:55px}');

    customCss.push('li.list-'+p+'-paddingleft-3{padding-left:68px}');

    break;

    case 'num':

    case 'num1':

    customCss.push('li.list-'+p+'-paddingleft-1{padding-left:25px}');

    break;

    case 'num2':

    customCss.push('li.list-'+p+'-paddingleft-1{padding-left:35px}');

    customCss.push('li.list-'+p+'-paddingleft-2{padding-left:40px}');

    break;

    case 'dash':

    customCss.push('li.list-'+p+'-paddingleft{padding-left:35px}');

    break;

    case 'dot':

    customCss.push('li.list-'+p+'-paddingleft{padding-left:20px}');

    }

    }

    customCss.push('.list-paddingleft-1{padding-left:0}');

    customCss.push('.list-paddingleft-2{padding-left:'+me.options.listDefaultPaddingLeft+'px}');

    customCss.push('.list-paddingleft-3{padding-left:'+me.options.listDefaultPaddingLeft*2+'px}');

    //如果不給寬度會在自定應(yīng)樣式里出現(xiàn)滾動條

    utils.cssRule('list', 'ol,ul{margin:0;pading:0;'+(browser.ie ? '' : 'width:95%')+'}li{clear:both;}'+customCss.join('\n'), me.document);

    });

    以上就是關(guān)于Ueditor字數(shù)限制解決方案相關(guān)問題的回答。希望能幫到你,如有更多相關(guān)問題,您也可以聯(lián)系我們的客服進行咨詢,客服也會為您講解更多精彩的知識和內(nèi)容。


    推薦閱讀:

    ChatGPT的危害(tpguest危害)

    Ueditor字數(shù)限制解決方案(ueditor限制輸入長度)

    opaque(opaque什么意思)

    品牌設(shè)計全案

    專科學軟件技術(shù)有出路嗎(??茖W軟件技術(shù)有前途嗎)