Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insertTableElement method #38

Open
hferreira opened this issue Dec 14, 2017 · 3 comments
Open

insertTableElement method #38

hferreira opened this issue Dec 14, 2017 · 3 comments

Comments

@hferreira
Copy link

How to use TLF Table with (textFlow.interactionManager as IEditManager).insertTableElement ?

Gives me the following exception: ArgumentError: NewElement not of a type that this can be parent of. TextFlow
cannot own table

@Harbs
Copy link
Owner

Harbs commented Dec 14, 2017

A TableElement must be a child of a ParagraphElement.

Make sure you use TLF in https://github.com/apache/flex-tlf All changes in this repo were merged into that and are included in the latest release of Apache Flex. This repo is outdated.

@Harbs
Copy link
Owner

Harbs commented Dec 14, 2017

I'm also not sure that IEditManager.insertTableElement was ever properly tested. It might not work.

If it does not work, I'd suggest filing a JIRA for Flex. https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=44&projectKey=FLEX

If you figure out how to fix it (assuming it's broken) pull requests to TLF are welcome.

@hferreira
Copy link
Author

"A TableElement must be a child of a ParagraphElement"
The insertTableElement requires a tableElement

"I'm also not sure that IEditManager.insertTableElement was ever properly tested. It might not work."
I thought exactly the same and before post this issue looked around with none example on the web.

"If it does not work, I'd suggest filing a JIRA for Flex. "
Done yesterday.

"If you figure out how to fix it (assuming it's broken) pull requests to TLF are welcome."
I'm on it. Yesterday I also posted support (my code donated) for image base 64 string with full support for export and import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants