You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/04/24 18:53:45 UTC
svn commit: r532007 - in /lenya/trunk/src/modules/tinymce: README
resources/css/editor_content.css resources/javascript/tiny_config.js
resources/misc/download.xhtml resources/misc/download.xml sitemap.xmap
Author: nettings
Date: Tue Apr 24 09:53:44 2007
New Revision: 532007
URL: http://svn.apache.org/viewvc?view=rev&rev=532007
Log:
improved documentation - added hints on wysiwyg-friendly css design.
download hint page is now a page:page and provides standard lenya look
and feel.
updated readme to reflect testing with latest tiny release (2.1.0).
minor functional changes:
* display pilcrows in edit window to make paragraphs visible
* changed configuration to more conservative auto-resize=false
Added:
lenya/trunk/src/modules/tinymce/resources/misc/download.xml
- copied, changed from r531875, lenya/trunk/src/modules/tinymce/resources/misc/download.xhtml
Removed:
lenya/trunk/src/modules/tinymce/resources/misc/download.xhtml
Modified:
lenya/trunk/src/modules/tinymce/README
lenya/trunk/src/modules/tinymce/resources/css/editor_content.css
lenya/trunk/src/modules/tinymce/resources/javascript/tiny_config.js
lenya/trunk/src/modules/tinymce/sitemap.xmap
Modified: lenya/trunk/src/modules/tinymce/README
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/tinymce/README?view=diff&rev=532007&r1=532006&r2=532007
==============================================================================
--- lenya/trunk/src/modules/tinymce/README (original)
+++ lenya/trunk/src/modules/tinymce/README Tue Apr 24 09:53:44 2007
@@ -8,15 +8,18 @@
That should give you a subdirectory named "tinymce"
OR
Download TinyMCE and unpack the archive in
- {yourpub}/lenya/modules/tinymce/resource/
+ $PUB_HOME/lenya/modules/tinymce/resource/
- Optionally download additional language packs and unpack them
in the same place. (The new files will end up in tinymce/ as
well.)
+- Check the file permissions of the new "tinymce" directory.
+ It should not be world-writable for security reasons. On UNIX systems,
+ you can fix that with "chmod -R og-w tinymce/".
- Add the appropriate permissions to
- $YOURPUB/config/ac/usecase-policies.xml, for example:
+ $PUB_HOME/config/access-control/usecase-policies.xml, for example:
<usecase id="tinymce.edit">
<role id="admin" method="grant"/>
@@ -31,7 +34,7 @@
This will allow the "admin" and "edit" roles to access the
usecases to edit and upload images.
-- To add a menu entry, in $YOURPUB/config/publication.xconf
+- To add a menu entry, in $PUB_HOME/config/publication.xconf
add <module name="tinymce"/> next to the other module
declarations. This does not work in the default publication,
because it creates its own custom menus. But for a quick test,
@@ -39,4 +42,19 @@
address-bar URL.
-This module has been developed and tested with TinyMCE 2.0.6.
+Make your site play well with TinyMCE:
+
+You will find that TinyMCE does not look good with certain layout styles.
+Specifically, floating objects inside your editable area will result in
+sub-optimal layout when the editor is active. To achive true WYSIWYG, try
+to design your page so that editable areas have a fixed size and no floats
+(you can still have accessible design by using "em" instead of "px").
+
+By default, TinyMCE will parse your CSS stylesheet and make all classes
+available in its styling dropdown menu. That means you should not
+introduce classes for one-shot stylings outside the editable area (unless
+you want to make those stylings available in the content area as well).
+Use ids instead.
+
+
+This module has been developed and tested with TinyMCE 2.1.0.
Modified: lenya/trunk/src/modules/tinymce/resources/css/editor_content.css
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/tinymce/resources/css/editor_content.css?view=diff&rev=532007&r1=532006&r2=532007
==============================================================================
--- lenya/trunk/src/modules/tinymce/resources/css/editor_content.css (original)
+++ lenya/trunk/src/modules/tinymce/resources/css/editor_content.css Tue Apr 24 09:53:44 2007
@@ -1,4 +1,17 @@
/*
- use this file to add styling for the editor area in case we don't quite
- match the original look of the site. yes, that's a hack.
-*/
\ No newline at end of file
+ use this file to add additional styling for the editor area
+*/
+
+
+p:after {
+ /* add pilcrow sign to make paragraphs visible */
+ content:"\00B6";
+}
+
+br:before {
+ /* add hooked left arrow to make line breaks visible.
+ line breaks can be generated with CTRL-Enter.
+ Firefox does not render this, IE neither. */
+ content:"\21B5";
+}
+
Modified: lenya/trunk/src/modules/tinymce/resources/javascript/tiny_config.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/tinymce/resources/javascript/tiny_config.js?view=diff&rev=532007&r1=532006&r2=532007
==============================================================================
--- lenya/trunk/src/modules/tinymce/resources/javascript/tiny_config.js (original)
+++ lenya/trunk/src/modules/tinymce/resources/javascript/tiny_config.js Tue Apr 24 09:53:44 2007
@@ -59,7 +59,7 @@
},
/* auto-resize the editing area. docs say this is "experimental"! */
- auto_resize : true,
+ auto_resize : false,
/* characters that should be replaced by named XHTML entities.
cocoon does not define entities by default, so we use none. */
Copied: lenya/trunk/src/modules/tinymce/resources/misc/download.xml (from r531875, lenya/trunk/src/modules/tinymce/resources/misc/download.xhtml)
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/tinymce/resources/misc/download.xml?view=diff&rev=532007&p1=lenya/trunk/src/modules/tinymce/resources/misc/download.xhtml&r1=531875&p2=lenya/trunk/src/modules/tinymce/resources/misc/download.xml&r2=532007
==============================================================================
--- lenya/trunk/src/modules/tinymce/resources/misc/download.xhtml (original)
+++ lenya/trunk/src/modules/tinymce/resources/misc/download.xml Tue Apr 24 09:53:44 2007
@@ -16,13 +16,14 @@
limitations under the License.
-->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>No TinyMCE installation found</title>
-</head>
-<body>
-<div id="body">
- <h1>No TinyMCE installation found.</h1>
+<page:page
+ xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+>
+<page:head/>
+<page:title>TinyMCE not found</page:title>
+<page:body>
+ <h1>No TinyMCE installation was found on your system.</h1>
<p>
Due to license incompatibilites, TinyMCE (released under the GPL) cannot
be distributed with Lenya (released under the Apache License 2.0), although
@@ -33,9 +34,9 @@
TinyMCE editor from moxiecode.com</a>.<br />
Unpack the zip archive or tarball in your Lenya source tree under
<code>$LENYA-SRC/src/modules/tinymce/resources</code>. Alternatively, you can
- install it $YOURPUB/lenya/modules/tinymce/resource (if you prefer not to have
- external code in your Lenya source tree), since all calls to this code are
- fallback-enabled.
+ install it to <code>$PUB_HOME/lenya/modules/tinymce/resources</code>
+ (if you prefer not to have external code in your Lenya source tree),
+ since all calls to this code are fallback-enabled.
</p>
<p>
By default, TinyMCE comes with an English localization only. If you prefer
@@ -59,6 +60,5 @@
Thanks to the crew at moxiecode for a capable, exceptionally clean,
well-packaged and extensively documented open-source editor! Enjoy.
</p>
-</div>
-</body>
-</html>
+</page:body>
+</page:page>
Modified: lenya/trunk/src/modules/tinymce/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/tinymce/sitemap.xmap?view=diff&rev=532007&r1=532006&r2=532007
==============================================================================
--- lenya/trunk/src/modules/tinymce/sitemap.xmap (original)
+++ lenya/trunk/src/modules/tinymce/sitemap.xmap Tue Apr 24 09:53:44 2007
@@ -100,7 +100,7 @@
</map:when>
<!-- TinyMCE is not installed - generate info page for the user -->
<map:otherwise>
- <map:generate src="fallback://lenya/modules/tinymce/resources/misc/download.xhtml"/>
+ <map:generate src="fallback://lenya/modules/tinymce/resources/misc/download.xml"/>
</map:otherwise>
</map:select>
<map:call resource="style-cms-page"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org