1# bookmark2wiki
2to send bookmark from browser to dokuwiki
3  /**
4     * bookmark2wiki
5	 * forked from post2wiki.php by riny [at] bk [dot] ru
6	 * To bookmark webpage using bookmarklet
7     * The app will add the url, title and hightlighed text you want to the end of the content of the targeted namespace. It does not directly read/white the dokuwiki page folder.
8	 * Version 0.1
9	 * todo : check security of input
10         * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
11         * @author     edwardcodelab https://github.com/edwardcodelab
12         **/
13
14	// TYPICAL USAGE :
15        //                 Create bookmarklet as shown in the bookmarklet part below:
16        //                 Change the window.open statement to reflect the location of the bookmark2wiki.php script.
17        //                 Drag bookmarklet to your toolbar.
18        //  BOOKMARKLET :
19	//  javascript:Q=document.selection?document.selection.createRange().text:document.getSelection(); void(window.open('https://myserver/bookmark2wiki.php?te='+escape(Q)+'&ur='+ escape(location.href)+'&ti='+escape(document.title),'dokuwikiadd','scrollbars=yes,resizable=yes,toolbars=yes,width=200,height=100,left=200,top=200,status=yes'));
20