How to dynamically add new FlowElement elements to existing through markup TLF TextFlow

Is there a way to create a new item of FlowElement (for example a DivElement) of markup text without having to go through the TextFilter.importToFlow function?

What I'm trying to accomplish is the following:
I have an already built TextFlow.
I get a text I want to inject into the TextFlow as a new item somewhere in the existing TextFlow.

The method I use to achieve this is to create a second TextFlow from markup via the importToFlow function. Can I get the second flow element and make a deepCopy of it in a new item 'not known '. Finally, I use this new 'owner' element in my main code by adding it as a child of the original TextFlow.
My function that focused.
Thank you.
Tim

There isn't anyway to do today without the help of importToFlow.

Looks like what you want is similar to innerHTML and innerXHTML. Ideally, TLF would be offered to the implementations for getInnerTLFMarkup and setInnerTLFMarkup for use as described below. I also suspect that if TLF should implement these features today we would use importToFlow under the hood.

read the markup
var flowElement:FlowElement = getFlowElement();
var tlfMarkup:String = getInnerTLFMarkup (flowElement);

write the tag
var flowElement:FlowElement = getFlowElement();
var tlfMarkup:String = getTLFMarkup();
setInnerTLFMarkup (element flowElement, tlfMarkup);

Tags: Adobe Open Source

Similar Questions

  • How do I add filter to filter refinement existing through deep link?

    Hello

    How to add a new filter to filter existing refinement who already has some filters on the inside?

    for example using the following:

    https://W2R-Eid.oraclecorp.com/Eid/Web/W2R/main?deeplink=%5b%7B%22navByValue%22: % 7B % 22viewKey % 22: 22Base % 22%, % 22values % 22...

    It will create a new filter refinement and resets everything that was previously in the filter of refinement, then it does not work

    I need to create a deep link that will Add to the current filter

    Thank you

    Rgds

    William

    EID said product management support only new filter refinement, not adding filters in deep links

  • How do I add new friends on Skype

    Hello

    How can I add new friends on my Skype (Windows client)

    Thank you

    Hi and welcome to the Skype community.

    If you want to add new friends on Skype from your account, you can check this link here:

    https://support.Skype.com/en/FAQ/FA3281/how-do-i-find-my-friends-and-add-them-as-contacts-in-Skype-f...

    Hope, he helped !
    Let me know if you need anything else

  • How can I add new fonts to lightroom in creative cloud?

    How can I add new fonts to Lightroom in creative cloud?

    Hi Iris,.

    You must add the fonts to the following location, in accordance with article: Instructions of Installation of fonts | Adobe

    Kind regards

    Tanuj

  • How can you add new profiles of lenses are not

    How you can add new profiles of lenses are not not in the drop-down list on the menu in Photoshop lightroom v5.7

    Know about patterns of goal and down, you will find a link to the profile downloader:

    Work with lenses profiles in Adobe Photoshop, Lightroom and Camera Raw

  • What I can, and if so, how do I add new a whole scanned document page numbers?

    What I can, and if so, how do I add new a whole scanned document page numbers?

    Hi davidr28146245,

    Yes, you can add page numbers to PDF scanner in Acrobat by using header & foot help Acrobat | Add headers and footers Bates numbering in PDF format.

    Kind regards

    Nicos

  • How do you add new fonts of titration?

    Hello

    How do you add new fonts of titration?

    Thank you

    arikw

    You do not actually load fonts in the Titler. You install them on your system, and if they are usable by Titler fonts (also PS, InDesign and other), they appear in the list of fonts in the Titler.

    Good luck and hope that helps.

    Hunt

  • How can I add a password to an existing network of the time capsule?

    How can I add a password to an existing network of the time capsule?

    I guess you mean that time Capsule has already been configured to provide a signal of wireless network, correct?

    Do you mean that the network has no password at all right now... or... do you mean that the network has an existing password, but you want to change the password?

    What operating system are you using on the iMac that you list in your profile?

  • How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    Hello

    So I guess you have some files in ASM, see your first existing file structure

    Select file_name

    from dba_data_files;

    and to add to an existing table, the example below (even if you're better sticking with OMFs!)-is that what you are looking for?

    SQL > create tablespace TEST1

    2 datafile '+ DATA' size 1 M;

    Created tablespace.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    6 selected lines.

    SQL > alter tablespace TEST1

    2 Add datafile ' + DATA / mynewfile01.dbf ' size 2 m;

    Tablespace altered.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    + DATA / mynewfile01.dbf

    Thank you

  • How can I add a watermark to my existing PDF document?

    How can I add a watermark to my existing PDF document?

    Hi watermarkquestion,

    Please see Acrobat help. Add a watermark to a PDF file for more information on the tattoo of a PDF file.

    Best,

    Sara

  • How can I add new contact list to contact?

    How can I add a new contact to my contact list?

    Sue,

    Tap the icon in the upper right window of Contacts +.

  • How to dynamically add a plot to a graph of mixed signals

    I have a graph of mixed signals where I'm plotting a signal from a time axis. I'm trying to dynamically add a second plot to this graph against the same time axis (with a different scale of Y), but when I built a 2D array and try to connect in the graph (using a local variable) I get an error of size mismatch. I know for sure I did in the past (cable tables with different sizes for a same MSG) with no problems but, today, for some reason any I can't solve this problem.

    Am I missing something?

    Yes, you're probably writing a table 1 d somewhere that is causing to accept only 1 d. To address your problem above, just put a table node build in whenever you have a 1 d table and it will be just a 2D array with a single line of data.

    To add a field to your current locations, your screenshot above should work once the plot knows that he has to accept the 2D tables.

    Reading from a local variable, change something and then write about it once again can lead to a lot of issues down the line. Race conditions are a pain in the butt, so get rid of that sort of thing is good to do from the start. I didn't know the rest of your code, so I don't know how you treat it, but just keep in mind that you add to your software.

  • How to dynamically add an Option in the drop-down list?

    I have this code:

    {Drop-down list

    ID: list

    Title: 'list '.

    onCreationCompleted: {}

    opion var = new Option();

    opion. Text = "Hello";
    opion. Value = 4;

    List.Add (opion);

    }

    }

    After the launch of the application, the list is empty.

    Why my code does not work?

    It is easy to dynamically add options

    first add this to your attachedObjects:

    ComponentDefinition {
                id: optionDefinition
                Option {
                }
            }
    

    then do something like this

    var newOption = optionDefinition.createObject()
                newOption.text = ...
                newOption.value = ...
                newOption.description = ...
                newOption.selected = ....
                yourDropDown.add(newOption)
    
  • How do you add new shortcuts keyboard for the ESTK?

    keyboard shortcuts.JPG

    In many applications of our days, the user has the possibility to add new shortcuts keyboard beyond those that exist among the plethora of keyboard coming already prepackaged assignments. According to their number and the how an existing feature has been located on the keyboard, the user might have to deal with the conflict of the F2 key to their new macro shortcut assignment while making the assignment previous null.

    The ESTK interface seems to have some of these features; for example, editing-> Preferences-> keyboard shortcuts, however, I am unable to find out where and how the user can add a new macro, and assign a keyboard shortcut.

    In this example, everything I wanted to do was to decide quickly on a line or a block of comments from a script. Currently (CS6), the only options seem to be limited to Shift + Ctrl + K using this method will insert only / / ~ at the beginning of a line already has text on it and will not work on a new blank line.

    How can we (CS6) ESTK user adds a new macro and assign it a keyboard shortcut?

    I thank very you much for any answer.

    Kelly

    > How the (CS6) ESTK user adds a new macro and assign it a keyboard shortcut?

    You can't, unfortunately.

    Peter

  • How can I add new menu item in the context Menu of Flash CS6? (Not ActionScript)

    Hi all!

    I want to add my custom here menu item. I did the script jsfl that calculate eveyrting I need. I want to add the custom for her menu item. How can I do this?

    I see you there 'Generate Sprite Sheet' - I could do the same thing?

    question.png

    Hello

    The only places where you can add separate menu options lies in the command menu or add new extensions that appear in the windows-> menu other panels. There is no other way in which the menus can be added without being replaced by the Flash Code.

    For more information about adding separate entry into the menu commands or the Windows menu.

    (Menu) - add the jsfl script to C:\Users\\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Commands

    and that automatically will be appear on the Menu commands on Flash raises.

    (2) add a (panel) for the C:\Users\ Flash SWF\AppData\Local\Adobe\Flash CS6\en_US\Configuration\WindowSWF folder.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional Team.

Maybe you are looking for

  • Sierra installation was interrupted. How now can I install it? Its been downloaded, but I do not know where to go to start the installation.

    I installed sierra on the Mac without problem. However, on the same machine, there was an interruption (power). The operating system now indicates that downloaded but do not know how to restart the installation.

  • No sound during video playback

    Recently, I lost my audio when you play any type of video on the Firefox Web site. I've updated all my plug-ins including Adobe Flash, Java and my video card. I don't feel the same problems when you use Internet Explorer. I am running Windows 7 Profe

  • IPhoto import, duplicates Handeling

    I heard that when you import an iPhoto library in pictures, Photos provides assistance to the detection and removal of the photos in the iPhoto library double. Is this correct? If so, how does this work? I tried to search for this topic, but Apple di

  • Skype crashes, please help

    (since 2 days. There is nothing extraordinary. only install programs or updates.) everytime I open Skype. I see the loading/login screen. After the screen. nothing appears more. (the startup sound is cut too.) Sometimes, when I open it, I can use 1 s

  • install windows on mac

    I Macs to install windows... can any one give me complete A-Z guide how do you...