第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

CKEditor 5改變高度事件

CKEditor 5改變高度事件

繁星淼淼 2023-09-25 17:06:02
只需明確定義時間的輸入類型就可以了$('#Tools input[type=time]').timepicker({   timeFormat: 'HH:mm',   interval: 30,   use24hours: true,   scrollbar: true,});但這不起作用...您對如何修復(fù)它有什么想法嗎?感謝您抽出寶貴的時間,祝您有美好的一天:)
查看完整描述

1 回答

?
偶然的你

TA貢獻1841條經(jīng)驗 獲得超3個贊

您可以檢查事件內(nèi)的編輯器高度change,看看高度是否發(fā)生變化。


請運行以下代碼片段并檢查控制臺:


let editorWidth;

let editorHeight;


ClassicEditor

  .create(document.querySelector('#Comment'), {

    toolbar: [ 'heading', '|', 'bold', 'italic', 'blockQuote' ],

  })

  .then(editor => {


    editor.model.document.on('change', (eventInfo, name, value, oldValue) => {

        const newWidth = editor.ui.view.element.offsetWidth;

        const newHeight = editor.ui.view.element.offsetHeight;


        if(editorWidth !== newWidth || editorHeight !== newHeight) {

          console.log('Editor size changed. New size:', newWidth, newHeight);

          editorWidth = newWidth;

          editorHeight = newHeight;

        }

    });


  })

  .catch(error => {

      console.error(error);

  });

<script src="https://cdn.ckeditor.com/ckeditor5/17.0.0/classic/ckeditor.js"></script>


<div id="Comment"></div>


查看完整回答
反對 回復(fù) 2023-09-25
  • 1 回答
  • 0 關(guān)注
  • 120 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號