first commit

This commit is contained in:
/usr/bin/nano
2017-04-15 01:34:36 +03:00
commit c715e2a604
5325 changed files with 329700 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
The images in this directory are part of the GUIEdit module
for PmWiki, Copyright 2005-2006 Patrick R. Michaud (pmichaud@pobox.com)
These images are part of PmWiki; you can redistribute it and/or modify
them under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. See pmwiki.php for full details.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

+62
View File
@@ -0,0 +1,62 @@
/* Copyright 2004 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. See pmwiki.php for full details.
This file provides Javascript functions to support WYSIWYG-style
editing. The concepts are borrowed from the editor used in Wikipedia,
but the code has been rewritten from scratch to integrate better with
PHP and PmWiki's codebase.
*/
function insButton(mopen, mclose, mtext, mlabel, mkey) {
if (mkey > '') { mkey = 'accesskey="' + mkey + '" ' }
document.write("<a tabindex='-1' " + mkey + "onclick=\"insMarkup('"
+ mopen + "','"
+ mclose + "','"
+ mtext + "');\">"
+ mlabel + "</a>");
}
function insMarkup(mopen, mclose, mtext) {
var tarea = document.getElementById('text');
if (tarea.setSelectionRange > '') {
var p0 = tarea.selectionStart;
var p1 = tarea.selectionEnd;
var top = tarea.scrollTop;
var str = mtext;
var cur0 = p0 + mopen.length;
var cur1 = p0 + mopen.length + str.length;
while (p1 > p0 && tarea.value.substring(p1-1, p1) == ' ') p1--;
if (p1 > p0) {
str = tarea.value.substring(p0, p1);
cur0 = p0 + mopen.length + str.length + mclose.length;
cur1 = cur0;
}
tarea.value = tarea.value.substring(0,p0)
+ mopen + str + mclose
+ tarea.value.substring(p1);
tarea.focus();
tarea.selectionStart = cur0;
tarea.selectionEnd = cur1;
tarea.scrollTop = top;
} else if (document.selection) {
var str = document.selection.createRange().text;
tarea.focus();
range = document.selection.createRange()
if (str == '') {
range.text = mopen + mtext + mclose;
range.moveStart('character', -mclose.length - mtext.length );
range.moveEnd('character', -mclose.length );
} else {
if (str.charAt(str.length - 1) == " ") {
mclose = mclose + " ";
str = str.substr(0, str.length - 1);
}
range.text = mopen + str + mclose;
}
range.select();
} else { tarea.value += mopen + mtext + mclose; }
return;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B