Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-7384

AlloyEditor plugin created as per official tutorial no longer works after hotfix-2076-7110

    Details

      Description

      Reproduction steps:

      1) Patch 7.1 DXP vanilla with dxp-11-7110 + hotfix-2497-7110 (This patch contains the solution for LPS-98752), start the server, login as Admin
      2) Compile and deploy the plugin described at: https://help.liferay.com/hc/en-us/articles/360018168371-Creating-New-Buttons-for-AlloyEditor. Its repo is here: https://github.com/liferay/liferay-docs/tree/7.1.x/en/develop/tutorials/code/osgi/modules/com.liferay.docs.my.button, I'll attach the src and .jar
      3) Open the browser's dev console
      4) Add a Web Content Display widget onto the Welcome page > plus button on top-right > Add Web Basic Content
      5) Type a title and a text in the Content field
      6) Highlight the text in the Conten field and click on the "+" button on its left

      Expected: A "Desktop" button will appear on the very right of the toolbar, if you click it, you'll see the highlighted text printed in the browser's console.
      Actual behavior: These errors will be printed in the browser's console:

      create-react-class.js:1223 Warning: ReactClass: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got undefined.
      and
      
      version.js:1 TypeError: this.getStateClasses is not a function
          at Object.render (my_button.jsx:81)
          at qi (version.js:1)
          at Vi (version.js:1)
          at Xi (version.js:1)
          at fl (version.js:1)
          at dl (version.js:1)
          at Jl (version.js:1)
          at Ql (version.js:1)
          at Wl (version.js:1)
          at bl (version.js:1)
      

      Reproduced on 7.1.x-private
      Can't test on master

        Attachments

          Activity

            People

            Assignee:
            julien.castelain Julien Castelain
            Reporter:
            orsolya.lukacs Orsolya Lukács (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.1.x