You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#105133 type="mediajce" display .js and .css

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by filterVERLAG on Monday, 24 August 2020 10:28 BST

filterVERLAG
Hey Ryan, I´m working on a system plugin to load custom css and js files in a subform... and merge them afterwards to a single file...

I added type="mediajce" to select this files and also added js and css to allowed files-list. Is that possible to display these types or not?

Cheers, Milos

Ryan
I added type="mediajce" to select this files and also added js and css to allowed files-list. Is that possible to display these types or not?


I'm not quite sure what you are trying to do here? Can you explain further?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

filterVERLAG
Good morning, I want to be able to choose .js and .css files via type="mediajce" instead of typing the file-URL by hand.

Ryan
Are you referring to css and js files for the editor, or for the MediaJCE field?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

filterVERLAG
No I added type="mediajce" to a plug-in that I work on and I want to be able to choose .js and .css files with mediajce... I atteached a screenshot.

Attachments

Ryan
In you xml file, add mediatype="css,js" for the mediajce field, eg:

<field
type="mediajce"
name="files"
mediatype="css,js"
/>

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

filterVERLAG
Perfect - "mediatype="css,js"" did the trick. Thanks!