Introduction
I am going to explain how to create html editor control for asp.net web pages with light weight jquery plugin. Here is the example.
I am going to explain how to create html editor control for asp.net web pages with light weight jquery plugin. Here is the example.
Step 1
Create new visual studio project
Create new visual studio project
- <script src=jquery-1.3.2.js" type="text/javascript"></script>
- <script src="Html_editor/scripts/jHtmlArea-0.8.min.js" type="text/javascript"></script>
- <link href="Html_editor/scripts/jHtmlArea.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- $(function () {
- $("textarea").htmlarea(); // Initialize jHtmlArea's with all default values
- });
- </script>
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendEmail.aspx.cs" Inherits="AdventureSports.Public.SendEmail" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- <script src="../HTML_Editor/scripts/jquery-1.3.2.js" type="text/javascript"></script>
- <script src="../HTML_Editor/scripts/jHtmlArea-0.8.min.js" type="text/javascript"></script>
- <link href="../HTML_Editor/style/jHtmlArea.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- $(function () {
- $("textarea").htmlarea(); // Initialize jHtmlArea's with all default values
- //window.setTimeout(function() { $("form").submit(); }, 3000);
- });
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <textarea runat="server" id="txtText" cols="50" rows="15"></textarea>
- </div>
- </form>
- </body>
- </html>
This is the procedure to implement a lightweight HTML editor in your web pages in a simple manner.
Thank you!
Thank you!
No comments:
Post a Comment