Chinaunix首页 | 论坛 | 博客
  • 博客访问: 835207
  • 博文数量: 117
  • 博客积分: 2595
  • 博客等级: 少校
  • 技术积分: 1204
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-18 18:16
文章分类

全部博文(117)

文章存档

2013年(1)

2012年(2)

2011年(18)

2010年(95)

2009年(1)

分类: 系统运维

2010-07-08 09:42:25

TinyEditor 是一个界面很简洁,功能易用的可视化HTML编辑器,TinyEditor 不依赖于其他 JS 库,js包只有8k左右大小。但是默认显示中文,所以我简单翻译了一下tinyeditor.js这个文件里的关于中文的一部分,用记事本打开tinyeditor.js然后复制下面的代码到记事本里相同的区域即可,这样tinyeditor就显示中文了。有四个词语不会。SubscriptSuperscript,removeformat,'Block Justify'。还有搜索source替换为“显示源码”,搜索”wysiwyg“替换为“正常显示”即可。

    c['cut']=[1,'剪切','a','cut',1];
    c['copy']=[2,'复制','a','copy',1];
    c['paste']=[3,'粘贴','a','paste',1];
    c['bold']=[4,'加粗','a','bold'];
    c['italic']=[5,'斜体','a','italic'];
    c['underline']=[6,'下划线','a','underline'];
    c['strikethrough']=[7,'删除线','a','strikethrough'];
    c['subscript']=[8,'Subscript','a','subscript'];
    c['superscript']=[9,'Superscript','a','superscript'];
    c['orderedlist']=[10,'插入有序序列','a','insertorderedlist'];
    c['unorderedlist']=[11,'插入无序序列','a','insertunorderedlist'];
    c['outdent']=[12,'左缩进','a','outdent'];
    c['indent']=[13,'右缩进','a','indent'];
    c['leftalign']=[14,'左对齐','a','justifyleft'];
    c['centeralign']=[15,'居中','a','justifycenter'];
    c['rightalign']=[16,'右对齐','a','justifyright'];
    c['blockjustify']=[17,'Block Justify','a','justifyfull'];
    c['undo']=[18,'撤销','a','undo'];
    c['redo']=[19,'重做','a','redo'];
    c['image']=[20,'插入图片','i','insertimage','Enter Image URL:','http://'];
    c['hr']=[21,'插入分隔线','a','inserthorizontalrule'];
    c['link']=[22,'插入链接','i','createlink','Enter URL:','http://'];
    c['unlink']=[23,'移除链接','a','unlink'];
    c['unformat']=[24,'removeformat','a','removeformat'];
    c['print']=[25,'打印','a','print'];


tinyeditor的界面如下图所示:

可以到这里了解详细情况:

刚才看到了开元中国的 新浪编辑器 SinaEditor ,感觉不错。

浪编辑器应该算是最贴近网友体验的编辑器,简洁、大方,并且使用方便、功能强大。

贴图为证:

阅读(2467) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~