tinymce-docs
tinymce-docs copied to clipboard
Problem with page plugins/opensource/codesample.md Installing plugins in TinyMCE.
Hello! I encountered the following problem... I want to expand the built-in functionality of the TineMCE editor, which uses the plugin for Wordpress forums - wpForo. I want to do this using the free plugins provided by your site. The plugin files are located in their own folders along the path wp-include\js\tinymce\plugins, where the plugin.js file is located. Need to create a folder with the name of the plugin, place the plugin.js file and activate the plugin in the theme's function.php:
add_filter( 'wpforo_editor_settings', function( $settings ){
if ( empty( $settings['tinymce'] ) || ! is_array( $settings['tinymce'] ) )
$settings['tinymce'] = [];
$settings['plugins'] = 'compat3x,fullscreen,hr,paste,textcolor,lists,charmap, image';
$settings['tinymce']['toolbar1'] = 'fontsizeselect,fontselect,bold,italic,underline,strikethrough,forecolor,backcolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,subscript,superscript,outdent,indent,link,unlink,blockquote,wpf_spoil,undo,redo,pastetext,source_code,fullscreencut,removeformat,table,insertdatetime,charmap,styleselect,searchreplace,anchor,codesample,emoticons, wordcount,image';
return $settings;
});
Question. Where can I find plugin.js for the plugin I want to install? Perhaps there is another installation option?
affected page: https://www.tiny.cloud/docs/plugins/opensource/codesample/