简体   繁体   English

TD作为CKEditor内联实例

[英]TD as CKEditor inline instance

Is it possible to make content of TD tag editable with CKEditor inline? 是否可以使用CKEditor内联来编辑TD标签的内容?

I wrote code: 我写了代码:

<div contenteditable="true">
    this content IS editable
</div>

<table>
    <tr>
        <td contenteditable="true"> not IS NOT editable </td>
        <td contenteditable="true"> not IS NOT editable </td>
    </tr>
</table>

Test: http://jsfiddle.net/martinba/JBFmd/1/ 测试: http//jsfiddle.net/martinba/JBFmd/1/

I cant find if it is a bug or a feature. 我无法找到它是一个错误还是一个功能。

Check my answer for Enable CKEditor4 inline on span and other inline tags . 检查我的答案是否在内联和其他内联标记上内联启用CKEditor4 This is the same case - CKEditor does not support initializing it on td . 这是相同的情况 - CKEditor不支持在td上初始化它。 You can try to hack editor just like BenO did in this answer Enable CKEditor4 inline on span and other inline tags but the result is unpredictable. 您可以尝试破解编辑器,就像BenO在此答案中所做的那样在内联和其他内联标签上启用CKEditor4内联,但结果是不可预测的。

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

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