如何使用 Php,Javascript 从 tinyMCE 编辑器获取 html 代码 [英] How to get the html code from tinyMCE editor using Php,Javascript
本文介绍了如何使用 Php,Javascript 从 tinyMCE 编辑器获取 html 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 tinyMCE 的初学者...
I am the tinyMCE beginer...
我在浏览器中显示tinyMCE编辑器,并可以将样式添加到textarea内容中
i display the tinyMCE editot in browser and make able to add the style to the textarea content
如何使用 Php、Javascript 从 tinyMCE 编辑器获取 html 代码...
How to get the html code from tinyMCE editor using Php,Javascript...
推荐答案
您可以使用
tinymce.activeEditor.getContent()
或者如果您知道您的编辑器 ID
or if you know your editor id
tinymce.get('my_editor_id').getContent();
这篇关于如何使用 Php,Javascript 从 tinyMCE 编辑器获取 html 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文