buddypress-docs icon indicating copy to clipboard operation
buddypress-docs copied to clipboard

Solution for adding inline images

Open Jon007 opened this issue 7 years ago • 3 comments

Would you like to allow the users add images inline direct from the MCE?

Here's one solution:

  • install the plugin Image Upload for BBPress
  • add this line of code, to bp-custom.php or wherever most suitable for your situation:
/*enable inline image upload for BuddyPress docs*/
add_filter('bp_docs_wp_editor_args', 'hm_bbpiu_modify_editor', 9999);

(you'll need to have bbPress activated as well as the Image Upload for BBPress is checking for this) Enjoy.

Jon007 avatar May 16 '17 00:05 Jon007

Thanks for this - it's a feature that I would like to add in the future.

boonebgorges avatar Nov 15 '17 04:11 boonebgorges

Hi @Jon007 and @boonebgorges, Thank you so much for sharing this. It works on my localhost with the following warning, however this solution doesn't work at all on our live hosting (private AWS). How can I solve this? Being able to add inline images is a very important feature for us and without this we can not use Buddypress Docs for our website. image

sara-mansouri avatar May 31 '18 00:05 sara-mansouri

I found another plugin that works for adding images: TinyMCE Advanced

sara-mansouri avatar May 31 '18 01:05 sara-mansouri