forum

Home / DeveloperSection / Forums / How to decode html value of editor in mvc?

How to decode html value of editor in mvc?

Anonymous User 1172 16-Mar-2018

Hi, 

I want to decode editor value in jquery. Please give me some idea to achieve this task.

The code is as follows:

<div class="form-group">
            <label for="description">Description</label>
            @Html.TextAreaFor(x => x.Content, new { @style = "min-width: 100%;max-width: 100%", rows = "10", @class = "DescriptionEditor" })
</div>
$('#Content').summernote({
          height: 280,           callbacks: {                onPaste: function (e) {                     var bufferText = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('Text');                     e.preventDefault();                     document.execCommand('insertText', false, bufferText);                 }             }  });

Updated on 16-Mar-2018
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By