Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@inherits UmbracoViewPage<Form>
@{ Layout = null; }
<script src="/umbraco/lib/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: '.textareaRTE',
branding: false,
menubar: false,
plugins: 'image imagetools bbcode emoticons table paste',
toolbar: 'undo redo | styleselect | bold italic | alignleft'
+ 'aligncenter alignright alignjustify | '
+ 'bullist numlist outdent indent | link image',
style_formats: [
{
title: 'Headings', items: [
{ title: 'Heading 1', format: 'h1' },
{ title: 'Heading 2', format: 'h2' },
{ title: 'Heading 3', format: 'h3' },
{ title: 'Heading 4', format: 'h4' },
{ title: 'Heading 5', format: 'h5' },
{ title: 'Heading 6', format: 'h6' }
]
},
{
title: 'Inline', items: [
{ title: 'Bold', format: 'bold' },
{ title: 'Italic', format: 'italic' },
{ title: 'Underline', format: 'underline' },
{ title: 'Strikethrough', format: 'strikethrough' },
{ title: 'Superscript', format: 'superscript' },
{ title: 'Subscript', format: 'subscript' },
{ title: 'Code', format: 'code' }
]
},
{
title: 'Blocks', items: [
{ title: 'Paragraph', format: 'p' },
{ title: 'Blockquote', format: 'blockquote' },
{ title: 'Div', format: 'div' },
{ title: 'Pre', format: 'pre' }
]
}]
});
</script>
<div class="comp c-form">
<div class="wrapper">
<h3>@Model.TitleText</h3>
@if (Model.HasValue("formPicker"))
{
@Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Model.FormPicker.ToString() })}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment