ueditor 生成html页面,并且在目录下生成html文件
如题,不知道有人用过ueditor没有,我要讲编辑器中的内容,获取来,生成一个html5的页面,保存在制定的目录下。--------------------编程问答--------------------
哦 --------------------编程问答-------------------- 有弄过么 --------------------编程问答-------------------- 没有用过,不是我提供一个思路,
将编辑器中的文件存入数据库中,然后再html5页面加载数据库中的文件,在html5页面中定义一个div,div.innerhtml=数据库中的文件 --------------------编程问答-------------------- 首先获取内容 你肯定会的 是吧..
比如 内容是
string content="<div>this is test</div>";
然后 你手动填写网站的html body
比如
--------------------编程问答--------------------
string content="<div>this is test</div>";
string html="<html>"
html+="<body>";
html+=content;
html+="</body>";
html+="</html>";
File.WriteAllText("xxxx.html",html);
首先获取内容 你肯定会的 是吧..
比如 内容是
string content="<div>this is test</div>";
然后 你手动填写网站的html body
比如
string content="<div>this is test</div>";
string html="<html>"
html+="<body>";
html+=content;
html+="</body>";
html+="</html>";
File.WriteAllText("xxxx.html",html);
已经实现,在ueditor的官方api中,尝试使用getallhtml()《就是获取编辑器的html内容失败》,后,采取outhtml取得了其中Body内的标签及值,最后,拼接生成。
不过还是谢谢楼上各位。
补充:.NET技术 , ASP.NET