aboutsummaryrefslogtreecommitdiffstats
path: root/library/bbedit
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
committerfriendica <info@friendica.com>2014-07-16 01:07:00 -0700
commit3a31ddea2b516cebe60c6ac096516db8df101fd0 (patch)
tree55ff5e01ec3035b0a8ade9e0731bd7d1b51e7794 /library/bbedit
parent0435a08f3bafe47e0fe0cda6e698f93a5fab26e6 (diff)
downloadvolse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.gz
volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.tar.bz2
volse-hubzilla-3a31ddea2b516cebe60c6ac096516db8df101fd0.zip
provide os_mkdir to workaround permission issues with php mkdir
Diffstat (limited to 'library/bbedit')
-rw-r--r--library/bbedit/editor.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/library/bbedit/editor.js b/library/bbedit/editor.js
index 57de38876..563472ff5 100644
--- a/library/bbedit/editor.js
+++ b/library/bbedit/editor.js
@@ -27,6 +27,44 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+
+
+function REDITOR(elm,wysiwyg) {
+
+ this.elm = elm;
+ this.wysiwyg = wysiwyg;
+
+
+
+}
+
+REDITOR.prototype.showEditor = function() {
+ if (! this.enableWysiwyg) return;
+ this.editorVisible = true;
+ this.content = document.getElementById(this.body_id).value;
+ this.myeditor = this.ifm.contentWindow.document;
+ bbcode2html();
+ this.myeditor.designMode = "on";
+ this.myeditor.open();
+ this.myeditor.write('<html><head><link href="editor.css" rel="Stylesheet" type="text/css" /></head>');
+ this.myeditor.write('<body style="margin:0px 0px 0px 0px" class="editorWYSIWYG">');
+ this.myeditor.write(content);
+ this.myeditor.write('</body></html>');
+ this.myeditor.close();
+ if (this.myeditor.attachEvent) {
+ if(parent.ProcessKeyPress)
+ this.myeditor.attachEvent("onkeydown", parent.ProcessKeyPress);
+ this.myeditor.attachEvent("onkeypress", kp);
+ }
+ else if (this.myeditor.addEventListener) {
+ if (parent.ProcessKeyPress)
+ this.myeditor.addEventListener("keydown", parent.ProcessKeyPress, true);
+ this.myeditor.addEventListener("keypress",kp,true);
+ }
+}
+
+
var myeditor, ifm;
var body_id, textboxelement;
var content;