If you convert XML to string READ THIS!!!

2015-12-18 Thread Joel Marks
I want to make everyone aware of a bug that Adobe is saying is in Chrome. If you use xml.toXMLString() or xml.toString() or String(xml) there is a possibility that your xml is going to be clipped for users that are on 32 bit Chrome on Windows. If you want more information you can refer to the

Re: Pasting behavior in TLF

2015-07-01 Thread Joel Marks
Sorry for not replying earlier. I only check this mailing list about once a month or so. We rolled our own RTF parsing solution and it sucked. RTF sucks in general. I would suggest what we are doing with our new text editor written in Dart and just use HTML. TLF doesn't include a parser for that

Re: TextFlowLine recycling

2014-11-07 Thread Joel Marks
We have had if (_curElementStart == _curParaStart+_curParaElement.textLength) break; get off before because we accidentally edited the model during composition. TLF really hates when you do that. On Fri, Nov 7, 2014 at 2:50 AM, Erik de Bruin e...@ixsoftware.nl wrote: No, please go ahead, I

Re: TextFlowLine recycling

2014-11-06 Thread Joel Marks
What was the stack trace? On Thu, Nov 6, 2014 at 11:29 AM, Harbs harbs.li...@gmail.com wrote: On Nov 6, 2014, at 7:15 PM, Alex Harui aha...@adobe.com wrote: My memory is a bit fuzzy. I thought TextLine recycling wasn’t per-paragraph, or is there a TextBlock per paragraph? There’s

Re: To FlexJS or not to FlexJS

2014-11-06 Thread Joel Marks
@Harbs we http://workiva.com are in a very similar position. Unfortunately we have kind of given up on Flex but the grass hasn't been very green on the other side. Our production application which uses our custom version of TLF 1 is still all in Flex. But, we have a viewer that is in JS which is

Re: TextFlowLine recycling

2014-11-06 Thread Joel Marks
I think the root of the problem is that BaseCompose.createTextLine() is returning null. The only reason why that would happen is if the line couldn't fit in the space provided. I am not sure why ComposeState.composeNextLine() is trying to do _curLine.getTextLine(true) when the textLine is null. I

Re: Open source parts of FP

2014-08-28 Thread Joel Marks
Thanks for the reply Mike. Sorry I didn't realize how well documented the open source parts of Flash argument is. Applications that rely on pixel perfect text layout can not use the browser DOM because most everything in the browser world it is dependent on what browser and OS you use. This has

Open source parts of FP

2014-08-27 Thread Joel Marks
http://www.adobe.com/cn/devnet/flash/articles/tlf-overview.html) inside of the Flash Player are of particular interest to me and anyone else that was using TLF in their Flex application. This also has potential of making the effort for Flex JS easier. Thoughts? Thanks, Joel Marks Workiva https

Re: Table cell selection

2014-05-28 Thread Joel Marks
Our company created our own version of tables that we wanted to mimic more closely to Excel than HTML tables. We are doing this by TLF recognizing the table as being an InlineGraphicElement but we just replace the source with a Sprite that has our custom table UI. We have a ITableSelectionManager