volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Htmleditor in Online Center Gadget

I'm creating a "Create a new newspage"-gadget and want to implement a wysiwyg for the MainBody-property (XhtmlString).

When I use:

<%= Html.EditorFor(x => x.MainBody) %>

it only shows an a standard text-input, no textarea and no tinyMCE-editor.

Do I have to create a new editor or how can I hook up EPi's editor to the property?

My code is as follows:

    <% Html.BeginGadgetForm("Save"); %>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label>
                    Rubrik</label>
            <%= Html.EditorFor(x => x.Headline) %>
                
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label>
                    Nyhetsdatum</label>
                <%= Html.EditorFor(x => x.NewsDate) %>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label>
                    Brödtext</label>
                <%= Html.EditorFor(x => x.MainBody) %>
            </div>
        </div>
    </div>
    <%= Html.AcceptButton() %>
    
    <%= Html.CancelButton(null, new { action="someview"})%>
    <% Html.EndForm(); %>
#86924
Jun 04, 2014 12:24

Maybe this link will help - http://stackoverflow.com/questions/22527120/tinymce-on-gadget-of-episerver

#87487
Jun 13, 2014 18:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.