Wiki Markup编辑器 nanoWIME

fmms 10年前发布 | 21K 次阅读 Wiki HTML编辑器

nanoWIME是一个基于javascript简单、灵活、易于使用WikiMarkup编辑器。

Wiki Markup编辑器 nanoWIME

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

项目主页:http://www.open-open.com/lib/view/home/1323421529468