You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2004/11/25 13:47:20 UTC
[SOLVED] RE: htmlArea - inserting special characters
Thanks; what I have done is add the following code
to my initFunction(areaID) {called by the textarea
that needs the htmlArea display):
config.registerButton({
id : "degrees",
tooltip : "degrees",
image : "resources/htmlarea/images/ex_degrees.gif",
textMode : true,
action : function(editor) { editor.insertHTML('°'); },
context : ""
});
and then added the button ID to the config.toolbar property.
Derek
>>> H.vanderLinden@MI.unimaas.nl 2004/11/18 03:47:40 PM >>>
Derek,
If you look closely at the HTMLarea script, you'll see a
"registerButton"
function with an explanation on how to do that. So you will need an
initialisation function that a.o. creates a new button with the
accompanying
function on how to insert the code.
For the function on how to insert the code, my guess is to look how
they
handle a list and a <hr/>.
HTH.
Bye, Helma
> -----Original Message-----
> From: Derek Hohls [mailto:DHohls@csir.co.za]
> Sent: Thursday, 18 November, 2004 10:06
> To: users@cocoon.apache.org
> Subject: htmlArea - inserting special characters
>
>
> Has anyone located and used a plugin that allows
> you to specify a custom set of special characters
> that can be displayed on a button bar (that the user
> will 'click on' to select and paste into the text), such
> degrees, plus-minus signs etc.?
>
> If so, I'd appreciate the URL.
>
> Thanks
> Derek
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org