Code
The Code block allows you to add HTML, ideal for embedding or producing elements outside the scope of regular blocks. It includes Layout, Interior, and Style options, and a Code button to open the menu for inserting code:
Standard HTML is accepted, including use of <script>, <link>, and <style> tags.
If a <style> tag has an "src" attribute, other code in the tag will be ignored, similar to how browsers would interpret it.
"src" links require the "https" protocol, rather than the unsecured "http".
Up to 10,000 characters can be added per block. If you need more characters, consider using a service like Google Tag Manager.
The Play/Pause toggle allows you to turn real-time playback on the canvas on or off. Turning it on is useful for real-time visual edits, while off is desirable when you wish to limit calls to external resources.
Performance will depend on the quality of the code itself. Always make sure your code comes from trusted sources. Designware cannot guarantee the integrity of your custom code or its impact on your project. Use of external code falls outside the scope of our support services.
Last updated
Was this helpful?