多语言展示
当前在线:118今日阅读:61今日分享:18

文本编辑器NicEdit插件

文本编辑器NicEdit插件
工具/原料

adobe dreamweaver

方法/步骤
1

新建html文档。

2

准备好需要用到的图标。

3

书写hmtl代码。

Default (No Config Specified)

new nicEditor().panelInstance('area1');

All Available Buttons {fullPanel : true}

new nicEditor({fullPanel : true}).panelInstance('area2');

Change Path to Icon File {iconsPath : 'path/to/nicEditorIcons.gif'}

new nicEditor({iconsPath : 'nicEditorIcons.gif'}).panelInstance('area3');

Customize the Panel Buttons/Select List

{buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript']}

Set a maximum expansion size (maxHeight)

{maxHeight : 100}

5

书写并添加js代码。

6

代码整体结构。

7

查看效果。

推荐信息