Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 有没有办法强迫TinyMCE创建<;部门>;表而不是使用<;表>;使用表格按钮时的标签?_Html_Responsive Design_Html Table_Tinymce_Tinymce 4 - Fatal编程技术网

Html 有没有办法强迫TinyMCE创建<;部门>;表而不是使用<;表>;使用表格按钮时的标签?

Html 有没有办法强迫TinyMCE创建<;部门>;表而不是使用<;表>;使用表格按钮时的标签?,html,responsive-design,html-table,tinymce,tinymce-4,Html,Responsive Design,Html Table,Tinymce,Tinymce 4,我在我的网站上使用TinyMCE HTML编辑器;然而,我看到TinyMCE在我使用表格按钮时使用了标记。有没有一种方法可以强制TinyMCE对表格使用标记?这样我的内容将保持响应性?不幸的是,这是不可能的。 获得所需内容的唯一方法是自己编写一个表插件(这会很痛苦)。不幸的是,这不可能是现成的。 获得所需内容的唯一方法是自己编写一个表插件(这会很痛苦)。setup:function(ed){ ed.on('BeforeSetContent',函数(e){ if(例如,content.starts

我在我的网站上使用TinyMCE HTML编辑器;然而,我看到TinyMCE在我使用表格按钮时使用了
标记。有没有一种方法可以强制TinyMCE对表格使用
标记?这样我的内容将保持响应性?

不幸的是,这是不可能的。
获得所需内容的唯一方法是自己编写一个表插件(这会很痛苦)。

不幸的是,这不可能是现成的。 获得所需内容的唯一方法是自己编写一个表插件(这会很痛苦)。

setup:function(ed){
ed.on('BeforeSetContent',函数(e){
if(例如,content.startsWith(“
setup:function(ed)){
ed.on('BeforeSetContent',函数(e){

if(e.content.startsWith)(“div在哪些方面比表更灵敏?div在哪些方面比表更灵敏?
setup: function (ed) {
    ed.on('BeforeSetContent', function(e) {
        if (e.content.startsWith("<table ")) {
            // write jquery code to replace <table> tag with a <div> tag whenever a table is added in the editor.
        }
    });
},
$('table').filter(function(){
    return $.trim($(this).text()) === 'Text Here';
}).replaceWith(function () {
    return '<div>' + $(this).text() + '</div>';
})