Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-54335

Pressing 'Enter' or 'Tab' while working with bullet point results to an Error

    • Icon: Bug Bug
    • Resolution: Unsolved Mysteries
    • Icon: Low Low
    • None
    • Chrome

      I have found an error which can be re-generated by taking below step,

      1) Create new confluence document.
      2) Add bullet point
      3) Try to indent with tab so that we can get indented bullet
      4) Chrome console will show you an error,

      Error:
      Uncaught TypeError: Cannot call method 'indexOf' of undefined

      Code:

      VM318.js
      // Some comments here
      try {
      /* module-key = 'com.atlassian.confluence.editor:editor-javascript-resources', location = 'tinymce3/plugins/propertypanel/js/tinyMce-property-panel-links.js' */
      (function(b){var a=0;AJS.Confluence.PropertyPanel.Link={name:"link",canHandleElement:function(c){return c.is("a")&&c.attr("href")!="#"&&!c.hasClass("unresolved")},handle:function(i){var h=i.containerEl;var d=i.ed,c=function(j){return AJS.Rte.getEditor().getLang(j)},e={anchorIframe:AJS.Rte.getEditorFrame()},f=b(h).attr("href").indexOf("#")==0,g=[{className:"link-property-panel-goto-button",text:c("propertypanel.links_goto"),tooltip:f?c("propertypanel.links_goto_disabled_tooltip"):h.href,href:h.href,disabled:f,click:function(){AJS.Confluence.PropertyPanel.destroy();var j=tinymce.isIE?"_blank":"confluence-goto-link-"+AJS.params.pageId+"-"+a;var k=window.open(h.href,j);if(k){k.focus()}}},{className:"link-property-panel-edit-button",text:c("propertypanel.links_edit"),tooltip:c("propertypanel.links_edit_tooltip"),disabled:b(h).hasClass("createlink")||!h.href,click:function(){AJS.Confluence.PropertyPanel.destroy();d.selection.select(h);Confluence.Editor.LinkBrowser.open()}},{className:"link-property-panel-unlink-button",text:c("propertypanel.links_unlink"),tooltip:c("propertypanel.links_unlink_tooltip"),click:function(){AJS.Confluence.PropertyPanel.destroy();d.execCommand("mceConfUnlink",false,h);d.focus()}}];AJS.Confluence.PropertyPanel.createFromButtonModel(this.name,h,g,e);a++}}})(AJS.$);AJS.bind("init.rte",function(){AJS.trigger("add-handler.property-panel",AJS.Confluence.PropertyPanel.Link)});
      } catch (err) {
          if (console && console.log && console.error) {
              console.log("Error running batched script.");
              console.error(err);
          }
      }
      

            [CONFCLOUD-54335] Pressing 'Enter' or 'Tab' while working with bullet point results to an Error

            No work has yet been logged on this issue.

              shaffenden Steve Haffenden (Inactive)
              dba84f848243 Krutarth Majithiya
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: