我试图解决Nicedit,特别是“removeFormat”函数。帮助Nicedit - removeFormat函数
问题是我无法在下面的代码中找到“removeFormat”方法源代码。 JS语法对我来说看起来很奇怪。有人能帮我吗 ?
对不起,代码太长。 Nicedit在这里:http://nicedit.com/download.php
以下是我在'源代码中的removeFormat'中找到的内容。但没有“removeformat”命令??! :
var nicEditorConfig = bkClass.extend({
buttons: {
'removeformat': {
name: __('Supprimer la mise en forme'),
command: 'removeformat',
noActive: true
}
},
iconsPath: 'http://js.nicedit.com/nicEditIcons-latest.gif',
buttonList: ['save', 'bold', 'italic', 'underline', 'left', 'center', 'right', 'justify', 'ol', 'ul', 'fontSize', 'fontFamily', 'fontFormat', 'indent', 'outdent', 'image', 'upload', 'link', 'unlink', 'forecolor', 'bgcolor'],
iconList: {
"xhtml": 1,
"bgcolor": 2,
"forecolor": 3,
"bold": 4,
"center": 5,
"hr": 6,
"indent": 7,
"italic": 8,
"justify": 9,
"left": 10,
"ol": 11,
"outdent": 12,
"removeformat": 13,
"right": 14,
"save": 25,
"strikethrough": 16,
"subscript": 17,
"superscript": 18,
"ul": 19,
"underline": 20,
"image": 21,
"link": 22,
"unlink": 23,
"close": 24,
"arrow": 26,
"upload": 27,
"question":2
}
});`
是的,你懂了! Nicedit使用浏览器内部命令。 – Franck 2010-09-07 13:37:04