Upgrading from v4 to v6: Equivalents

  • Hi,

    We are upgrading from WP Tools v4 to v6 and we have came across numerous situations where procedures/functions and properties have now been removed.

    Could anyone tell me the equivalents for the following:

    WPRichText.UpdateGUI
    WPRichText.GetAttrAtXY
    WPRichText.HTMLFilePath
    WPRichText.CreateImages
    OneWrtStyle.afsHyperlink

    Regards,
    James.

    • Offizieller Beitrag

    Hi,

    Please also check "Upgrade V5 FAQ"
    http://wpcubed.com/forum/viewforum.php?f=14

    Version 6 is based on Version 5 which is based on a new editor kernel. The old V4 kernel was simply not capable to do what WPTools (premium) now can:
    - wysiwyg header+footer
    - text boxes
    - footnotes
    - stable moveble images
    - 100% wysiwyg

    >>WPRichText.GetAttrAtXY
    there is no direct method, ther are also no PTAttr pointers anymore - you need to use GetLineFromXY and read the "CharAttr" index value at posinpar. That index value use in AttrHelper and get so the required font info.

    >>WPRichText.HTMLFilePath
    The Reader and writer objects have a path property which can be used in the events.

    >>WPRichText.CreateImages
    What should it do?

    >>OneWrtStyle.afsHyperlink
    Does not exit anymore - a hyperlink now consist of two objects, just like HTML <a>...</a>. The url is encoded in the "Source" property of the first object.

    Julian