zoukankan      html  css  js  c++  java
  • 如何使tinymce编辑器的高度随内容自变化(转载)

    如何使tinymce编辑器的高度随内容自变化

    最简单的方法就是在配置时添加Autoresize插件:

    tinymce.init({ selector: "textarea", // change this value according to your HTML plugins: "autoresize"});

    该插件有5个选项,可以设置最大高度、最小高度、距离底部的距离等:

    tinymce.init({ ... plugins: "autoresize", autoresize_bottom_margin: 50, autoresize_max_height: 500, autoresize_min_height: 350, autoresize_on_init: true, autoresize_overflow_padding: 50});

    这些选项不是必须设置,默认情况只需要设置plugins: "autoresize"即可

    来源:http://www.talkwithtrend.com/Article/218661

  • 相关阅读:
    gcc -l:手动添加链接库
    gcc -S xx
    gcc -E xx.c
    gcc xx -o xx
    gcc -c xx.c 选项讲解
    GCC选项
    关于Apache日志的统计
    Vxlan——原理
    MySQL常见面试题
    php笔试题(3)--转载
  • 原文地址:https://www.cnblogs.com/hao-1234-1234/p/9002285.html
Copyright © 2011-2022 走看看