Marikina, Metro Manila, Philippines
Tel: (+63 2) 7625-6994 | (+63 2) 8632-1748
Mobile: (+63 2) 945 217-3344
Marikina, Metro Manila, Philippines
Tel: (+63 2) 7625-6994 | (+63 2) 8632-1748
Mobile: (+63 2) 945 217-3344
By default, the text formatting for Drupal has internal controls for security. Text formats define how text is filtered for output and how HTML tags and other text is displayed, replaced, or removed. Please take note: improper text format configuration is a security risk. Basic text format is normally reserved for non-admins only, while the Full text format should be reserved for full administrators of the website who can use unrestricted tags including iframe tags.
Therefore, when embedding iframes such as Google Maps or YouTube videos, one should switch to Full HTML, toggle to source code view then paste and save the embed code.
To assign the same permissions and allowed html tags this time to the Basic Text formatting, for example, you wish to provide to your non-full administrators like publishers and encoders. We need to allow iframe tag in the Basic text formatting. This text format setting has an enable filter by default: Limit allowed HTML tags and correct faulty HTML, again for security purposes. To override the iframe code and tag insertion:
If for some reason, your Drupal 8 setup is still stripping your iframe tags and code (we have experienced one template issue which strips the code from the frontend only, while iframe is visible from the backend), you may wish to try the following modules which helped us with the issue:
Image banner credit: Technology photo created by creativeart - www.freepik.com
Leave a Comment
All fields with * are required.