Skip Navigation

[Resolved] How to enable Media Upload in WYSIWYG

This support ticket is created 2 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by Luo Yang 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2559327

Hey,

When using Access Control is there a way to enable Media Upload for WYSIWYG for specific users? I have tried Googling the issue, and has found no surefire way to make it work

#2559925

Hello,

In frontend, it is possible with Toolset Forms + Access plugins, for example, you can follow our document to enable access for that user roles for specific post forms:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/

See below test site:
Login URL: hidden link
Post form with custom WYSIWYG field:
hidden link
Access setting for above post form:
hidden link
enable option "Use any Media Library file when adding files to front-end Post Forms" for user role "Subscriber"

Login as a Subscriber user, username/password: test1/test1
test above post form in frontend:
hidden link
It works fine, I can see the "Add Media" button correctly.

#2559955

Hi,

I have installed the two plugins, but I cannot get it to work still. Even when checking off " Use any Media Library file when adding files to front-end Post Forms", "Delete Others Posts using Toolset Forms" and "Delete Own Posts using Toolset Forms" there is no possibility for the user to add images to the WYSIWYG's. Am I missing something?

#2559969

In the post form:
hidden link
section "Settings", you need to enable below two options:
- Include the Add Media button in the rich text editors from this form
- Use the WordPress Media Library manager for image, video, audio, or file fields

#2559975

- When looking at it more thoroughly, I see you create a new WYSIWYG that users can upload images to. It is not possible to activate this feature on already made WYSIWYGs throughout the backend?

Let's say we have a page with a lot of recipes. These recipes are already made, but within the WYSIWYG editor the users of different roles need to insert an image or a video - to do this I still need to set up a Post Form, or how does it work? I cannot figure out how to enable it on existing editors

#2560011
wysiwyg.png

Update - If I create a new Post I can add / edit images in the WYSIWYG. I cannot, however, do it in the existing ones no matter how I set it up. I have sent an image of the way I tried to set it up, in order to be able to insert media files on a custom post type. This does not work sadly

#2560037
uploadfiles.png

I think I found the issue - and it was not even related to Forms. I've forgotten to give permission to the user within Toolset, I have attatched an image to show where (maybe you can use my minor stupidity another time, if someone else has the same issue). Thanks for the help though, I think everything works as it should now!

#2560057
hidethese.png

I do have one last question, I hope it is okay. Is there any way to hide these from the user? (the ones in the image)

#2560525

You can disable Toolset buttons with filter hook "toolset_editor_add_form_buttons", for example, add below codes into your theme file "functions.php":

add_filter( 'toolset_editor_add_form_buttons', '__return_false' );