Re: "tinymce editor" got successfully build

florent andrĂ© <[email protected]> Fri, 01 Jun 2012 15:00:34 +0200
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
I don't see anywhere in the documentation something about adding / 
modifying usecase...
As far as I understand you do this for solving the problem (and in fact 
don't seems to solve it), but are you sure this is the solution of this 
problem ?
Also as it's seems to be credential related, are you sure you are logged 
with an ID that can "edit" ?

++

On 06/01/2012 02:54 PM, munish sharma wrote:
> Exactly , any nave who want to use "tinymce" will definitely get
> confuse, while reading that documentation.
>
>
> On 01/06/12 17:49, Vik Tara wrote:
>> 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?
>
>