[daisy] RE: add a highlight button to Daisy's WYSIWYG editor

Cunningham, Reginald - BLS Cunningham.Reginald at bls.gov
Mon Oct 30 13:28:11 CST 2006


I followed the instructions and the cleaner is passing my highlight  element but I am missing two key parts:

 

1) Where do I place my new image? Right there is a place holder and the GUI is showing the highlight.

     a.) daisy/resources/cocoon/forms/htmlarea/images/ <http://apache:8888/daisy/resources/cocoon/forms/htmlarea/images/> 

     b.) daisy/resources/cocoon/forms/htmlarea/plugins/DaisyMisc/img/

     c.) ????

 

 

2)  What modifications are required to the XSLFO stylesheet (document-to-xslfo.xsl) for the highlight to render correctly in PDF.

I tried this:

 <xsl:template match="highlight">

      <fo:inline background-color="yellow">

        <xsl:apply-templates/>

      </fo:inline>

  </xsl:template>

 

And this: 

<xsl:template match=" span[@class='highlight']" >

      <fo:inline background-color="yellow">

        <xsl:apply-templates/>

      </fo:inline>

  </xsl:template>

 

Thanks,

 

*~*~*~*~*~*~*~*~* 

Reginald Cunningham 

Division of Data Dissemination Systems (DDDS): LABSTAT

Room 5110 (QCT Room) 

e-mail: cunningham.reginald at bls.gov 

(202) 691-7354 

*~*~*~*~*~*~*~*~* 

 

 

-----Original Message-----
From: daisy-bounces at lists.cocoondev.org [mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of daisy-request at lists.cocoondev.org
Sent: Friday, October 27, 2006 1:00 PM
To: daisy at lists.cocoondev.org
Subject: daisy Digest, Vol 25, Issue 34

 

Send daisy mailing list submissions to

      daisy at lists.cocoondev.org

 

To subscribe or unsubscribe via the World Wide Web, visit

      http://lists.cocoondev.org/mailman/listinfo/daisy

or, via email, send a message with subject or body 'help' to

      daisy-request at lists.cocoondev.org

 

You can reach the person managing the list at

      daisy-owner at lists.cocoondev.org

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of daisy digest..."

 

 

Today's Topics:

 

   1. Re: How do I add a highlight button to Daisy's WYSIWYG editor

      (christophe blin)

 

 

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

 

Message: 1

Date: Fri, 27 Oct 2006 18:27:43 +0200

From: christophe blin <cblin at tennaxia.com>

Subject: Re: [daisy] How do I add a highlight button to Daisy's

      WYSIWYG editor

To: Daisy at tennaxia.net:open source CMS - general mailinglist

      <daisy at lists.cocoondev.org>

Message-ID: <4542337F.9070506 at tennaxia.com>

Content-Type: text/plain; charset=windows-1252

 

have you followed the instructions provided here

http://cocoondev.org/daisyscratchpad/g1/215.html ?

if no, please do so.

if yes, have you restarted the wiki ?

 

regards,

chris

 

Cunningham, Reginald - BLS a écrit :

>

> Morning,

>

> I want to add a style/element to my span tag called "highlight" to

> work in a manner similar to that in MS Word. I modified the code in

> the default.css, daisy_edit.js, and the htmlcleaner.xml files to

> include the aforementioned style. When I open the editor, I see my

> change was properly added on the style drop-down list and the text I

> wish to highlight. However, when I click the save button, the HTML

> cleaning kicks in and my highlight is removed. Any advice as to how I

> could implement this element along with the necessary GUI editing support?

>

> Thanks

>

> *~*~*~*~*~*~*~*~*

> *Reginald Cunningham*

> Division of Data Dissemination Systems (DDDS): LABSTAT

> Room 5110 (QCT Room)

> e-mail:* **cunningham.reginald at bls.gov*

> (202) 691-7354

> *~*~*~*~*~*~*~*~*

>

> ------------------------------------------------------------------------

>

> _______________________________________________

> daisy community mailing list

> Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html

> mail to: daisy at lists.cocoondev.org

> list information: http://lists.cocoondev.org/mailman/listinfo/daisy

>   

 

-- 

 

_____________________________________________________________________

Tennaxia, www.tennaxia.com,

Pilotez vos obligations environnementales

_____________________________________________________________________

Siège social :

6, rue Léonard de Vinci - 53001 Laval Cedex -

Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77

Agence Paris :

19, rue réaumur - 75003 Paris -

Tél : 01 42 77 04 19 - Fax : 08 25 19 19 61

Agence Lyon :

Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -

Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

The information in this message sent by TENNAXIA is confidential 

and may be legally privileged. It is intended solely for the 

addressee(s). Access to this message by anyone else is unauthorized.

If you are not the intended recipient, please delete it and notify 

the sender : any disclosure, copying, distribution or any action 

taken or omitted to be taken in reliance on it, is prohibited and 

may be unlawful.

 

 

 

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

 

_______________________________________________

daisy community mailing list

Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html

mail to: daisy at lists.cocoondev.org

list information: http://lists.cocoondev.org/mailman/listinfo/daisy

 

 

End of daisy Digest, Vol 25, Issue 34

*************************************

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20061030/aebb0d91/attachment-0001.htm


More information about the daisy mailing list