Hi,

Done with the whole process of configuration and running of "tinymce".
Now its working fine, Trying to learn next process of my task "Apache Lenya Content Editable Module".

Whole process that i have follow:

*For apache-lenya-2.0.4 with tinymce 2.1.2*

1) Download a fresh copy of tinymce 2.1.2

2)Unpack the archive in the resources directory of the tinymce module (|lenya/src/modules/tinymce/resources/|) to make it globally available.

3) Check the file permissions of the new "tinymce" directory. It should not be world-writable for security reasons.
we can fix that with following command :

chmod -R og-w tinymce/

4) Add the appropriate permissions to |$PUB_HOME/config/access-control/usecase-policies.xml| (or use the usecase administration GUI), for example:

<usecase id="tinymce.edit">
<role id="admin" method="grant"/>
<role id="edit" method="grant"/> </usecase>

( Note :If the permissions exits in the same file, no need to edit.)

5) For adding up a menu entry, in |$PUB_HOME/config/publication.xml|
add follow code in <module/>  :

<module name="tinymce"/>

Now build the lenya again, it will definitely work and run smoothly.


-------------------------------------------------------------------------------------------------------------------------------------------------------------


Actually the issue was compatibility between *TinyMCE 3.x in Lenya 2.0.X*, I follow the procedure given in :
http://wiki.apache.org/lenya/HowToInstallTinyMCE3.x

It wont work, then again i try to configure with "*TinyMCE**2.1.2"*.

Please check my previous mail's steps no 4, there I mention a NOTE.

*Issue was :*

If we add the new permission in existing xml file, editor will stay disable on lenya.
Reason we have existing usecase with*sitemanager* :

<usecase id="tinymce.edit">
<role id="*sitemanager*" method="grant"/>
<role id="edit" method="grant"/>
</usecase>

If we add new usecase with *"admin"*:
<usecase id="tinymce.edit">
<role id="admin" method="grant"/>
<role id="edit" method="grant"/> </usecase>

It make conflict ion with two , so no need to retain both usecase.
We can use only one from above at a time.

------
Thanks & regard ,

Munish Sharma

Reply via email to