How to add a button to ACF tiny MCE editor

 ̄綄美尐妖づ 提交于 2019-12-12 14:16:23

问题


How can i add a button to ACF WYSIWYG editor ( for example 'text color' button ). i tried this code but it doesn't work :(

add_filter( 'acf/fields/wysiwyg/toolbars' , 'dw_add_buttons_to_acf_wysiwyg_editor'  );
function dw_add_buttons_to_acf_wysiwyg_editor( $toolbars ){
    $toolbars['Full'][2][] = 'forecolor';

    return $toolbars;
}

来源:https://stackoverflow.com/questions/27462326/how-to-add-a-button-to-acf-tiny-mce-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!