Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Htmleditor in Online Center Gadget

Vote:
 

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
Vote:
 

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.