Inserting RTF blocks from file

  • Hello... :-)

    If I enter something into the RTF field with Copy/Paste or manually, then the value is saved into the database field. If the content is entered into the field via Load and then confirmed with Post, then the content is deleted. :-(

    What should I do? Thanks for information.

    Version:

    *** WPTools 8.01.1 - 3.11.2017 ***

    • Offizieller Beitrag

    Please, before any programmatic update in the DBWPRichText call DBWPRichText1.Changing.

    In case of the load button in the toolbar you can trap the user click in the event OnToolbarIconSelection of the TWPRichText (or TDBWPRichText) and execute Changing there.

    Please see the default implementation in WPCtrRich.pas to undrestand how this handler works.

  • Thanks... :-)

    Unfortunately, that doesn't work. As you can see from the video, the amount of data goes into edit mode when you insert it. (Navigator) Only the RTF field doesn't notice the change! (see button "Previous")

    What I tried:

    1: "Changing" in the event handler

    2: "Query.Edit" in the event handler

    3: In the "AfterLoadText" workaround add/remove a space to me

  • Hi... :-)

    ticket taken care of...

    Bill to follow... :-)