I saw this post and was wondering something similar: Can someone tell me if there is a "Work in Progress" on a FLEX 2.0 or Flash Pro 8.x or 9 Rich Text Editor?
I'm using one now, but they keep changing the licensing and I'm uncomfortable with it for the long term. Also, might Adobe/Macromedia consider a way to render both their version of html and normal html that can be used in a regular page (there are just many times this needs to be done). --- Brian McPheeters <[EMAIL PROTECTED]> wrote: > This works great. Anyone ever tried to create a html to rtf converter in > flex? My final result > needs to be in rtf. > > ________________________________ > > From: [email protected] on behalf of Christoph Diefenthal > Sent: Wed 11/23/2005 7:27 AM > To: '[email protected]' > Subject: RE: [flexcoders] RTF Editor Integrated into Flex > > > Check THIS out :) > > Flex 1.5 - RichText Editor > > Found it once. I think it was in this group. Works pretty good. > Thanks for that. > > > > import mx.core.UIComponent; > import mx.controls.Button; > import mx.controls.TextArea; > import mx.controls.ComboBox; > > import mx.utils.Delegate; > //import com.avsa._general.components.editor.*; > //import com.avsa._general.components.colorpicker.*; > > //class com.avsa._general.components.editor.Editor extends UIComponent { > class TextEditor extends UIComponent { > > static var symbolName:String="TextEditor"; > static var symbolOwner:Object = TextEditor; > var className:String = "TextEditor"; > > function TextEditor() { > } > > function init():Void { > super.init(); > invalidate(); > } > > var start:Number; > var end:Number; > > var btBold:Button; > var btItalic:Button; > var btUnderline:Button; > > var btLeft:Button; > var btCenter:Button; > var btRight:Button; > > var cComboSize:ComboBox; > var cComboFont:ComboBox; > > var cText:TextArea; > > var cTempField:TextField; > > var cTempFormat:TextFormat; > > //var cColor:ColorPicker; > > //temp > var focusListener:Object > > > function createChildren():Void { > //======================================================== > // Buttons > //======================================================== > createClassObject(Button, "btBold", 11, {label:"B"}); > createClassObject(Button, "btItalic", 12, {label:"I"}); > createClassObject(Button, "btUnderline", 13, {label:"U"}); > > createClassObject(Button, "btLeft", 14, {label:"L"}); > createClassObject(Button, "btCenter", 15, {label:"C"}); > createClassObject(Button, "btRight", 16, {label:"R"}); > > btBold.addEventListener("click", this); > btItalic.addEventListener("click", this); > btUnderline.addEventListener("click", this); > > btLeft.addEventListener("click", this); > btCenter.addEventListener("click", this); > btRight.addEventListener("click", this); > > btBold.move(0,0); > btItalic.move(50,0); > btUnderline.move(100,0); > > btLeft.move(0,20); > btCenter.move(50,20); > btRight.move(100,20); > > //======================================================== > // Combos > //======================================================== > var aSizes:Array = new > Array(8,10,12,14,16,18,20,22,24,26,28,30,32,34); > createClassObject(ComboBox, "cComboSize", 21, > {dataProvider:aSizes}); > > var aFont:Array = new Array("Arial","Courier","Times New > Roman","Verdana"); > createClassObject(ComboBox, "cComboFont", 22, > {dataProvider:aFont}); > > cComboSize.move(-200,0); > cComboFont.move(-200,20); > > cComboSize.addEventListener("change", this); > cComboFont.addEventListener("change", this); > > //======================================================== > // TEXT AREA > //======================================================== > createClassObject(TextArea, "cText", 4, {html: true, > id:"cText", editable : false, htmlText : "test test"}); > cText.width = 300; > cText.height = 150; > > cText.move(0,50); > > cText.addEventListener("keyUp", this); > cText.addEventListener("mouseUp", this); > cText.addEventListener("mouseOut", this); > > > //======================================================== > // TEXT FIELDS > //======================================================== > createTextField("cTempField", 5, 100, 100, 1, 1); > > > cTempField.type = "Input"; > cTempField.multiline = true; > cTempField.move(0,250); > cTempField.border = true; > cTempField.html = true; > cTempField.text = "Ola"; > cTempField.visible= true; > > > //======================================================== > // TEXT FORMAT > //======================================================== > cTempFormat = new TextFormat(); > > //======================================================== > // Color Picker > //======================================================== > //createClassObject(ColorPicker, "cColor", 10, {}); > //cColor.move(150,0); > > //cColor.addEventListener("change", this); > > /* > focusListener = new Object(); > focusListener.onSetFocus = function(oldFocus_txt, > newFocus_txt) { > //cText.text = "Old = "// + oldFocus_txt._name + "\nNew = > " + newFocus_txt._name; > //oldFocus_txt.border = false; > //newFocus_txt.border = true; > //newFocus_txt.text = "id = " + oldFocus_txt._parent.id; > if(newFocus_txt._parent.id == "cText") > { > Selection.setSelection(start,end); > } > }; > Selection.addListener(focusListener); > */ > } > > //======================================================== > // Handle Events Functions > //======================================================== > function getIndex() > { > //if (Selection.getFocus() == "_level0._obj0.cText.label") > //{ > start = Number(Selection.getBeginIndex()); > end = Number(Selection.getEndIndex()); > //} > //cTempField.text = "Start = " + start + " End = " + end ; > //getFormat(); > } > > function setAlign(type:String){ > cTempFormat.align = type; > } > > function setBold(){ > cTempFormat.bold = (!cTempFormat.bold); > } > > function setItalic(){ > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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/ <*> 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/

