[Hippo-cms7-user] Accessibility Xinha-table-editor plugin

Edwin Benneheij ettepet at gmail.com
Thu Nov 19 11:42:51 CET 2009


Hi Jeroen,


Today I noticed that images in RTE-fields only show up before clicking the
edit-button.
When editing this RTE-field the images disappear. Then i noticed that
between all the new table-buttons the "insert image"-button was gone !?

So, I wanted to add this insert-image-button myself (like we had in the
previous version of the config.xml).
I inserted the code from our previous config.xml into the toolbar and
plugins:

  <sv:property sv:name="Xinha.config.toolbar" sv:type="String">
    .
    <sv:value>insertimage</sv:value>
    .
  </sv:property>

and:

  <sv:property sv:name="Xinha.plugins" sv:type="String">
    .
    <sv:value>InsertImage</sv:value>
    .
  </sv:property>


I also added this extra node:

    <sv:node sv:name="Xinha.plugins.InsertImage">
        <sv:property sv:name="jcr:primaryType" sv:type="Name">
            <sv:value>frontend:pluginconfig</sv:value>
        </sv:property>
        <sv:property sv:name="cluster.name" sv:type="String">
            <sv:value>cms-pickers/image</sv:value>
        </sv:property>
    </sv:node>


I thought this was all I had to do for getting the "insert image"
functionality back again.
But when I start a new CMS with these changes, the RTE-field shows up with
only the html-source (including an image-tag: <img
src="logo.jpg/logo.jpg/hippogallery:picture"/>), no buttons.

What am I doing wrong? Or is this new XinhaCore.js not capable of adding
images in a RTE-field???

Regards,
Edwin


On Thu, Nov 19, 2009 at 8:57 AM, Jeroen Reijn <j.reijn at onehippo.com> wrote:

> Good to hear that it worked out in the end. I've update the README file for
> the branch and will perform this later on also for the trunk.
>
> If I can find some spare time next week, I might be able to also build in
> the class attribute. Not sure yet though.
>
>
> Cheers,
>
> Jeroen
>
> Edwin Benneheij wrote:
>
>> Hi Jeroen,
>>
>> Great! This works with 2.06.14.
>>
>> Maybe you should add some lines in the README.TXT :
>> copy the "webrichtlijnen-content/src/main/resources/xinha" - package
>> (including the html-cleaner-service.xml and xinha-config.xml)
>> to your own "content/src/main/resources" folder.
>>
>> Thanks a lot,
>> Edwin
>>
>>
>>
>> On Nov 18, 2009, at 7:19 PM, Jeroen Reijn wrote:
>>
>>  Hi Edwin,
>>>
>>> I've created a 2.06.14 version of the project. It's located in SVN at the
>>> following location:
>>>
>>> http://forge.onehippo.org/svn/webrichtlijnen/branches/BRANCH_CMS_7_1
>>>
>>> I've also updated the README.TXT in that project with some more
>>> information on how to proceed when you want to use this in your own project.
>>>
>>> I've tested this with Firefox 3.5 on Ubuntu, but it should work on any
>>> other platform.
>>>
>>> Please let me know if this demo project works for you with version
>>> 2.06.14 of the CMS.
>>>
>>> Cheers,
>>>
>>> Jeroen
>>>
>>> Edwin Benneheij wrote:
>>>
>>>> Hi Jeroen,
>>>> A change of the location of the html cleaner service didn't fix this
>>>> issue.
>>>> Paths/locations in the console:
>>>> /hippo:configuration/hippo:frontend/cms/cms-static/htmlCleanerService/cleaner.config/hippohtmlcleaner:cleanup/hippohtmlcleaner:cleanupElement
>>>>
>>>> *
>>>> and:
>>>> *
>>>> **/hippo:namespaces/hippostd/Extended Rich
>>>> Editor/hippo:template/hippo:template/root**
>>>> It would be great if you can have a look how to get this work in 2.06.14
>>>> !
>>>> Thanks in advance,
>>>> Edwin
>>>> On Nov 18, 2009, at 4:10 PM, Jeroen Reijn wrote:
>>>>
>>>>> Edwin,
>>>>>
>>>>> The location of the html cleaner service is not located at
>>>>> /hippo:configuration/hippo:frontend/cms/cms-services/htmlCleanerService in
>>>>> your version, but should be at:
>>>>>
>>>>> /hippo:configuration/hippo:frontend/cms/cms-static/htmlCleanerService
>>>>>
>>>>> I do not have time right now to check what happens with version
>>>>> 2.06.14, but I can perhaps take a look at this tonight.
>>>>>
>>>>> I will let you know what I find out.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Jeroen
>>>>>
>>>>> Edwin Benneheij wrote:
>>>>>
>>>>>> Hi,
>>>>>> As mentioned below - I like to add this "new" editor to our project
>>>>>> (in repos 2.06.14).
>>>>>> What I have tried so far:
>>>>>> The content-project:
>>>>>> - replaced our xinha-config.xml in the content-project with the one in
>>>>>> the webrichtlijnen-content;
>>>>>> - added the html-cleaner-service.xml to our content-project;
>>>>>> - added the Xinha-nodes to the hippoecm-extension.xml;
>>>>>> - changed the contentdelete- and contentroot-value see link [1];
>>>>>> *
>>>>>>  <!-- xinha configuration -->
>>>>>>  <sv:node sv:name="xinha-config">
>>>>>>      <sv:property sv:name="jcr:primaryType" sv:type="Name">
>>>>>>          <sv:value>hippo:initializeitem</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:sequence" sv:type="Double">
>>>>>>          <sv:value>11103</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentresource" sv:type="String">
>>>>>>          <sv:value>xinha/xinha-config.xml</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentdelete" sv:type="String">
>>>>>>
>>>>>>  <sv:value>/hippo:namespaces/hippostd/hippo:html/hippo:template/hippo:template/root</sv:value>
>>>>>>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentroot" sv:type="String">
>>>>>>
>>>>>>  <sv:value>/hippo:namespaces/hippostd/hippo:html/hippo:template/hippo:template</sv:value>
>>>>>>
>>>>>>      </sv:property>
>>>>>>  </sv:node>
>>>>>>  <!-- html cleaner service -->
>>>>>>  <sv:node sv:name="xinha-html-cleaner">
>>>>>>      <sv:property sv:name="jcr:primaryType" sv:type="Name">
>>>>>>          <sv:value>hippo:initializeitem</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:sequence" sv:type="Double">
>>>>>>          <sv:value>11104</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentresource" sv:type="String">
>>>>>>          <sv:value>xinha/html-cleaner-service.xml</sv:value>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentdelete" sv:type="String">
>>>>>>
>>>>>>  <sv:value>/hippo:configuration/hippo:frontend/cms/cms-services/htmlCleanerService</sv:value>
>>>>>>
>>>>>>      </sv:property>
>>>>>>      <sv:property sv:name="hippo:contentroot" sv:type="String">
>>>>>>
>>>>>>  <sv:value>/hippo:configuration/hippo:frontend/cms/cms-services</sv:value>
>>>>>>      </sv:property>
>>>>>>  </sv:node>
>>>>>> *
>>>>>> The CMS-project:
>>>>>> - copied the ".../webapp/xinha" folder from the webrichtlijnen-cms
>>>>>> into our "source/main/webapp"folder of the cms-project.
>>>>>> - added this dependency into the cms pom.xml:
>>>>>>      <dependency>
>>>>>>          <groupId>org.onehippo.forge</groupId>
>>>>>>          <artifactId>webrichtlijnen-content</artifactId>
>>>>>>          <version>0.0.1-SNAPSHOT</version>
>>>>>>  </dependency>        All of this results in a broken RTE-field, with no
>>>>>> buttons any more, and showing the html-source in the field.
>>>>>> Where are things going wrong? Regards,
>>>>>> Edwin
>>>>>> On Nov 18, 2009, at 2:53 PM, Jasha Joachimsthal wrote:
>>>>>>
>>>>>>> Hi Edwin,
>>>>>>>
>>>>>>> good that it's clear. I added a small section about the HTML Cleaner
>>>>>>> to [1]
>>>>>>>
>>>>>>> [1]
>>>>>>> http://wiki.onehippo.com/display/CMS7/Configure+the+Rich-text+fields+%28Xinha%29
>>>>>>>
>>>>>>> Jasha
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2009/11/18 Edwin Benneheij <ettepet at gmail.com <mailto:
>>>>>>> ettepet at gmail.com>>
>>>>>>>
>>>>>>>  Hi Jasha,
>>>>>>>
>>>>>>>  Okay, that's clear - and works in the demo. Thanx!
>>>>>>>
>>>>>>>  Now I've got to figure out how to get this whole
>>>>>>>  Xinha-webrichtlijnen-thing into our project.
>>>>>>>
>>>>>>>  Regards,
>>>>>>>  Edwin
>>>>>>>
>>>>>>>  On Nov 18, 2009, at 8:59 AM, Jasha Joachimsthal wrote:
>>>>>>>
>>>>>>>   Hi Edwin,
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  2009/11/17 Edwin Benneheij <ettepet at gmail.com <mailto:
>>>>>>>> ettepet at gmail.com>
>>>>>>>>  <mailto:ettepet at gmail.com>>
>>>>>>>>
>>>>>>>>
>>>>>>>>      There's just one thing left to wish...
>>>>>>>>      - we would like to add classes to some of the td-tags to
>>>>>>>>      highlight its content, eg: <td class="my_style1">content</td>
>>>>>>>>      When these class-attributes are added manualy in the
>>>>>>>>      html-source, they will be removed after saving the document,
>>>>>>>>      even when they are placed in the p-tag within the td, eg:
>>>>>>>>      <td><p class="my_style2">content</p></td>
>>>>>>>>
>>>>>>>>      It would be very nice to have a way available to set some
>>>>>>>>      (different) classes to td's.
>>>>>>>>
>>>>>>>>
>>>>>>>>  It's the HTMLCleaner that removes the classes. Now there are 2
>>>>>>>>  different settings you need to change:
>>>>>>>>  - for div's (also for span, p and pre) you need to specify which
>>>>>>>>  classnames are allowed, otherwise they are stripped
>>>>>>>>  - for the td's (and all other elements except those above) you
>>>>>>>>  need to specify that class is an allowed attribute.
>>>>>>>>
>>>>>>>>  You can find the HTMLCleaner configuration in the console
>>>>>>>>  under
>>>>>>>> /hippo:configuration/hippo:frontend/cms/cms-services/htmlCleanerService/cleaner.config/hippohtmlcleaner:cleanup
>>>>>>>>
>>>>>>>>
>>>>>>>>  Regards,
>>>>>>>>
>>>>>>>>  Jasha     _______________________________________________
>>>>>>>>  Hippo-cms7-user mailing list and forums
>>>>>>>>  http://www.onehippo.org/cms7/support/community.html
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  _______________________________________________
>>>>>>>  Hippo-cms7-user mailing list and forums
>>>>>>>  http://www.onehippo.org/cms7/support/community.html
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Hippo-cms7-user mailing list and forums
>>>>>>> http://www.onehippo.org/cms7/support/community.html
>>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Hippo-cms7-user mailing list and forums
>>>>>> http://www.onehippo.org/cms7/support/community.html
>>>>>>
>>>>> _______________________________________________
>>>>> Hippo-cms7-user mailing list and forums
>>>>> http://www.onehippo.org/cms7/support/community.html
>>>>>
>>>> ------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Hippo-cms7-user mailing list and forums
>>>> http://www.onehippo.org/cms7/support/community.html
>>>>
>>> _______________________________________________
>>> Hippo-cms7-user mailing list and forums
>>> http://www.onehippo.org/cms7/support/community.html
>>>
>>
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/community.html
>>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onehippo.org/pipermail/hippo-cms7-user/attachments/20091119/af61426f/attachment.htm>


More information about the Hippo-cms7-user mailing list