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' } } });