How To Call a Widget on a Froala Editor Using Its Shortcode

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000089028-how-to-call-a-widget-on-a-froala-editor-using-its-shortcode

By default, the widgets can't be called on front-end Froala editors for security reasons. 


We have created a workaround to allow supporting widget shortcode to be called on these Froala editors. To accomplish this, please follow the steps specified down below.



1) Enable the Advanced Setting allow_widgets_froala_media_manager (Allow Widget Shortcode In Front-End Text Editor)


To enable this advanced setting, navigate to Settings >> Advanced Setting and search for allow_widgets_froala_media_manager (Allow Widget Shortcode In Front-End Text Editor) and enable it:




2) Select Froala Text Editor -Media Manager Access Option as a Form Field


The next step to accomplish this workaround is to change the form field on an existing Froala editor to be Froala Text Editor -Media Manager Access.


For this example purposes, we will be customizing the default About Me form under Form Manager:




Once in the edit view, identify the existing Froala editor and change its form field to be Froala Text Editor -Media Manager Access:




FROALA Text Editor: Versions And Their Upload Functionalities


Once these two steps are completed, we can copy the shortcode of the preferred widget:




And paste the shortcode copied to the Froala editor:




Now the widget is rendering and displaying in the member profile: