Wiki Markup編輯器 nanoWIME
nanoWIME是一個基于javascript簡單、靈活、易于使用WikiMarkup編輯器。

nanoWIME._init({
// General options
elementID : "my_textarea",
buttonBar1 : "h1,h2,h3,h4,h5,h6,|,ulist,olist,|,bold,italic,underline,strikethrough,sup,sub,nowiki,|,link_intern,link_extern,|,simple_ref,ref_listing",
conf : {
simple_ref : {
title : 'Simple reference [r]',
img : 'book_link.png',
cssclass : 'button',
align : 'middle',
elementId : 'toolbar_simpleref_btn',
on_mouseover : function() {
this.className = 'raised';
},
on_mouseout : function() {
this.className = 'button';
},
on_mousedown : function() {
this.className = 'pressed';
},
on_mouseup : function() {
this.className = 'raised';
},
on_click : function() {
var refName = prompt("Name of reference:", "");
var groupName = prompt("Groupname of the reference:", "");
var inString = "<="" ref="">');
},
shortcut: 'r'
}
}
});
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!