Skip to content

Html Content Literal

Steve McNiven-Scott edited this page Oct 1, 2020 · 4 revisions

This widget is for the times where you just want un-wysiwyg gimped html, bonus uses the Visual Studio Code monaco editor!

Usage

  • Drop on page, click edit
  • Type raw html

Config options (Advanced settings)

  • UseWrapper: Default(True) - WrapsUnwraps the literal in a div so it's content is stylable "sfContentBlock sfContentLiteral". Reason is you might want to globally style or fix content added by your editors.

Troubleshooting

  • Make sure your webroot has the new 10.2 "AdminApp" folder.
  • If the editor is acting weird:
    • Open /AdminApp/assets/js/monaco-editor/vs
    • Make a new folder called "vs" so it's now /AdminApp/assets/js/monaco-editor/vs/vs
    • Copy everything from /AdminApp/assets/js/monaco-editor/vs/languages into that new vs folder.
    • In some instances it's hunting for the htmlWorker.js in that /vs/vs folder

Clone this wiki locally