【发布时间】:2020-11-16 13:44:27
【问题描述】:
我需要将自定义按钮添加到工具栏 ACF Wysiwyg tinymce。我使用此代码:
tinymce.PluginManager.add( 'wdd_mce_format', function ( editor, url ) {
editor.addButton( 'wdd_mce_format', {
active: true,
tooltip: 'Formating the List',
text : 'Formating the List',
icon : false,
type : 'button',
onclick : function () {
do_stuff_here('')
}
} );
} );
它适用于标准的 Wordpress tinymce 编辑器。但不适用于 ACF Wysiwyg tinymce。
【问题讨论】:
标签: wordpress advanced-custom-fields wysiwyg