Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26468

Creating links in RichText editor raises a JavaScript error

    XMLWordPrintable

Details

    Description

      The following issue happens on Firefox. It doesn't happen either on Chrome, Opera, Edge or IE11

      Steps to Reproduce
      • Create one object that has a richtext field (don't publish)
      • In the richtext field write something, select the complete content of the paragraph where you added some text and then click the icon to create a link
      • Fill in with a link (might be http://www.google.com)
        (Open your developer tools)
      • click the "V" icon to create a link

      In developer tools console, the following error appears

      11:47:12.478 IndexSizeError: Index or size is negative or greater than the allowed amount
      deployCKEditor/</</CKEDITOR.dom.selection.prototype.selectRanges()_ezcombo:1689
      deployCKEditor/</</CKEDITOR.dom.selection.prototype.unlock()_ezcombo:1682
      deployCKEditor/</</CKEDITOR.editor.prototype.unlockSelection()_ezcombo:1669
      deployCKEditor/</</</</<()_ezcombo:1661
      q()_ezcombo:1264
      deployCKEditor/</CKEDITOR.event.prototype</<.fire</<()_ezcombo:1266
      deployCKEditor/</CKEDITOR.dom.domObject.prototype</a/<()_ezcombo:1306
      deployCKEditor/</</CKEDITOR.editable<.proto.focus()_ezcombo:1593
      deployCKEditor/</</CKEDITOR.editable<.proto.setup/<()_ezcombo:1606
      q()_ezcombo:1264
      deployCKEditor/</CKEDITOR.event.prototype</<.fire</<()_ezcombo:1266
      deployCKEditor/</CKEDITOR.editor.prototype.fire()_ezcombo:1267
      deployCKEditor/</</<.focus()_ezcombo:1511
      _onActionPerformed()_ezcombo:36329
      bound _onActionPerformed()self-hosted
      q()_ezcombo:1264
      deployCKEditor/</CKEDITOR.event.prototype</<.fire</<()_ezcombo:1266
      deployCKEditor/</CKEDITOR.editor.prototype.fire()_ezcombo:1267
      _updateLink()_ezcombo:32402
      bound _updateLink()self-hosted
      bound bound _updateLink()self-hosted
      [56]</ReactErrorUtils.invokeGuardedCallback()_ezcombo:12561
      executeDispatch()_ezcombo:5305
      executeDispatchesInOrder()_ezcombo:5328
      [16]</executeDispatchesAndRelease()_ezcombo:4753
      [16]</executeDispatchesAndReleaseTopLevel()_ezcombo:4764
      forEach()self-hosted
      [110]</forEachAccumulated()_ezcombo:19620
      [16]</EventPluginHub.processEventQueue()_ezcombo:4969
      runEventQueueInBatch()_ezcombo:12589
      [57]</ReactEventEmitterMixin.handleTopLevel()_ezcombo:12605
      handleTopLevelWithoutPath()_ezcombo:12708
      handleTopLevelImpl()_ezcombo:12688
      [100]</Mixin.perform()_ezcombo:19053
      [48]</ReactDefaultBatchingStrategy.batchedUpdates()_ezcombo:11239
      batchedUpdates()_ezcombo:16773
      [58]</ReactEventListener.dispatchEvent()_ezcombo:12819
      bound ()self-hosted
      1_ezcombo:1689
      
      11:47:12.484 TypeError: path is null
      Y.eZ.AlloyEditorToolbarConfig.Heading.test()_ezcombo:559
      _getCurrentSelection/<()_ezcombo:36015
      some()self-hosted
      _getCurrentSelection()_ezcombo:36010
      bound _getCurrentSelection()self-hosted
      render()_ezcombo:35932
      [33]</ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext()_ezcombo:8561
      [33]</ReactCompositeComponentMixin._renderValidatedComponent()_ezcombo:8581
      [71]</ReactPerf.measure/wrapper()_ezcombo:15340
      [33]</ReactCompositeComponentMixin._updateRenderedComponent()_ezcombo:8534
      [33]</ReactCompositeComponentMixin._performComponentUpdate()_ezcombo:8518
      [33]</ReactCompositeComponentMixin.updateComponent()_ezcombo:8447
      [71]</ReactPerf.measure/wrapper()_ezcombo:15340
      [33]</ReactCompositeComponentMixin.receiveComponent()_ezcombo:8379
      [76]</ReactReconciler.receiveComponent()_ezcombo:16045
      [27]</ReactChildReconciler.updateChildren()_ezcombo:6708
      [66]</ReactMultiChild.Mixin._reconcilerUpdateChildren()_ezcombo:14623
      [66]</ReactMultiChild.Mixin._updateChildren()_ezcombo:14758
      [66]</ReactMultiChild.Mixin.updateChildren()_ezcombo:14733
      [37]</ReactDOMComponent.Mixin._updateDOMChildren()_ezcombo:9764
      [37]</ReactDOMComponent.Mixin.updateComponent()_ezcombo:9593
      [37]</ReactDOMComponent.Mixin.receiveComponent()_ezcombo:9538
      [76]</ReactReconciler.receiveComponent()_ezcombo:16045
      [33]</ReactCompositeComponentMixin._updateRenderedComponent()_ezcombo:8536
      [33]</ReactCompositeComponentMixin._performComponentUpdate()_ezcombo:8518
      [33]</ReactCompositeComponentMixin.updateComponent()_ezcombo:8447
      [71]</ReactPerf.measure/wrapper()_ezcombo:15340
      [33]</ReactCompositeComponentMixin.performUpdateIfNecessary()_ezcombo:8395
      [76]</ReactReconciler.performUpdateIfNecessary()_ezcombo:16060
      runBatchedUpdates()_ezcombo:16808
      [100]</Mixin.perform()_ezcombo:19053
      [100]</Mixin.perform()_ezcombo:19053
      [83]</<.perform()_ezcombo:16765
      [83]</flushBatchedUpdates()_ezcombo:16826
      [71]</ReactPerf.measure/wrapper()_ezcombo:15340
      bound ()self-hosted
      [100]</Mixin.closeAll()_ezcombo:19119
      [100]</Mixin.perform()_ezcombo:19066
      [48]</ReactDefaultBatchingStrategy.batchedUpdates()_ezcombo:11239
      batchedUpdates()_ezcombo:16773
      [58]</ReactEventListener.dispatchEvent()_ezcombo:12819
      bound ()self-hosted
      1_ezcombo:559:1
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: