-
Bug
-
Resolution: Unsolved Mysteries
-
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); } }
Hi vulhuntapp
Thanks for the update on this. I'll close this out as an unsolved mystery.
Regards
Steve