I just released a simple TLF-based text editor. It allows the end user to have a familiar interface and generates TextFlow on the fly as the user types. It’s simple and light-weight and supports most commonly used styles. It’s lighter weight than Adobe’s tlf text editor. This editor is perfect to use in a CMS.
I even implemented what I’m calling “soft bullets”. TLF 1.x doesn’t officially support bullets so I implemented it myself. The reason it’s soft is because you can insert the cursor before the bullet and type text and there are some other strange quirks, but it’s good enough to give the end user some decent styling options.
The source is released under MIT license, so feel free to use it in your apps and modify it for your needs. You can get the code on Google code.
This is really nice! It provides just what I have been looking for.
I’m surprised that Adobe didn’t formalize some development track for implementing this into Flash Builder or the open SDK. This has been by far the most painful area when trying to migrate to pure Spark based classes. Having to use the old RichTextEditor has lead to so many barriers on our projects.
Although I’m still trying to wrap my head around your implementation, I must say that his is by far the most practical TLF based editor that I have seen to date. Thanks again.
Thanks for the feedback!
Let me know if I can shed light on any implementation issues. This is the first component I’ve released so it will help me to learn how to package things better in the future.
Stephen
Hi there,
i’ve been searching for something like this aswell. This looks like a great editor indeed.
Did you find a way to set it as default editor for wordpress? That would be awesome.
Cheers,
Marijn
It’s not difficult to embed the editor in a wordpress page, though I’m guessing you meant to add it as the main editor for writing posts. That would mean that all of your posts would be displayed using flash player though. Personally, I’m okay using regular markup for that so far… I suppose it could be done, however, I haven’t.
it is not working it just hangs at the end of the loading…
I’m guessing you need to have the latest version of flash player: 10.1. I don’t think I put any version checking in the demo html wrapper.
I already have 10.1, I tried downloading the source and using it in my project. I just opened a new project in Flash Builder, Added the swc to the libs, Dragged a TLFTextEditor component and tried running the project, it crashes and this is what I get:
TypeError: Error #2007: Parameter antiAliasType must be non-null.
at flash.text::TextField/set antiAliasType()
at mx.core::UITextFormat/measure()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UITextFormat.as:570]
at mx.core::UITextFormat/measureText()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UITextFormat.as:492]
at mx.core::UIComponent/measureText()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8431]
at mx.controls::TextInput/measure()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\TextInput.as:1856]
at mx.core::UIComponent/measureSizes()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8042]
at mx.core::UIComponent/validateSize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7966]
at mx.managers::LayoutManager/validateSize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:617]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:709]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]