Thread:Robert Alvarez/@comment-25737724-20150427184906

Hi Bob,

You'll notice that blog comments and LUA code edits on this site won't currently work. Go ahead and try and comment, it will just spin: User_blog:Unatratnag/Blog_Java_Script_Test

The problem is the custom buttons are trying to load on pages where it is not an option. You'll need to update MediaWiki:Common.js, and change it to only try and call these custom buttons when creating a new page since editing the blog/LUA don't have them as options. Here's an example, the whole solution is on image if you want to see that:

mwCustomEditButtons[mwCustomEditButtons.length] = { imageFile: "http: //images.wikia.com/marvel_dc/images/3/3e/Small_Button.png", speedTip: "Small", tagOpen: " ", tagClose: " ", sampleText: "Insert text" }; 