tinymce导出HTML,TinyMCE内联模式显示原始HTML而不是格式化输出(TinyMCE inline mode showing raw HTML rather than formatted...

I'm attempting to use the inline mode of TinyMCE with an MVC 5 page. I created the HTML content using a TinyMCE editor in the standard mode as follows:

KOD39.png

That data is saved back to the database and then retrieved and displayed on a different page. On that page I've set up an instance of TinyMCE to display that content in the inline view as follows:

@Model.LongDescription

tinymce.init({

selector: '#myeditablediv',

entity_encoding: 'raw',

inline: true

});

I'd expected that to show the formatted HTML in a clickable TinyMCE control with no toolbars, but instead it's just showing the raw HTML:

SVHra.png

Clicking on the control does switch it into edit mode and the toolbar appears etc:

7pWcD.png

so it looks like I'm not passing the data to be rendered to the control correctly when setting up the div with

@Model.LongDescription
?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值