content-edible:contentEditables 中 document.execCommand 的一个稍微甜一点的 api

时间:2021-06-25 13:47:49
【文件属性】:
文件名称:content-edible:contentEditables 中 document.execCommand 的一个稍微甜一点的 api
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-25 13:47:49
JavaScript 内容可食​​用 contentEditables 中 document.execCommand 的一个稍微甜一点的 api。 目标: 公开一个更容易发现的 api 以在 contentEditables 中使用。 由 DIY WYSIWYG 工具栏控制的基本功能 无依赖 ~200 行(5k-ish 未压缩) 为什么? 有许多出色的所见即所得编辑器,从纤薄的到功能齐全的 。 我发现大多数要么不是我所需要的,要么远远超过我所需要的。 我决定使用一个小模块来让命令更容易记住,并在其他地方控制它。 content-edible调用原生浏览器document.execCommand命令,几乎不关心浏览器实现之间的差异(在当前的 Firefox 和 Chrome 中测试)。 安装 content-edible 可以与 AMD 或 CommonJS 一起使用。 bower install con
【文件预览】:
content-edible-master
----package.json(559B)
----readme.md(2KB)
----content-edible.js(6KB)
----test()
--------content-edible.js(8KB)
--------index.html(307B)
----gulpfile.js(1KB)
----.bowerrc(37B)
----content-edible.es6(5KB)
----.gitignore(44B)
----.jshintrc(518B)
----bower.json(410B)

网友评论