MediaWiki talk:Edittools

Continuing issues with Form Button/Drop down - Solved!
(See the end of this post for solution)

I have tried the Edittools with CharInsert installed and showing on the Version page. Just as in the Edit page for this Discussion and others, the Standard character buttons appear below - but no drop-down to change to other style such as Arabic, Greek, etc.

I have done the following:


 * Installed CharInsert (shows on Version page and render the chars in a simple manner)
 * Because CharInsert nuked the Special page, I commented out

"$wgExtensionMessagesFiles['CharInsert'] = $dir . 'CharInsert.i18n.php';"

This also blocked the Js formatting from the changes as list below.


 * Created my own MediaWiki:Edittools and pasted the code from this MediaWiki:Edittools.
 * Created my own MediaWiki:Edittools.js and pasted code from the page with the same name here.
 * Created my own MediaWiki:Common.css and placed css section per the instructions.
 * Created my own MediaWiki:Common.js and have tried both calls to Edittools.js

Again, if you go to the Edit page for this Discussion page, my Edittools appear along the bottom the exact same way, except there is no drop-down box with Standard etc in it.

I have verified the $wgScript and $wgScriptPath (these are on a localhost - not yet uploaded to live server)

$wgScript = "/m/index.php"

$wgScriptPath = "/m"

What could I be missing?

Thanks!

Qaaz


 * Try checking function "includePage" in your MediaWiki:Common.js which should be the following::


 * --Kaganer 21:34, 27 May 2008 (UTC)

This doesn't work. I have been trying that and as many different variations of that as I could come up with - it simply does not make it work.

I see Edittools.js uses an event "onload". In Common.js for another extension, I use:

addOnloadHook(CustomizeModificationsOfSidebar);

Could this conflict?

Could there be something wrong with the code in MW:Edittools or Edittools.js? Are there any settings that need to be set correctly that could be different in your implementation and mine?

Thanks for your help!

P.S. Also I am using an extension for multiple uploads (Extensions:MultiUpload) - when I bring up that special page, the buttons also appear at the bottom of that page as well.


 * Qaaz

Based on my post and the two posters below having the similiar problem, I read the solution as "Try replace function "includePage" to custimised version:

function includePage( name )

The confusion arises in that both the original code had the call to the function but not the definition. I misunderstood the instructions as replace the old "includename" line of code with the new code! I need both obviously!! So the whole code to add to MediaWiki:Common.js is:

Works great now! Thanks for the great extension!


 * Qaaz

How do I disable this?
For hide (no traffic economy) this pane, add following string for your personal CSS file: For ability to disable Edittools need support this bug. --Kaganer 18:08, 17 December 2007 (UTC)

Form Button doesn't work on my Wiki
I just get the first set of options and no form or button. What am I missing here? Is it possible that this is due to the fact that I am using version 1.12alpha? Susan 17:38, 12 February 2008 (UTC)
 * This functionality almost "version-independent". For correctly working this toolbox (as is the case here) need following:
 * install extension Extension:CharInsert (supporting "charinsert" tag)
 * create MediaWiki:Edittools.js
 * place into MediaWiki:Common.js calling of MediaWiki:Edittools.js; as example, in section "Including extra .js pages" (swith "load_edittools" need set as "true"):


 * copy section "extra buttons for edit dialog" from MediaWiki:Common.css into your MediaWiki:Common.css (used for decorating Edittools buttons)
 * All these actions are fully implemented? --Kaganer 10:07, 13 February 2008 (UTC)
 * See also simple format this toolbox in w:en:MediaWiki:Edittools - without scripts; only Extension:CharInsert needed. --Kaganer 10:12, 13 February 2008 (UTC)
 * I have now implemented all of the above, and all of my choices now have buttons. However, the dropdown is still not appearing -- which is mainly what I wanted.  I copied all of MediaWiki:Common.js just in case.  Still no dropdown.  Susan 14:27, 13 February 2008 (UTC)
 * P.S., I have learned a lot, though.
 * Hmm. Check function "includePage" in MediaWiki:Common.js is return the correct path for called .js files - for your wiki. For mediawiki.org this function return path:
 * wgScript + '?title=' + name
 * where "wgScript" - variable, configuring through LocalSettings.php. Value by default: «{$wgScriptPath}/index.php», with default value of "$wgScriptPath" = «/wiki» (but on wikimedia projects value = «/w»).
 * Therefore, full correct path for mediawiki.org will be (name of called file ="MediaWiki:Edittools.js"):
 * /w/index.php?title=MediaWiki:Edittools.js
 * Please сheck these settings for your wiki. Or try purging cache...--Kaganer 18:49, 18 February 2008 (UTC)
 * I see your wiki. Correct result will be (before "&action...") = "/genwiki/index.php?title=MediaWiki:Edittools.js". Try replace function "includePage" to custimised version:


 * --Kaganer 19:05, 18 February 2008 (UTC)

....I tried hard, but I also failed to install it completely on http://wiki.gorebiobio.cl ....any idea what I might have done wrong? It s a pity because I like the drop down box much more than the long page with all characters....Thanks in advance for any hint. --Horst Salzwedel 01:11, 23 March 2008 (UTC)

Nowiki
Any nowiki additions on here? -PatPeter,  MediaWiki Support Team  22:26, 1 March 2008 (UTC)
 * I not understand this question :( --Kaganer 19:43, 2 March 2008 (UTC)


 * The system message lists   but not      and  . -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  22:52, 11 March 2008 (UTC)