克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

cls-tinymce-plugin

介绍

自定义tinymce-plugin,目前有段前间距、段后间距;

插件说明

1. 段前间距

a.安装

  • 跟其他tinymce插件安装方法一样,将clspspacebefore目录整个放到tinymce的plugins目录即可。
  • 插件名称说明 cls:前缀 p:paragraph简写 space:间距 before:段前

b.使用说明

  • 插件列表中启用 clspspacebefore
  • 工具栏添加 clspspacebefore
  • 间距值列表自定义 p_space_before_val:"0 5px 10px 15px 20px 30px 40px"
    tinymce.init({
        ...
        plugins: "clspspacebefore",
        toolbar: "clspspacebefore",
        // 间距值列表自定义(有默认列表)
        p_space_before_val:"0 5px 10px 15px 20px 30px 40px",
        ...
    })

2. 段后间距

a.安装

  • 跟其他tinymce插件安装方法一样,将clspspaceend目录整个放到tinymce的plugins目录即可。
  • 插件名称说明 cls:前缀 p:paragraph简写 space:间距 end:段后

b.使用说明

  • 插件列表中启用 clspspaceend
  • 工具栏添加 clspspaceend
  • 间距值列表自定义 p_space_end_val:"0 5px 10px 15px 20px 30px 40px"
    tinymce.init({
        ...
        plugins: "clspspaceend",
        toolbar: "clspspaceend",
        // 间距值列表自定义(有默认列表)
        p_space_end_val: "0 5px 10px 15px 20px 30px 40px",
        ...
    })

特别鸣谢


** 段前间距/段后间距两插件均参照 five 大佬的 lineheight 插件修改而来,如有不到位之处请自行修改.

five的tinymce-plugin插件仓库 https://gitee.com/fivecc/tinymce-plugins

tinymce中文网插件制作教程 http://tinymce.ax-z.cn/advanced/creating-a-plugin.php

MIT License Copyright (c) 2021 克莱里昂 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

自定义tinymce-plugin,目前有段前间距、段后间距; 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化