简体   繁体   English

CKEditor按钮添加表行

[英]CKEditor button to add table rows

I'm trying to make an add button (NOT a toolbar button), so when you click on it, a new row is added to the bottom of an already existing table. 我试图做一个添加按钮(不是工具栏按钮),所以当您单击它时,新行将添加到已经存在的表的底部。

Any idea how to do this? 任何想法如何做到这一点? Should it just be a button that calls a add-row-function or should it be added to the table plugin (not sure how to add it to the plugin) 它应该只是一个调用添加行函数的按钮还是应该添加到表插件中(不确定如何将其添加到插件中)

Just add the 'tabletools' plugin and you'll have this feature for free. 只需添加“ tabletools”插件,即可免费使用此功能。 You only need to right-click on a table row. 您只需要右键单击表格行。

在表格中添加行

http://ckeditor.com/addon/tabletools http://ckeditor.com/addon/tabletools

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM