javascript - How to print html response (tinymce) in x-editable -
Using X-editable and tinyzes to edit the field, though the return value is showing HTML code (< / P> etc.), this is fine when reloading the page.
Example shown when saving the area;
& lt; P & gt; This is a test response & lt; / P & gt; & Lt; P & gt; & Nbsp; & Lt; / P & gt; (instead of)
This is a test response Editability code: < Pre> $ ('. Editable'). Editable ('option', 'valid', function (v) {if (this.dataset.type == 'textarea') {return {newValue: tinyMCE.activeEditor. Content (loop}}}}}; This is an editable field:
<% = editable @article ,: intro, url: article_update_path (@article), type: ' Textarea ', onblur:' ignore '% & gt; I want to show "html-output" instead of the html code.
Comments
Post a Comment