开发者

Adobe Flex RichTextEditor

开发者 https://www.devze.com 2023-02-08 05:24 出处:网络
is there any way to save text on adobe richtexteditor to text fil开发者_如何转开发e or somethin?to save an TextFlow-Object into String or XML, there are two methods.

is there any way to save text on adobe richtexteditor to text fil开发者_如何转开发e or somethin?


to save an TextFlow-Object into String or XML, there are two methods. also you can import it. So you can save content of an TLF in database or whereever.

Import:

TextFlowUtil.importFromString(string) 
TextFlowUtil.importFromXML(xml)

Both methods offer an second parameter for the whitespaces.

Export:

outputTextArea.text = TextFlowUtil.export( inputTextArea.textFlow ).toXMLString();

BR Frank

0

精彩评论

暂无评论...
验证码 换一张
取 消