Commit fb7dc3b2 authored by Lingnan Wu's avatar Lingnan Wu

Delete the xinha editor and use the Html box editor to replace it

parent 2fa73245
----------- HtmlBox -----------
| Copyright@2008 Remiya Solutions |
-------------------------------
========================================================
| Version 1.4 |
========================================================
| Release Date: 20.05.2008 |
| |
| New features: |
| - Added Cut, Copy, Paste support for IE, and help |
| message for the other browsers. |
| - Ajax support: Post and Get custom Success and Error|
| messages possible |
========================================================
| Version 1.6 |
========================================================
| Developed Date: 08.06.2008 (Not released) |
| |
| New features: |
| - Format support (H1..H6,P,PRE,Indented paragraph) |
| - Paragraph button added |
========================================================
| Version 1.8 |
========================================================
| Developed Date: 11.06.2008 (Not released) |
| |
| New features: |
| - Remove format button |
| - Strip tags button |
| - Colors as plug-in for less space |
========================================================
| Version 2.0 |
========================================================
| Release Date: 14.06.2008 |
| |
| New features: |
| - Code buttons (ASP,C,C++,Java,JavaScript,PHP,VB,XML)|
| - Custom CSS stylesheet support |
========================================================
| Version 2.2 |
========================================================
| Release Date: 16.06.2008 |
| |
| New features: |
| - Unlink support |
========================================================
| Version 2.4 |
========================================================
| Release Date: 18.07.2008 |
| |
| New features: |
| - Custom CSS stylesheet support (Not Safari) |
| - Quote button |
| - User defined styles supported (as plug-in) |
========================================================
| Version 2.5 |
========================================================
| Release Date: 05.10.2008 |
| |
| New features: |
| - A bug removed when used with latest JQuery pack |
========================================================
| Version 2.6 |
========================================================
| Release Date: 05.10.2008 |
| |
| New features: |
| - Added remove function to remove the HtmlBox |
| instance from the DOM and global space |
| - Added change function to fire when text in the |
| HtmlBox instance is changed |
========================================================
| Version 2.8 |
========================================================
| Release Date: 19.01.2009 |
| |
| New features: |
| - Source syntax made external(as plug-in) |
| - Added idir function to set an user-defined image |
| directory |
========================================================
| Version 3.2 |
========================================================
| Release Date: 29.03.2009 |
| |
| New features: |
| - The entire source code has been redone. Now is |
| more stable, easier to use and closer to the |
| JQuery traditional usage |
| - Advanced Undo Redo capabilities are added |
========================================================
| Version 4.0 |
========================================================
| Release Date: 15.10.2009 |
| |
| New features: |
| - Skins support is added out of the box. |
| - Custom icon sets are supported |
| - Custom tools can be specified |
| - The user manual has been updated |
| - Tested with Chrome |
| - Source syntax made external(as plug-in) |
========================================================
| Version 4.0.3 |
========================================================
| Release Date: 23.02.2011 |
| |
| Removed bugs: |
| - Undo Redo manager was not working when minimized |
========================================================
| Version 4.0.3 |
========================================================
| Release Date: 23.02.2011 |
| |
| Removed bugs: |
| - Method set_text was causing problems with IE |
========================================================
TODO (for the Pro version):
2. Smiles and Image gallery support
3. Advanced color picker, image and hyperlink dialogs
\ No newline at end of file
The MIT License
Copyright (c) 2007-2011 Remiya Solutions (http://remiya.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
HtmlBox ver. 4.0.3
Copyright (c) 2007-2011 Remiya Solutions
Website: http://remiya.com
HtmlBox 4.0.3 is a Cross-browser interactive open-source
HTML textarea built on top of the jQuery library.
Tested with Mozilla Firefox, Inrernet Explorer, Opera,
Netscape, Chrome and Safari.
HtmlBox 4.0.3 is distributed under the MIT license
(included in the package). This means you can use it for
any purpose (even commercial) and include it in any
type of software.
A link back (credit) to the HtmlBox website will be
nice, but it is not obligatory in any way and is
subject to free will and desire to help its further
evolution.
For usage instructions on how to use this product see
the supplied demo's source code and look in the online
manual of HtmlBox at http://remiya.com.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>HtmlBox - Demo Default Icons</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.codify.min.js"></script>
<script type="text/javascript" src="htmlbox.colors.js"></script>
<script type="text/javascript" src="htmlbox.styles.js"></script>
<script type="text/javascript" src="htmlbox.syntax.js"></script>
<script type="text/javascript" src="htmlbox.undoredomanager.js"></script>
<script type="text/javascript" src="htmlbox.min.js"></script>
</head>
<body>
<h2>Default Skin</h2>
<textarea id="htmlbox_icon_set_default">This HtmlBox uses the default Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_icon_set_default = $("#htmlbox_icon_set_default").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","separator","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.gif",tooltip:"New",command:function(){hb_icon_set_default.set_text("<p></p>");}},
{icon:"open.gif",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.gif",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"default",
skin:"default"
});
</script>
<h2>Blue Skin</h2>
<textarea id="htmlbox_icon_set_blue">This HtmlBox uses the default Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_icon_set_blue = $("#htmlbox_icon_set_blue").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.gif",tooltip:"New",command:function(){hb_icon_set_blue.set_text("<p></p>");}},
{icon:"open.gif",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.gif",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"default",
skin:"blue"
});
</script>
<h2>Green Skin</h2>
<textarea id="htmlbox_icon_set_green">This HtmlBox uses the default Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_icon_set_green = $("#htmlbox_icon_set_green").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.gif",tooltip:"New",command:function(){hb_icon_set_green.set_text("<p></p>");}},
{icon:"open.gif",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.gif",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"default",
skin:"green"
});
</script>
<h2>Red Skin</h2>
<textarea id="htmlbox_icon_set_red">This HtmlBox uses the default Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_icon_set_red = $("#htmlbox_icon_set_red").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.gif",tooltip:"New",command:function(){hb_icon_set_red.set_text("<p></p>");}},
{icon:"open.gif",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.gif",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"default",
skin:"red"
});
</script>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>HtmlBox - Demo Silk Icon Set</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.codify.min.js"></script>
<script type="text/javascript" src="htmlbox.colors.js"></script>
<script type="text/javascript" src="htmlbox.styles.js"></script>
<script type="text/javascript" src="htmlbox.syntax.js"></script>
<script type="text/javascript" src="htmlbox.undoredomanager.js"></script>
<script type="text/javascript" src="htmlbox.min.js"></script>
</head>
<body>
<h2>Default Skin</h2>
<textarea id="htmlbox_silk_icon_set_default">This HtmlBox uses the wonderful Silk Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_silk_icon_set_default = $("#htmlbox_silk_icon_set_default").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.png",tooltip:"New",command:function(){hb_silk_icon_set_blue.set_text("<p></p>");}},
{icon:"open.png",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.png",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"silk",
skin:"default"
});
</script>
<h2>Blue Skin</h2>
<textarea id="htmlbox_silk_icon_set_blue">This HtmlBox uses the wonderful Silk Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_silk_icon_set_blue = $("#htmlbox_silk_icon_set_blue").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.png",tooltip:"New",command:function(){hb_silk_icon_set_blue.set_text("<p></p>");}},
{icon:"open.png",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.png",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"silk",
skin:"blue"
});
</script>
<h2>Green Skin</h2>
<textarea id="htmlbox_oo_icon_set_green">This HtmlBox uses the wonderful Silk Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_silk_icon_set_green = $("#htmlbox_oo_icon_set_green").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.png",tooltip:"New",command:function(){hb_silk_icon_set_green.set_text("<p></p>");}},
{icon:"open.png",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.png",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"silk",
skin:"green"
});
</script>
<h2>Red Skin</h2>
<textarea id="htmlbox_silk_icon_set_red">This HtmlBox uses the wonderful Silk Icon Set</textarea>
<script language="Javascript" type="text/javascript">
var hb_silk_icon_set_red = $("#htmlbox_silk_icon_set_red").css("height","100").css("width","600").htmlbox({
toolbars:[
["cut","copy","paste","separator_dots","bold","italic","underline","strike","sub","sup","separator_dots","undo","redo","separator_dots",
"left","center","right","justify","separator_dots","ol","ul","indent","outdent","separator_dots","link","unlink","image"],
["code","removeformat","striptags","separator_dots","quote","paragraph","hr","separator_dots",
{icon:"new.png",tooltip:"New",command:function(){hb_silk_icon_set_red.set_text("<p></p>");}},
{icon:"open.png",tooltip:"Open",command:function(){alert('Open')}},
{icon:"save.png",tooltip:"Save",command:function(){alert('Save')}}
]
],
icons:"silk",
skin:"red"
});
</script>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>HtmlBox 4.0 - Demonstration Full</title>
<script language="Javascript" src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script language="Javascript" src="htmlbox.colors.js" type="text/javascript"></script>
<script language="Javascript" src="htmlbox.styles.js" type="text/javascript"></script>
<script language="Javascript" src="htmlbox.syntax.js" type="text/javascript"></script>
<script language="Javascript" src="xhtml.js" type="text/javascript"></script>
<script language="Javascript" src="htmlbox.min.js" type="text/javascript"></script>
</head>
<body>
<textarea id='ha'></textarea>
<script language="Javascript" type="text/javascript">
$("#ha").css("height","100%").css("width","100%").htmlbox({
toolbars:[
[
// Cut, Copy, Paste
"separator","cut","copy","paste",
// Undo, Redo
"separator","undo","redo",
// Bold, Italic, Underline, Strikethrough, Sup, Sub
"separator","bold","italic","underline","strike","sup","sub",
// Left, Right, Center, Justify
"separator","justify","left","center","right",
// Ordered List, Unordered List, Indent, Outdent
"separator","ol","ul","indent","outdent",
// Hyperlink, Remove Hyperlink, Image
"separator","link","unlink","image"
],
[// Show code
"separator","code",
// Formats, Font size, Font family, Font color, Font, Background
"separator","formats","fontsize","fontfamily",
"separator","fontcolor","highlight",
],
[
//Strip tags
"separator","removeformat","striptags","hr","paragraph",
// Styles, Source code syntax buttons
"separator","quote","styles","syntax"
]
],
skin:"blue"
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>HtmlBox 4.0 - Minimalistic Demonstration</title>
<script language="Javascript" src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script language="Javascript" src="htmlbox.min.js" type="text/javascript"></script>
</head>
<body>
<textarea id='hb'></textarea>
<script language="Javascript" type="text/javascript">
var hb = $("#hb").htmlbox({
buttons:[
["separator_dots","bold","italic","underline"]
],
icons:"default",
skin:"green"
});
</script>
</body>
</html>
\ No newline at end of file
document.htmlbox_colors=function(){
return ['white', 'FFFFFF', 'ivory', 'FFFFF0', 'lightyellow', 'FFFFE0', 'yellow', 'FFFF00', 'snow', 'FFFAFA', 'floralwhite', 'FFFAF0', 'lemonchiffon', 'FFFACD', 'cornsilk', 'FFF8DC', 'seashell', 'FFF5EE', 'lavenderblush', 'FFF0F5', 'papayawhip', 'FFEFD5', 'blanchedalmond', 'FFEBCD', 'mistyrose', 'F FE4E1', 'bisque', 'FFE4C4', 'moccasin', 'FFE4B5', 'navajowhite', 'FFDEAD', 'peachpuff', 'FFDAB9', 'gold', 'FFD700', 'pink', 'FFC0CB', 'lightpink ', 'FFB6C1', 'orange', 'FFA500', 'lightsalmon', 'FFA07A', 'darkorange', 'FF8C00', 'coral', 'FF7F50', 'hotpink', 'FF69B4', 'tomato', 'FF6347', 'orangered', 'FF4500', 'deeppink', 'FF1493', 'magenta', 'FF00FF', 'fuchsia', 'FF00FF', 'red', 'FF0000', 'oldlace', 'FDF5E6', 'lightgoldenrodyellow', 'FAFAD2', ' linen', 'FAF0E6', 'antiquewhite', 'FAEBD7', 'salmon', 'FA8072', 'ghostwhite', 'F8F8FF', 'mintcream', 'F5FFFA', 'whitesmoke', 'F5F5F5', 'beige', ' F5F5DC', 'wheat', 'F5DEB3', 'sandybrown', 'F4A460', 'azure', 'F0FFFF', 'honeydew', 'F0FFF0', 'aliceblue', 'F0F8FF', 'khaki', 'F0E68C', 'lightcoral ', 'F08080', 'palegoldenrod', 'EEE8AA', 'violet', 'EE82EE', 'darksalmon', 'E9967A', 'lavender', 'E6E6FA', 'lightcyan', 'E0FFFF', 'burlywood', 'DEB887', 'plum', 'DDA0DD', 'gainsboro', 'DCDCDC', 'crimson', 'DC143C', 'palevioletred', 'DB7093', 'goldenrod', 'DAA520', 'orchid', 'DA70D6', 'thistle', 'D8BFD8', 'lightgrey', 'D3D3D3', 'tan', 'D2B48C', 'chocolate', 'D2691E', 'peru', 'CD853F', 'indianred', 'CD5C5C', 'mediumvioletred', 'C71585', 'silver', 'C0C0C0', 'darkkhaki', 'BDB76B', 'rosybrown', 'BC8F8F', 'mediumorchid', 'BA55D3', 'darkgoldenrod', 'B8860B', 'firebrick', 'B22222', 'powderblue', 'B0E0E6', 'lightsteelblue', 'B0C4DE', 'paleturquoise', 'AFEEEE', 'greenyellow', 'ADFF2F', 'lightblue', 'ADD8E6', 'darkgray', 'A9A9A9', 'brown', 'A52A2A', 'sienna', "A0522D", 'yellowgreen', "9ACD32", 'darkorchid', '9932CC', 'palegreen', '98FB98', 'darkviolet', '9400D3', 'mediumpurple', '9370DB', 'lightgreen', '90EE90', 'darkseagreen', '8FBC8F', 'saddlebrown', '8B4513', 'darkmagenta', '8B008B', 'darkred', '8B0000', 'blueviolet', '8A2BE2', 'lightskyblue', '87CEFA', 'skyblue', '87CEEB', 'gray', '808080', 'olive', '808000', 'purple', '800080', 'maroon', '800000', 'aquamarine', '7FFFD4', 'chartreuse', '7FFF00', 'lawngreen', '7CFC00', 'mediumslateblue', '7B68EE', 'lightslategray', '778899', 'slategray', '708090', 'olivedrab', '6B8E23', 'slateblue', '6A5ACD', 'dimgray', '696969', 'mediumaquamarine', '66CDAA', 'cornflowerblue', '6495ED', 'cadetblue', '5F9EA0', 'darkolivegreen', '556B2F', 'indigo', '4B0082', 'mediumturquoise', '48D1CC', 'darkslateblue', '483D8B', 'steelblue', '4682B4', 'royalblue', '4169E1', 'turquoise', '40E0D0', 'mediumseagreen', '3CB371', 'limegreen', '32CD32', 'darkslategray', '2F4F4F', 'seagreen', '2E8B57', 'forestgreen', '228B22', 'lightseagreen', '20B2AA', 'dodgerblue', '1E90FF', 'midnightblue', '191970', 'cyan', '00FFFF', 'aqua', '00FFFF', 'springgreen', '00FF7F', 'lime', '00FF00', 'mediumspringgreen', '00FA9A', 'darkturquoise', '00CED1', 'deepskyblue', '00BFFF', 'darkcyan', "008B8B", 'teal', "008080", 'green', '008000', 'darkgreen', '006400', 'blue', '0000FF', 'mediumblue', '0000CD', 'darkblue', '00008B', 'navy', '000080', 'black', '000000'];
};
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
document.htmlbox_styles=function(){
return [
[
'Pull Orange - Right',
'<br /><div style="float: right; width: 150px; margin: 10px; padding:5px; background:gold; border:1px solid maroon;color:black;font-family: Arial,Helvetica,Georgia;font-weight:bold;line-height:140%;}">',
'</div><br />'
],
[
'Pull Orange - Left',
'<br /><div style="float: left; width: 150px; margin: 10px; padding:5px; background:gold; border:1px solid maroon;color:black;font-family: Arial,Helvetica,Georgia;font-weight:bold;line-height:140%;}">',
'</div><br />'
],
[
'Curly',
'<br /><table cellspacing="0" cellpadding="0"><tr><td style="border-top:1px solid #b8b8b8;border-left:1px solid #b8b8b8;padding-top:5px;padding-left:5px;">',
'</td><td style="border-top:1px solid #b8b8b8;border-right:1px solid #b8b8b8;font-size:1px;width:21px;height:17px;">&nbsp;</td></tr><tr><td width="*" style="border-bottom:1px solid #b8b8b8;border-left:1px solid #b8b8b8;font-size:1px;">&nbsp;</td><td style="width:21px;height:17px;"><img src="images/corner.gif" style="width:21px;height:17px;"></td></tr></table><br />'
]
];
};
\ No newline at end of file
document.htmlbox_syntax=function(){
return [
[
'Actionscript',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Actionscript Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'ADA',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">ADA Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Applescript',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Applescript Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'ASP',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">ASP Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Basic',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Basic Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'C#',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">C# Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'C++',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">C++ Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'ColdFusion',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">ColdFusion Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'CSS',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;"CSS Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'HTML',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">HTML Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Java',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Java Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'JavaScript',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">JavaScript Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Lisp',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Lisp Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Lua',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Lua Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'MySQL',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">MySQL Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Perl',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Perl Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'PHP',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">PHP Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Python',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Python Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Ruby',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Ruby Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'Scheme',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">Scheme Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'SQL',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">SQL Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'VB.NET',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">VB.NET Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
],
[
'XML',
'<br /><div style="position:relative;top:10px;left:10px;font-size:11px;font-family:verdana;">XML Code</div><div class="asp" contenteditable="true" style="border:1px dashed silver;margin:10px;padding:5px;background:cornsilk;font-family:monospace;font-size:12px;">',
'</div><br />'
]
];
};
\ No newline at end of file
function htmlbox_undo_redo_manager(repeat) {
var r = false;
var d = [];
var p = 0;
this.d = function () {
return d;
};
this.add = function (o) {
if (d[p - 1] == o) return false;
d[p] = o;
p++;
d = d.slice(0, p);
};
this.can_redo = function () {
if (p >= d.length) {
return false;
}
return true;
};
this.can_undo = function () {
if (p < 1) {
return false;
}
return true;
};
this.clear = function () {
d = [];
p = 0;
};
this.undo = function () {
if (p < 1) {
return false;
}
p--;
return d[p - 1];
};
this.redo = function () {
if (p >= d.length) {
return false;
}
p++;
return d[p - 1];
};
}
\ No newline at end of file
This diff is collapsed.
/*
Html2Xhtml : Javascript Mini HTML to XHTML Parser
-------------------------------------------------
Current version: 0.3
Copyright 2006 All rights reserved. Jacob Lee <letsgolee@lycos.co.kr>
Free for non-commercial && commercial use.
*/
function getXHTML(data){return new Html2Xhtml(data).parse()};function Html2Xhtml(data){this.data=data||''};Html2Xhtml.prototype.setHTML=function(data){this.data=data||this.data};Html2Xhtml.prototype.parse=function(){var state=0;var xhtml='';var p=0;var unget=false;var tagname='';var attrname='';var attrval='';var quot='';var data=this.data;var len=data.length;var phpval='';var tagtype=0;var insidepre=false;var codetype='';while(1){if(p>=len&&!unget){return xhtml}if(unget){unget=false}else{var c=data.substr(p++,1)}switch(state){case 0:if(c=='<'){state=1;break}xhtml+=c;break;case 1:if(/[a-zA-Z]/.test(c)){state=2;tagtype=1;tagname=c.toLowerCase();break}if(c=='/'){state=2;tagtype=-1;break}if(c=='!'){if(data.substr(p,2)=='--'){xhtml+='<!--';p+=2;state=9;break}xhtml+='<!';state=10;break}if(c=='?'||c=='%'){codetype=c;state=11;xhtml+='<'+c;break}xhtml+='&lt;';unget=true;state=0;break;case 2:if(Html2Xhtml.isSpaceChar[c]){xhtml+=(!insidepre&&tagtype>0&&Html2Xhtml.hasNLBefore[tagname]&&xhtml.length&&xhtml.substr(xhtml.length-1,1)!='\n'?'\n':'')+(tagtype>0?'<':'</')+tagname;state=3;break}if(c=='/'){xhtml+=(!insidepre&&tagtype>0&&Html2Xhtml.hasNLBefore[tagname]&&xhtml.length&&xhtml.substr(xhtml.length-1,1)!='\n'?'\n':'')+(tagtype>0?'<':'</')+tagname;if(data.substr(p,1)!='>'){state=3;break}state=4;break}if(c=='>'){xhtml+=(!insidepre&&tagtype>0&&Html2Xhtml.hasNLBefore[tagname]&&xhtml.length&&xhtml.substr(xhtml.length-1,1)!='\n'?'\n':'')+(tagtype>0?'<':'</')+tagname;unget=true;state=4;break}tagname+=c.toLowerCase();break;case 3:if(Html2Xhtml.isSpaceChar[c]){break}if(c=='/'){if(data.substr(p,1)!='>'){break}state=4;break}if(c=='>'){unget=true;state=4;break}attrname=c.toLowerCase();attrval='';state=5;break;case 4:xhtml+=(Html2Xhtml.isEmptyTag[tagname]?' />':'>')+(!insidepre&&tagtype<0&&Html2Xhtml.hasNLAfter[tagname]&&p<len&&data.substr(p,1)!='\n'?'\n':'');if(tagtype>0&&Html2Xhtml.dontAnalyzeContent[tagname]){state=13;attrname=attrval=quot='';tagtype=0;break}if(tagname=='pre'){insidepre=!insidepre}state=0;tagname=attrname=attrval=quot='';tagtype=0;break;case 5:if(Html2Xhtml.isSpaceChar[c]){xhtml+=' '+attrname;if(Html2Xhtml.isEmptyAttr[attrname]){xhtml+='="'+attrname+'"'}state=3;break}if(c=='/'){xhtml+=' '+attrname;if(Html2Xhtml.isEmptyAttr[attrname]){xhtml+='="'+attrname+'"'}if(data.substr(p,1)!='>'){state=3;break}state=4;break}if(c=='>'){xhtml+=' '+attrname;if(Html2Xhtml.isEmptyAttr[attrname]){xhtml+='="'+attrname+'"'}unget=true;state=4;break}if(c=='='){xhtml+=' '+attrname+'=';state=6;break}if(c=='"'||c=="'"){attrname+='?'}else{attrname+=c.toLowerCase()}break;case 6:if(Html2Xhtml.isSpaceChar[c]){xhtml+=(Html2Xhtml.isEmptyAttr[attrname]?'"'+attrname+'"':'""');state=3;break}if(c=='>'){xhtml+=(Html2Xhtml.isEmptyAttr[attrname]?'"'+attrname+'"':'""');unget=true;state=4;break}if(c=='/'&&data.substr(p,1)=='>'){xhtml+=(Html2Xhtml.isEmptyAttr[attrname]?'"'+attrname+'"':'""');state=4;break}if(c=='"'||c=="'"){quot=c;state=8;break}attrval=c;state=7;break;case 7:if(Html2Xhtml.isSpaceChar[c]){xhtml+='"'+Html2Xhtml.escapeQuot(attrval,'"')+'"';state=3;break}if(c=='/'&&data.substr(p,1)=='>'){xhtml+='"'+Html2Xhtml.escapeQuot(attrval,'"')+'"';state=4;break}if(c=='>'){unget=true;xhtml+='"'+Html2Xhtml.escapeQuot(attrval,'"')+'"';state=4;break}attrval+=c;break;case 8:if(c==quot){xhtml+='"'+Html2Xhtml.escapeQuot(attrval,'"')+'"';state=3;break}attrval+=c;break;case 9:if(c=='-'&&data.substr(p,2)=='->'){p+=2;xhtml+='-->';state=0;break}xhtml+=c;break;case 10:if(c=='>'){state=0}xhtml+=c;break;case 11:if(c=="'"||c=='"'){quot=c;state=12;break}if(c==codetype&&data.substr(p,1)=='>'){state=0;xhtml+=c+'>';codetype='';p++;break}xhtml+=c;break;case 12:if(c==quot){state=11;xhtml+=quot+Html2Xhtml.escapeQuot(phpval,quot)+quot;phpval=quot='';break}phpval+=c;break;case 13:if(c=='<'&&data.substr(p,tagname.length+1).toLowerCase()=='/'+tagname){unget=true;state=0;tagname='';break}if(tagname=='textarea'){xhtml+=Html2Xhtml.escapeHTMLChar(c)}else{xhtml+=c}break}}return xhtml};Html2Xhtml.escapeQuot=function(str,quot){if(!quot){quot='"'}if(quot=='"'){return str.replace(/"/ig,'\\"')}return str.replace(/'/ig,"\\'")};Html2Xhtml.escapeHTMLChar=function(c){if(c=='&'){return'&amp;'}if(c=='<'){return'&lt;'}if(c=='>'){return'&gt;'}return c};Html2Xhtml.isSpaceChar={' ':1,'\r':1,'\n':1,'\t':1};Html2Xhtml.isEmptyTag={'area':1,'base':1,'basefont':1,'br':1,'hr':1,'img':1,'input':1,'link':1,'meta':1,'param':1};Html2Xhtml.isEmptyAttr={'checked':1,'compact':1,'declare':1,'defer':1,'disabled':1,'ismap':1,'multiple':1,'noresize':1,'nosave':1,'noshade':1,'nowrap':1,'readonly':1,'selected':1};Html2Xhtml.hasNLBefore={'div':1,'p':1,'table':1,'tbody':1,'tr':1,'td':1,'th':1,'title':1,'head':1,'body':1,'script':1,'comment':1,'li':1,'meta':1,'h1':1,'h2':1,'h3':1,'h4':1,'h5':1,'h6':1,'hr':1,'ul':1,'ol':1,'option':1,'link':1};Html2Xhtml.hasNLAfter={'html':1,'head':1,'body':1,'p':1,'th':1,'style':1};Html2Xhtml.dontAnalyzeContent={'textarea':1,'script':1,'style':1};
\ No newline at end of file
textEditor{padding: 20px;}
textEditor{padding: 20;}
content editable { padding:20px;}
div.gadget-action div.front_pad {
font-size: 10px;
}
div.draggable_wrapper {
background-color: #FFFFFF;
}
#gadget_area_wrapper {
margin-top: 0.5em;
}
div#pad-navigation-wrapper {
border: 0 none !important;
}
#pad-navigation-wrapper {
border-bottom: 1px solid #3D6474;
height: 38px;
margin-top: 10px;
width: 96%;
}
/* tabs */
#tabs_switcher {
background: none repeat scroll 0 0 transparent;
border-style: none;
cursor: pointer;
float: left;
font-weight: bold;
margin: 0;
padding-top: 5px;
width: 10%;
}
div#tabs, div#pad-navigation-wrapper div#tabs_switcher.tab {
display: none !important;
}
#tabs {
float: left;
padding-left: 0;
width: 78%;
}
#tabs ul {
list-style: none outside none;
margin: 0;
padding: 0;
width: 100%;
}
li.tab_selected {
background-color: #DAE6F6;
border-bottom: 1px solid #DAE6F6;
font-weight: bold;
}
li.tab {
background-color: #BDD0F0;
border: 1px solid #3D6474;
cursor: pointer;
display: block;
float: left;
font-size: 12px;
height: 24px;
margin-right: 1px;
padding-right: 5px;
}
#tabs li span {
display: block;
float: left;
height: 19px;
padding: 5px 10px 0;
}
div.pad-actions {
float: left;
}
#tabs li span.rename_tab_dialog_image {
background: url("../images/ung/icon_edit.gif") no-repeat scroll 0 0 transparent;
padding-right: 6px;
}
#tabs li span.remove_tab_dialog_image {
background: url("../images/ung/icon_remove.gif") no-repeat scroll 0 0 transparent;
padding-right: 6px;
}
#add_new_tab_dialog_link {
background: none repeat scroll 0 0 transparent;
border-style: none;
cursor: pointer;
display: block;
float: left;
font-weight: bold;
height: 19px;
margin-left: 5px;
padding-left: 5px;
padding-top: 5px;
}
span.clickable_image {
cursor: pointer;
display: block;
float: left;
margin-top: 5px;
}
div#add_new_gadget_link {
border-bottom: 0 none;
padding-top: 5px;
width: 50% !important;
float: right;
font-weight: bold;
height: 20px;
padding-top: 5px;
text-align: right;
}
#add-gadgets {
cursor: pointer;
font-size: 11px;
}
#loading-wrapper {
background-color: #FFFFFF;
left: 50%;
margin-left: -150px;
padding: 7px 0 0;
position: absolute;
text-align: center;
top: 80px;
width: 250px;
z-index: 1000;
}
#loading-wrapper p {
font-size: 90%;
font-weight: bold;
}
div.front_pad div#page_wrapper {
margin: -0.5em 0 0 !important;
}
#page_wrapper {
background-color: inherit;
float: left;
margin: 0.5em 0 0;
padding: 0;
text-align: left;
width: 100%;
}
div.portal-column {
float: left;
margin-right: 3px;
width: 100% !important;
}
div.block {
margin: 1px 1px 3px;
padding: 0;
width: 100%;
}
span.handle, h3.handle {
cursor: move;
}
h3.handle {
background: url("../images/ung/tab_left_selected.png") no-repeat scroll left top transparent;
border-bottom: 1px solid #3D6474;
color: #FFFFFF;
font-size: 14px;
margin: 0;
padding: 0 0 0 10px;
}
/*h3.handle {
background: none repeat scroll 0 0 white !important;
border-bottom: 0 none !important;
color: #222222 !important;
font-size: 13px !important;
}*/
h3.handle span.handle {
background: url("../images/ung/tab_right_selected.png") no-repeat scroll right top transparent;
display: block;
min-height: 20px;
padding: 5px 5px 0 0;
}
/*h3.handle span.handle {
background: none repeat scroll 0 0 white !important;
}*/
a.block-remove {
background-image: url("../images/ung/icon_remove.gif");
}
a.block-edit-form {
background-image: url("../images/ung/icon_edit.png") !important;
}
a.block-minimize {
background-image: url("../images/ung/icon_minimize.png") !important;
}
a.clickable-block {
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
display: block;
float: right;
height: 15px;
margin: 0;
padding: 0;
width: 15px;
}
div.block h3 span.gadget_title {
min-width: 100px;
}
div.edit-form {
-moz-border-bottom-colors: none;
-moz-border-image: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-color: #BDD0F0;
border-color: black;
border-style: solid;
border-width: 0 1px 1px;
overflow: auto;
padding-bottom: 0.5em;
padding-left: 1em;
padding-top: 0.5em;
width: auto;
height: 176px !important;
background-color: #FFFFFF !important;
border: 0 none !important;
padding-left: 0 !important;
}
div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left, div#page_wrapper div.minimize_wrapper div.edit-form fieldset.left label {
display: inline !important;
}
div.edit-form fieldset {
border: 0 solid black;
}
div.block div.input {
margin-left: 0;
}
div.edit-form button {
margin-top: 0.5em;
margin-top: -0.3em !important;
}
div.block div.content {
padding: 0;
border-bottom: 1px solid #DDDDDD !important;
border-top: 0 none !important;
background: none repeat scroll 0 0 #DAE6F6;
border-bottom: 4px solid #BBCCFF;
border-top: 4px solid #BBCCFF;
background-color: #FFFFFF;
clear: left;
overflow: visible;
padding: 0.1em;
}
div.block table, div.block table tr, div.block table tr td {
border: medium none;
}
.ig_tbl_img table, .ig_tbl_img tr, .ig_tbl_img td, .ig_tbl_img a, .ig_tbl_img span, .ig_tbl_line table, .ig_tbl_line tr, .ig_tbl_line td, .ig_tbl_line a, .ig_tbl_line span, ig_reset {
background: none repeat scroll 0 50% transparent;
border: 0 none;
border-collapse: collapse;
bottom: auto;
clear: none;
float: none;
font-family: arial,sans-serif;
font-style: normal;
font-variant: normal;
height: auto;
letter-spacing: normal;
line-height: 1;
margin: 0;
padding: 0;
text-indent: 0;
text-transform: none;
top: auto;
vertical-align: middle;
white-space: normal;
width: auto;
word-spacing: normal;
}
div.toggable_dialog {
background-color: #97B0D1;
border: 5px solid #BDD0F0;
display: none;
left: 400px;
padding: 0 1em 0.5em;
position: absolute;
top: 75px;
z-index: 10000;
}
#content .ungleftlist {
width:230px;
float:left;
}
#content .ungrightlist {
width:1000px;
float:left;
}
...@@ -9,7 +9,7 @@ body { ...@@ -9,7 +9,7 @@ body {
font-weight:normal; font-weight:normal;
overflow-x: hidden; overflow-x: hidden;
} }
textEditor{padding: 20px;}
/* buttons aspect */ /* buttons aspect */
.ung_button { .ung_button {
background-image: url('../images/ung/button_background.png'); background-image: url('../images/ung/button_background.png');
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment