If I understand, you want to select some text, and click a button to add
<b></b> around it?
I have an example of that here:
http://www.richardinfo.f2s.com/dynapi/Richard_Examples/bold_italic_onTheFly.
html
you don't see the tags, because they are rendered, but in a text box you
would see them of course.
This doesn't specifically need the DynAPI.
Cheers,
Richard Bennett
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.51)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
From: "Paul K Egell-Johnsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 4:33 PM
Subject: Re: [Dynapi-Help] I need some advice/can ECMA/JAVA-script do this?
> Paul K Egell-Johnsen wrote:
> >
> > I'm in the process of creating an offer for a customer based on a
> > specification which a third party has developed for them. One of the
> > things they want is "the ability for non-HTML fluent people to create
> > informational webpages for their site", this should include "buttons to
> > insert HTML-tags into the text written." This should be done "through
> > the webpages of the delivered product".
> >
> > Now is it possible to do this? Have in mind that what they probably is
> > thinking is that a person should be able to mark a portion of text in a
> > text field and then press a button to get a header, or bold text.
> >
> > My gut says yes (after seing all the demos of Dynapi), this is possible,
> > but I don't have any experience at all with javascript (we tend to avoid
> > it in our webprojects).
>
> Let me rephrase this a bit. We have a server side system based on PHP
> and MySQL which we use when creating solutions for our clients. The
> contents are edited through forms (and uploads) and inserted into the
> database. The point is that for this proposal one of the requirements is
> the above. Ie. they want some buttons on the page which will insert HTML
> into the text areas where the contents are being edited.
>
> The question then is if I can get the selected contents in such a box
> and add strings to the front and end of that contents and write it back
> to the same position. A normal cut and paste operation, I would guess.
>
> I'm pretty sure that DynAPI can do this, but I've yet to try out the
> API; I've just been lurking to see what happens with it.
>
> --
> Paul K Egell-Johnsen
> Developer/PR Manager
> eZ systems as
> http://ez.no/
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help