Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jon 92 posts 166 karma points
    Nov 02, 2020 @ 16:51
    Jon
    0

    Upgrade to 8.9 causes rte in Grid app_plugins to break

    Hi,

    We are currently using an RTE in our own bespoke Grid control. In 8.6 it works but in 8.9 it has stopped working.

    The error we get is

    angular.js?cdv=1056369746:15635 TypeError: Cannot read property 'callback' of null at Object.reset (umbraco.services.js?cdv=1056369746:9442) at Object.submitForm (umbraco.services.js?cdv=1056369746:4866) at BoxPlainBlockEditorController.submit (s8080.boxplainblock.editor.controller.js?cdv=1056369746:61) at fn (eval at compile (angular.js?cdv=1056369746:16486),

    Our edit control html looks like:

         <input type="hidden" ng-model="model.value.text" required />
                                <umb-property property="property.rte">
                                    <umb-property-editor model="rte" />
                                </umb-property>
    

    and the code where it is breaking is here:

          if ($scope.model && $scope.model.submit && formHelper.submitForm({ scope: $scope })) {
                $scope.model.submit($scope.model);
            }
    

    Any ideas?

    Thanks

    Jon

  • Jon 92 posts 166 karma points
    Nov 03, 2020 @ 08:52
    Jon
    0

    Hi, As a follow on – the error is failing at the Callbacks list in the UmbracoService.js file in the function reset(). When I add a custom block that has an RTE it adds a NULL callback. Is there a way around this?

    enter image description here

  • Jon 92 posts 166 karma points
    Nov 03, 2020 @ 17:16
    Jon
    1

    I have found the fix - we just need to add property-alias to the umb-property:

    <umb-property property="property.rte" property-alias="boximage"> <umb-property-editor model="rte" /> </umb-property>
    
Please Sign in or register to post replies

Write your reply to:

Draft