Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2114
Modified Files:
NEWS serendipity_functions.inc.php
Log Message:
Templates can now style the WYSIWYG-editor
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- serendipity_functions.inc.php 24 Mar 2004 20:02:16 -0000 1.237
+++ serendipity_functions.inc.php 25 Mar 2004 10:50:45 -0000 1.238
@@ -2314,6 +2314,20 @@
<style type="text/css">@import url(htmlarea/htmlarea.css);</style>
<?php
}
+
+ $csscode = str_replace(
+ array(
+ "\n",
+ "'"
+ ),
+
+ array(
+ '\n',
+ "\'",
+ ),
+
+ file_get_contents($serendipity['serendipityPath'] . serendipity_getTemplateFile('htmlarea.css'))
+ );
?>
<script type="text/javascript">
var editor<?php echo $jsname; ?> = null; var config<?php echo $jsname; ?> = null;
@@ -2327,6 +2341,7 @@
}
);
config<?php echo $jsname; ?>.toolbar.push([ "image_selector"]);
+ config<?php echo $jsname; ?>.cssFile = '<?php echo $csscode; ?>';
config<?php echo $jsname; ?>.toolbar = [
[ "fontname", "space",
"fontsize", "space",
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- NEWS 23 Mar 2004 15:49:24 -0000 1.96
+++ NEWS 25 Mar 2004 10:50:45 -0000 1.97
@@ -4,7 +4,9 @@
------------------------------------------------------------------------
* Updated WYSIWYG-Editor (htmlarea) to latest version. Integrated
- s9y image manager in htmlarea window. (garvinhicking)
+ s9y image manager in htmlarea window. Template file 'htmlarea.css'
+ can be used to adjust the editor's look to your template.
+ (garvinhicking)
* Templates: New CSS classes for better customization
- 'serendipity_entry_body_folded' for the entry body on the
|