Re: "tinymce editor" got successfully build

Vik Tara <[email protected]> Fri, 01 Jun 2012 13:19:05 +0100
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
--------------030309040306080008020601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 06/01/2012 01:02 PM, munish sharma wrote:
> 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
Munish, I think you are trying to say there is something wrong in the 
documentation for installing tinymce in lenya?

--------------030309040306080008020601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 06/01/2012 01:02 PM, munish sharma wrote:
    <blockquote cite="mid:[email protected]" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi,<br>
      <br>
      Done with the whole process of configuration and running of
      "tinymce".<br>
      Now its working fine, Trying to learn next process of my task
      "Apache Lenya Content Editable Module".<br>
      <br>
      Whole process that i have follow:<br>
      <br>
      <b>For apache-lenya-2.0.4 with tinymce 2.1.2</b><br>
      <br>
      1) Download a fresh copy of tinymce 2.1.2<br>
      <br>
      2)Unpack the archive in the resources directory of the tinymce
      module (<code>lenya/src/modules/tinymce/resources/</code>)&nbsp; to
      make it globally available.<br>
      <br>
      3) Check the file permissions of the new "tinymce" directory. It
      should not be world-writable for security reasons.<br>
      we can fix that with following command :<br>
      <small><br>
        chmod -R og-w tinymce/</small><br>
      <br>
      4) Add the appropriate permissions to <code>$PUB_HOME/config/access-control/usecase-policies.xml</code>
      (or use the usecase administration GUI), for example:<br>
      <br>
      &nbsp;<small>&lt;usecase id="tinymce.edit"&gt; <br>
        &lt;role id="admin" method="grant"/&gt;<br>
        &nbsp;&lt;role id="edit" method="grant"/&gt; &lt;/usecase&gt;</small><br>
      <br>
      ( Note :If the permissions exits in the same file, no need to
      edit.)<br>
      <br>
      5) For adding up a menu entry, in <code>$PUB_HOME/config/publication.xml</code>
      <br>
      add follow code in &lt;module/&gt;&nbsp; :<br>
      <br>
      <small>&lt;module name="tinymce"/&gt;</small><br>
      <br>
      Now build the lenya again, it will definitely work and run
      smoothly.<br>
      <br>
      <br>
-------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
      <br>
      <br>
      Actually the issue was compatibility between&nbsp; <big><b><small>TinyMCE




            3.x in Lenya 2.0.X</small></b></big>, I follow the procedure
      given in :<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://wiki.apache.org/lenya/HowToInstallTinyMCE3.x">http://wiki.apache.org/lenya/HowToInstallTinyMCE3.x</a><br>
      <br>
      It wont work, then again i try to configure with "<b>TinyMCE</b><b>
        2.1.2"</b>.<br>
      <br>
      Please check my previous mail's steps no 4, there I mention a
      NOTE.<br>
      <br>
      <b>Issue was :</b><br>
      <br>
      If we add the new permission in existing xml file, editor will
      stay disable on lenya.<br>
      Reason we have existing usecase with<b> sitemanager</b> :<br>
      <br>
      &lt;usecase id="tinymce.edit"&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;role id="<b>sitemanager</b>" method="grant"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;role id="edit" method="grant"/&gt;<br>
      &nbsp; &lt;/usecase&gt;<br>
      <br>
      If we add new usecase with <b>"admin"</b>:<br>
      <small>&lt;usecase id="tinymce.edit"&gt; <br>
        &lt;role id="admin" method="grant"/&gt;<br>
        &nbsp;&lt;role id="edit" method="grant"/&gt; &lt;/usecase&gt;</small><br>
      <br>
      It make conflict ion with two , so no need to retain both usecase.
      <br>
      We can use only one from above at a time.<br>
      <br>
      ------<br>
      Thanks &amp; regard ,<br>
      <br>
      Munish Sharma<br>
    </blockquote>
    Munish, I think you are trying to say there is something wrong in
    the documentation for installing tinymce in lenya?<br>
  </body>
</html>

--------------030309040306080008020601--