ABOUT
-------------------------------
Easy Web Editor (EWE)
http://www.openmymind.net/
Author: Karl Seguin
An open source web-based WYSIWYG HTML editor for IE 5.5 (tested on 6).
If you are using this editor, I'd like to put a link to your page up on mine.
LICENSE
------------------------------
As of version 0.4, Easy Web Editor has been available under the LGPL. See the file "COPYING" distributed with this program.
For more information, please visit
http://www.gnu.org/licenses/licenses.html#LGPL
SUPPORT
------------------------------
Please try the forum before emailing me.
http://www.openmymind.net/forum/
I'll probably respond there quicker, and it might help others, or others might help you
QUICK INSTALLATION
------------------------------
The following sample page will create the editor within the eweContainer.
<html>
<head>
<title>Example</title>
<script language="JScript">
<!--
function load(){
var ewe = new EWE();
ewe.load(document.all.eweContainer);
}
var editorPath = '';
//-->
</script>
<script language="JScript" src="source/ewe.js"></script>
</head>
<body style="background-color: #FFFFFF;" onLoad="load();">
<div id="eweContainer" unselectable="on"></div>
</body>
</html>
INSTALLATION
------------------------------
As of version 0.5, EWE has become neatly packaged to allow for more flexible deployment. Previous versions required no guide on how to install them.
First off, in order for the popups to operate correctly, "xmlns:move" must be placed in the <html> tag - i haven't been able to find an alternative.
EWE is now an object which must first be created, then loaded. Between these two steps, certain properties can be set.
The first function creates an EWE object. It is appropriately called EWE(), and supports two optional arguments: the path to the stylesheet to use and the path to the language file to use.
Example:
// 1- creates an instance of EWE
var ewe = new EWE();
// 2- creates an instance of EWE with a language file
var ewe = new EWE('source/ewe_langEN.xml');
// 3- creates an instance of EWE with a stylesheet
var ewe = new EWE(null, 'source/sample.css');
// 4- creates an instance of EWE with a language file and a style sheet
var ewe = new EWE('source/ewe_langEN.xml','../../css/style.css');
As you can see, when creating an instance of EWE the language file as well as the CSS to use can be loaded. An alternative way of doing this exists.
To specify a language file
Example:
//creates an instance of EWE
var ewe = new EWE();
//specifies the language file
ewe.setLanguageFile('source/ewe_langEN.xml');
To specify a style sheet
Example:
//creates an instance of EWE
var ewe = new EWE();
//loads the stylesheet
ewe.setStyleSheet('../../css/style.css');
It should be noted that trying to load a language file or style sheet twice will result in an error. Similarly, trying to load a language file or style sheet after the editor has been loaded will result in an error.
Finally, you can load the editor via it's load() method. When loading the editor, you _must_ specify the container of the editor - that is the element (tag) which the editor will be loaded in. The container must be able to have children (such as div or td). You can also specify the HTML content you want to load.
Example:
// 1 - load with no content
//Creates an instance of the editor
var ewe = new EWE();
//loads the editor into the container which has an id of eweContainer
ewe.load(document.all.eweContainer);
// 2 - load with content
//Creates an instance of the editor
var ewe = new EWE();
//loads the editor into the container which has an id of eweContainer
ewe.load(document.all.eweContainer, '<b>hello world!</b>);
**PLEASE SEE THE FORUM FOR GREAT EXAMPLES OF HOW TO DO THIS***
Thes The ideal time to call these functions is when the onLoad event of the window/body fire.
没有合适的资源?快使用搜索试试~ 我知道了~
EWELive JScript Editor 0.46
共53个文件
gif:30个
html:10个
css:5个
需积分: 9 53 下载量 40 浏览量
2007-10-18
09:44:38
上传
评论
收藏 47KB ZIP 举报
温馨提示
官方: http://www.ewelive.com<br>演示: http://www.ewelive.com/demo_js/sample.php
资源推荐
资源详情
资源评论
收起资源包目录
0_64_JS.zip (53个子文件)
0_64
COPYING 26KB
desc.txt 464B
installation.txt 4KB
source
button.js 1KB
style_syntax_highlite.css 927B
popup.js 4KB
ewe.js 40KB
ewe_langEN.xml 7KB
style.css 1KB
popup
popup.css 119B
table.html 5KB
editA.html 2KB
hline.html 3KB
colorchooser.css 158B
image.html 7KB
editTable.html 4KB
editTD.html 5KB
colorchooser.js 5KB
editIMG.html 4KB
colorchooser.html 1KB
hyperlink.html 7KB
sample.css 146B
images
Cut.gif 94B
InsertTable.gif 131B
RemoveFormat.gif 121B
JustifyLeft.gif 71B
ZoomOut.gif 572B
Move.gif 83B
Underline.gif 79B
Italic.gif 71B
JustifyCenter.gif 70B
Palette.gif 189B
InsertImage.gif 146B
Subscript.gif 78B
ZoomIn.gif 573B
Bold.gif 80B
Paste.gif 146B
Indent.gif 90B
InsertUnorderedList.gif 83B
Redo.gif 75B
Outdent.gif 90B
JustifyRight.gif 70B
InsertHR.gif 309B
toggleBorders.gif 104B
Symbol.gif 279B
Undo.gif 74B
Save.gif 125B
InsertOrderedList.gif 84B
Superscript.gif 77B
CreateLink.gif 182B
Copy.gif 113B
ForeColor.gif 91B
sample.html 1KB
共 53 条
- 1
资源评论
ASP0000
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功