- OSU Drupal 8 Overview
- Technical Manual
- Working with Content
- Working with Structure
- Working with Appearance
- Working with Configuration
- Working with People
- Working with Groups
- Advanced Topics
This Entity Browser is going to be used in the CKEditor toolbar. Since we can never be sure what a user wants to upload and embed into the text editor, we're going to add a few different widgets to it to handle the different types of media that a user will commonly want to embed: images, documents, and video.
In the screen that appears, complete the following:
Label text box = enter a name for your entity browser - a machine name will be auto-generated.
Display Plugin select box = select iFrame (note that at the time of this documentation the Modal option was buggy).
Widget Selector Plugin select box = select Tabs.
Selection Display Plugin select box = select No Selection Display.
Click the Next button.
The next screen controls the display of the Entity Browser.
Width of the iFrame text box = 650 (units are pixels).
Height of the iFrame select box = 500 (units are pixels).
Link Text text field = change to Select Media.
Auto Open Entity Browser checkbox = checked.
Click the Next button.
On the Widgets screen, the first widget that we'll add will be to handle all of the assets in our Media Library. To do this, we need to make use of the Entity Browser View that we made previously.
Add Widget Plugin select box = choose View
A group of fields will appear
Now to configure the fields:
Label text box = Upload Images(s).
Submit Button Text text field = Select Image(s).
Upload Location field = is autofilled with tokens - leave this as is.
Dropzone Drag-n-Drop Zone Text text field = leave as is.
Maximum Size of Files select field = adjust as necessary - we leave ours pretty high at 128 MB.
Allowed File Extensions text field = we have jpg jpeg gif and png - add or remove as you see fit.
Media Type select box = Image.
Form Mode select box = Default.
Now to configure the fields:
Label text box = Upload Document(s).
Submit Button Text text field = Select Document(s).
Upload Location field = is autofilled with tokens - leave this as is.
Dropzone Drag-n-Drop Zone Text text field = leave as is.
Maximum Size of Files select field = adjust as necessary - we leave ours pretty high at 128 MB.
Allowed File Extensions text field = we have txt doc docx xls xlsx pdf ppt pptx odt ods odp - add or remove as you see fit.
Media Type select box = File.
Form Mode select box = Default.