Textobject must be attached to paragraph

  • Recompiling an application the used WPTools v4 previously, after modifying / commenting out fairly large chunks, eventially got it compiling.

    BUT, when I go to edit anything in the control, I get Textobject must be attached to paragraph! error.

    The text is being loaded from an external HTML file.

    Note: Also occurs in the WPEditHTML demo, (when loading the same file - can e-mail it over if needed, it was created with WPTools v4)

    And incidently, the cursor appears to dissappear (except for a very small flashing dot) in between lines ...

    Finally, it seems this only occurs on HTML files created with v4..

    • Offizieller Beitrag

    Hi,

    please send the HTML. This apears to be a bug in the HTML reader.

    TextObjects are now part of the TParagraph, not of the engine (Memo) as it was in V4. Most operations with TWPTextObjects can only be made if it is attached to a TParagraph (using Attach) but it may not be attached to multiple TParagraphs of course.

    All this is performed 'under the hood' - usually no reason to worry about. The WPRichText.TextObjects contains the functions to deal with the embedded objects.

    Julian