Update of /cvsroot/php-blog/serendipity/htmlarea
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2114/htmlarea
Modified Files:
htmlarea.js
Log Message:
Templates can now style the WYSIWYG-editor
Index: htmlarea.js
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htmlarea/htmlarea.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- htmlarea.js 23 Mar 2004 15:41:04 -0000 1.2
+++ htmlarea.js 25 Mar 2004 10:50:46 -0000 1.3
@@ -741,12 +741,14 @@
html += "<head>\n";
if (editor.config.baseURL)
html += '<base href="' + editor.config.baseURL + '" />';
- html += "<style> html,body { border: 0px; } " +
+ html += "<style type=\"text/css\">html,body { border: 0px; } " +
editor.config.pageStyle + "</style>\n";
+ if (editor.config.cssFile)
+ html += "<style type=\"text/css\">" + editor.config.cssFile + "</style>\n";
html += "</head>\n";
html += "<body>\n";
html += editor._textArea.value;
- html += "</body>\n";
+ html += " </body>\n";
html += "</html>";
doc.write(html);
doc.close();
|