gpt4 book ai didi

tinymce-4 - TinyMCE 4 Table通过拖动调整单元格大小

转载 作者:行者123 更新时间:2023-12-01 23:52:42 26 4
gpt4 key购买 nike

我正在寻找一个通过拖动来调整表格单元格大小的 TinyMCE 插件,我来到了: http://sourceforge.net/p/tinymce/plugins/163/?page=2

这里有一个工作示例 http://tinymcesupport.com/premium-plugins/resize-table-cells

不幸的是,这是针对旧版本(我使用的是 4)并且按照迁移指南我还没有得到一个工作版本。

我不是 Java 程序员,我不知道迁移是否非常简单,只需进行一些小的更改,还是需要更多开发。

谢谢

最佳答案

TinyMCE 现在支持使用 its 4.3 release 调整列的大小.只需启用表格插件,如下所示:

tinymce.init({
inline: true,
selector: 'table',
plugins: 'table'
});
table {
border-collapse: collapse;

}

th, td {
border: solid 1px #ccc;
text-align: center;
padding: 10px;
}
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>

Make sure the <code>table</code> plugin is activated, then drag the columns to resize them:

<table style="width: 100%;">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data</td>
<td>Data</td>
<td>Data</td>
</tr>
</tbody>
</table>

关于tinymce-4 - TinyMCE 4 Table通过拖动调整单元格大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25769332/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com