Re: AW: [flexcoders] Rich Text Editor

2008-02-17 Thread Weyert de Boer
If you start with a simple one-line editor without rich. You can do this:

1. create text field instance (set dynamic, disable selectable, 
editable)
2. create your own caret cursor (simple drawing api)
3. create your own canvas instance (for the selection rectangle)
4. catch the keydown-events (to handle left, right keys, and to 
update the text etc.)
5. catch mousedown-event (to reposition the caret)
6. handle the selection yourself (caret position, selection start, 
selection end)
7. write method to resolve a x,y position to the character index 
(e.g that caret position ;))
8. write method to resolve x,y position from a character index (to 
position to caret correctly)
9. write method to move the caret to this position

Really easy! Second step would be to support multiline in a similar 
matter and then support richtext...

Yours,
Weyert


Re: AW: [flexcoders] Rich Text Editor

2008-02-17 Thread EECOLOR
A response I got from the Buzzword team:

"Thanks for your feedback, and your focus on making Flex an even better
platform for developing rich Internet applications. We have often heard the
request for a rich editing component in Flex - it certainly would have made
the Buzzword development task easier. There are a number of ways for Adobe
to approach this, and I know the Flex team is looking at just such a
capability for their next big release. A native component will be a better
solution than any attempt to morph Buzzword in that direction. For more
information on developments in Flex, you could check out Adobe Labs
(http://labs.adobe.com)."

So do not put your hopes up for a buzzword component.


Greetz Erik




On 2/17/08, Weyert de Boer <[EMAIL PROTECTED]> wrote:
>
> Easiest way is just to use a dynamic text field and make your own editor.
>  Messages in this topic
> (
> 2) Reply (via web post)
> |
>  Start
> a new topic
> 
> Messages
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> [image: Yahoo! 
> Groups]
> Change settings via the 
> Web(Yahoo!
>  ID required)
> Change settings via email: Switch delivery to Daily Digest<[EMAIL 
> PROTECTED]:+Digest>| Switch
> format to Traditional<[EMAIL PROTECTED]:+Traditional>
> Visit Your Group
> |
>  Yahoo!
> Groups Terms of Use  | Unsubscribe
> <[EMAIL PROTECTED]>
> Recent Activity
>
>-  92
>New 
> Members
>
> Visit Your Group
> 
> Yahoo! Finance
>
> It's Now 
> Personal
>
> Guides, news,
>
> advice & more.
> Ads on Yahoo!
>
> Learn more 
> now.
>
> Reach customers
>
> searching for you.
> Women of Curves
>
> on Yahoo! 
> Groups
>
> see how women are
>
> changing their lives.
> .
>


Re: AW: [flexcoders] Rich Text Editor

2008-02-17 Thread Weyert de Boer
Easiest way is just to use a dynamic text field and make your own editor.


Re: AW: [flexcoders] Rich Text Editor

2008-02-16 Thread Derrick Anderson
just go to the RichTextEditor.mxml in the framework source, i have attempted
to extend it but changed my mind as most of the properties i wanted to
modify were excluded in the original source.

once i noticed the richtexteditor is a simple mxml page with really only 2
functions that i cared about- it was easy to create my own RTE (only with
the formatting supported by the TextRange object though).

check out the source, see how they built theirs- and you can decide if you
want to extend it or develop one of your own.

d.

On Feb 16, 2008 6:03 AM, Harald Dehn <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> could you give me some hints how to extend the RTE or develop an improved
> one?
>
> Harakd
>
> -Ursprüngliche Nachricht-
> Von: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] Im
> Auftrag von Weyert de Boer
> Gesendet: Freitag, 15. Februar 2008 19:54
> An: flexcoders@yahoogroups.com 
> Betreff: Re: AW: [flexcoders] Rich Text Editor
>
>
> Well, you can roll that your own I had the idea to write a series of
> articles about how to write custom components for Flex -- and after the
> smiley component I want to work on a RTE component. Only I haven't heard
> back from Adobe yet about this article idea. Maybe I should just put it
> on my blog :)
> >
> > Hi Gordon,
> >
> > yes but we don't need the full functionality of buzzword, for example
> > we don't need tables. Our problems with the RTE component are:
> >
> > - htmlText - we like to generate pdf-documents with the .net-backend.
> >
> > - missing image support
> >
> > - missing page view and a page counter
> >
> > Harald Dehn
> >
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>  
>


Re: AW: [flexcoders] Rich Text Editor

2008-02-15 Thread Weyert de Boer
Well, you can roll that your own I had the idea to write a series of 
articles about how to write custom components for Flex -- and after the 
smiley component I want to work on a RTE component. Only I haven't heard 
back from Adobe yet about this article idea. Maybe I should just put it 
on my blog :)
>
> Hi Gordon,
>
> yes but we don’t need the full functionality of buzzword, for example 
> we don’t need tables. Our problems with the RTE component are:
>
> - htmlText - we like to generate pdf-documents with the .net-backend.
>
> - missing image support
>
> - missing page view and a page counter
>
> Harald Dehn
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/