Tinymce对话框的文本框与标签重叠

时间:2017-01-06 10:32:16

标签: javascript tinymce-4

正如标题所示,Tinymce的对话框的文本框与标签重叠。

ed.addButton('addref', {
                title : 'Add References',

                image : 'img/example.gif',
                onclick : function() {
                    ed.windowManager.open({
                        title: 'Add References',
                        body: [
                            {type: 'textbox', name: 'refName', label: 'Name'},
                            {type: 'textbox', name: 'refSurname', label: 'Surname'}
                        ],
                        onsubmit: function(e) {    
                            ed.focus();
                            ed.selection.setContent('<pre class="language-' + e.data.refName + ' line-numbers">Data</pre>');
                        }
                    });
                }
            });

这是我的对话框的外观

enter image description here

1 个答案:

答案 0 :(得分:0)

我使用的是测试版的tinymce(4.0b1)。当我将库更新到4.5.2时,问题就解决了。