Displaying html code in Cornerstone

Hello, I am trying to display some simple HTML code to allow our readers to copy the code for sharing/embedding an image on their own site. Figured this would be a fairly common thing but can’t find many relevant topics on Apex.

I know the standard WordPress editor allows you to do this but what is the best method to do this within cornerstone?

Thanks!

Hello Ryan,

Thanks for writing in!

You can use the classic code snippets plugin in Cornerstone to display code snippets. Here’s a screencast that you can take a look.

Thanks.

1 Like

Awesome! that works! I had tried that element but in the editor it was processing the code vs displaying the code itself… but once I save and load the page i see that it is working as desired.

Thanks!

Glad to hear that. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.