Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with page plugins/opensource/codesample.md Installing plugins in TinyMCE. #3038

Open
adDooUA opened this issue Jan 7, 2024 · 0 comments

Comments

@adDooUA
Copy link

adDooUA commented Jan 7, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant