737 |
|
|
738 |
var linksRegExp = this.makePhraseRegExp('^([^%O]+)?%O%O(([^|]+)?\\||)([^%C]+)%C%C', ''); |
var linksRegExp = this.makePhraseRegExp('^([^%O]+)?%O%O(([^|]+)?\\||)([^%C]+)%C%C', ''); |
739 |
|
|
740 |
var wikiRegExp = this.makePhraseRegExp('^([^%O]+)?%O([0-9]*)([#!])?([:\/\*_])([^%C]+)[:\/\*_]%C', ''); |
var wikiRegExp = this.makePhraseRegExp('^([^%O]+)?%O([0-9]*)([#!])?([:\/\*_-])([^%C]+)[:\/\*_-]%C', ''); |
741 |
|
|
742 |
var montaRegExp = this.makePhraseRegExp('^([^%O]+)?%O([^%C]+)%C', ''); |
var montaRegExp = this.makePhraseRegExp('^([^%O]+)?%O([^%C]+)%C', ''); |
743 |
|
|
894 |
style += '; font-style: italic;'; |
style += '; font-style: italic;'; |
895 |
} else if (RegExp.$4 == '_') { |
} else if (RegExp.$4 == '_') { |
896 |
style += '; text-decoration: underline;'; |
style += '; text-decoration: underline;'; |
897 |
|
} else if (RegExp.$4 == '-') { |
898 |
|
style += '; text-decoration: line-through;'; |
899 |
} |
} |
900 |
fragment.lastChild.lastChild.setAttribute('style', style); |
fragment.lastChild.lastChild.setAttribute('style', style); |
901 |
if (RegExp.$3 == '!') fragment.lastChild.lastChild.setAttribute('class', 'em-text'); |
if (RegExp.$3 == '!') fragment.lastChild.lastChild.setAttribute('class', 'em-text'); |
1008 |
if (this.dataPath != file) { |
if (this.dataPath != file) { |
1009 |
var path = this.dataPath; |
var path = this.dataPath; |
1010 |
var request = new XMLHttpRequest(); |
var request = new XMLHttpRequest(); |
1011 |
request.open('GET', path); |
request.open('GET', path + '?rand=' + Math.random() ); |
1012 |
request.onload = function() { |
request.onload = function() { |
1013 |
Presentation.textbox.value = request.responseText; |
Presentation.textbox.value = request.responseText; |
1014 |
Presentation.data = Presentation.textbox.value; |
Presentation.data = Presentation.textbox.value; |
1060 |
}, |
}, |
1061 |
|
|
1062 |
insert : function(aType) { |
insert : function(aType) { |
|
var scrollTop = this.textbox.scrollTop; |
|
|
// alert(this.textbox.scrollTop); |
|
1063 |
switch (aType) |
switch (aType) |
1064 |
{ |
{ |
1065 |
case 'page': |
case 'page': |
1094 |
default: |
default: |
1095 |
return; |
return; |
1096 |
} |
} |
|
this.textbox.scrollTop = scrollTop; |
|
1097 |
this.onEdit(); |
this.onEdit(); |
1098 |
}, |
}, |
1099 |
insertTextFor : function(aString, aNode, aPosOffset) |
insertTextFor : function(aString, aNode, aPosOffset) |