Can't add Javascript in Restaurant Description.

More
8 years 8 months ago #3547 by Quantility s.r.l.
We need to add widgets like facebook and tripadvisor review in the description (your plugin don't have custom fields) but the editor remove all JS script code, url, etc. I have just checked editor and joomla settings about text filters, but all is ok. (we can add easily code to out article).

Maybe your component has another filter for restaurant descriptions?

Thanks!

Please Log in to join the conversation.

More
8 years 8 months ago #3548 by Daniel
Hello,
SAFEHTML filter is applied in editor filed. To change it to 'RAW' you need to update filter attribute in editor field of the following XML files:

ROOT/administrator/components/com_vrestaurants/models/forms/restaurant.xml

ROOT/components/com_vrestaurants/models/forms/addrestaurant.xml

Thanks
Daniel

Please Log in to join the conversation.

More
8 years 8 months ago #3559 by Quantility s.r.l.
Thanks, it works ;-)

I think could be an improvement to add a choice in configuration for enabling SAFEHTML in Frontend and or in backend. Typically in Backend only who have access to administration can add other code.

Please Log in to join the conversation.

More
8 years 8 months ago #3561 by Daniel
Hello,
Thanks for the valuable suggestion, It will be considered in next release :)

Thanks
Daniel

Please Log in to join the conversation.

Cron Job Starts