第一步:定义CSS

    table.small-editor {
        height: 10px;
    }

        table.small-editor iframe.k-content {
            height: 60px; /* 50px less than the Editor height */
        }

第二步:设置css属性

<textarea id="myEditor" class="small-editor" rows="2" cols="30" style=" width:100%;" aria-label="editor"></textarea>

第三步:实例化完后使用js设置css属性

        $("#myEditor").kendoEditor({
            resizable: {
                content: true,
                toolbar: false
            },
            encoded: false
        });
        $("textarea.small-editor").closest("table.k-editor").addClass("small-editor");

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-05-11
  • 2022-01-02
  • 2021-06-29
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2021-07-20
  • 2021-11-15
  • 2021-05-24
  • 2021-12-27
  • 2021-11-02
相关资源
相似解决方案