如何在ASP.NET 3.5中获取和设置CLEDITOR WYSIWYG HTML Editor的值 [英] How to get and set value of CLEDITOR WYSIWYG HTML Editor in ASP.NET 3.5
问题描述
嘿朋友
我想在我的asp.net程序中使用CLEDITOR。我只想知道如何获取编辑器内容
以便在数据库中保存,如何将数据从数据库设置为编辑/
获取编辑器内容和设置编辑器内容。
http://premiumsoftware.net/CLEditor [ ^ ]
任何人都可以帮助我。
谢谢
JYOTIRMOY
Hey friends
I want to use CLEDITOR in my asp.net program. I just want to know how to get the editor content
for saving in the database and how can I set the data from database to Editor/
GET EDITOR CONTENT AND SET EDITOR CONTENT.
http://premiumsoftware.net/CLEditor[^]
Can anyone help me please.
Thank you
JYOTIRMOY
推荐答案
<html>
<head>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.cleditor.min.js"></script>
<script type="text/javascript">
( document )。ready( function (){
(document).ready(function () {
( #input)。cleditor(); });
< / script >
< / head >
< body >
< textarea id = < span class =code-keyword> input name = 输入 runat = 服务器 > ; < / textarea >
< / body > ;
< / html >
("#input").cleditor(); }); </script> </head> <body> <textarea id="input" name="input" runat="server"></textarea> </body> </html>
在后面的代码中访问textarea id
input.Value
&保存在数据库中从数据库中获取数据时执行相同的过程。
access textarea id in code behind as
input.Value
& save in database & same process do when fetching data from database.
这篇关于如何在ASP.NET 3.5中获取和设置CLEDITOR WYSIWYG HTML Editor的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!