This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
I started editing Wikipedia about six weeks ago. As I made more edits and worked on larger articles, I found myself getting frustrated with the vanilla editor and thinking "if only there were an editor like CodeWright (for example) that could color-code the Wiki syntax, and maybe color my changes so I could see where I've been so far, and maybe a few other things I haven't thought of yet..." I'm a timid editor; I like to test for appearance every few changes, so doing a cut-and-paste into the vanilla editor from CodeWright or such to see how the latest few changes look is not very practical. I spent some time earlier today scouting around for alternatives and came across wikEd. People don't always appreciate all that's involved in writing something like an editor, but let me just say good job. wikEd is perfect for the kind of editing I've found myself doing. I'm sure it will have a lot of happy users. Thank you! -- CliffC 01:08, 25 October 2006 (UTC)
Maybe this is similar to what was reported in "A couple bugs?" above, but it looks like the " & n b s p ; " 's have gotten lost from that report. I recently reverted the vandalism Having withdrawn his army from Boston,he had sex with 12 women and 14 men from American Revolutionary War. If you look at the diff here [1] of the revert I did (automated, using Popups) while wikEd was my editor, you'll see that the "& n b s p ;" 's appear differently on the two sides. No big deal, but it would be confusing to a third party trying to figure out what exactly I changed. The diff seems to look the same when read with the vanilla editor.
Finally, is this the right venue to report problems like this, and is there a list posted somewhere so users don't pester you with the same problem over and over? I plan to continue to use wikEd, and will be glad (in a perverse, software-tester kind of way) to report anything else odd I might see. -- CliffC 13:58, 28 October 2006 (UTC)
(Later) A small wikiEd edit to Francis E. Dorn broke a table. It looks like the two spaces leading certain table elements were replaced by one space and an "& n b s p ;" ; and to Wikipedia table formatting that makes a difference; had to revert to the vanilla editor to fix it. -- CliffC 03:07, 29 October 2006 (UTC)
The new editor looks great, and I see it now has the full complement of buttons. Nice new color for HTML comments.
I made a copy of the Francis E. Dorn article in my own userspace at User:CliffC/Luis Fernandez de la Reguera to check the table formatting/ & n b s p problem mentioned above. I removed the double brackets from the phrase "under God", same as with the original article, and saved. The revised article now formats fine. The diff HERE shows differences in paragraphs that were not changed, so something subtle seems to be going on - maybe with double spaces?
I notice clicking the standard Insert: characters and Sign your name: below the edit window don't seem to work; not sure if this is a new problem or something that's just not finished yet. Sorry for all these PTRs... -- CliffC 15:10, 5 November 2006 (UTC) Cacycle 07:34, 6 November 2006 (UTC)[[Category:]]
There is one major bug in FF2 Mac OS X, that is that a scrollbar appears under the edit field. (Refer to the screenshot for view). O.k. so not a major bug, but an annoying one nontheless :) .
Resolution: 1024x768 Sfacets 22:01, 8 November 2006 (UTC)
Sfacets 05:28, 9 November 2006 (UTC)
The scrollbar artifact is still there. Also, all my other scripts that interacyt withe the textarea are not working. I have scripts that insert user warnings, AfD closing tags, etc. that no longer work when I have wikiEd enabled. The worked OK on the editor.js. ≈ jossi ≈ t • @ 16:08, 9 November 2006 (UTC)
The phantom scrollbar appears overlayed on top-left on text area. When I disabl;e and re-enable WikEd, the phantom scrollbar shows up at the top left of page. ≈ jossi ≈ t • @ 20:00, 9 November 2006 (UTC)
Wow, the new version looks great! One possible bug: I tried the double check button (fixes basic, HTML, etc.) on Christian views of alcohol, and it tried to strip the references' names (e.g., "SoAndSo" in code like <ref name=SoAndSo>...</ref> ... <ref name=SoAndSo />). Is that a known bug? -- Fl e x ( talk| contribs) 22:14, 8 November 2006 (UTC)
It is suggested that you display a message while the code is loading. On my system, it takes a while. The bottleneck for me is probably dial-up. Will ( Talk - contribs) 05:31, 9 November 2006 (UTC)
I finally located your X. That icon doesn't appear at all until the app loads. What I was thinking of was a large image that gets replaced once the app is ready. Will ( Talk - contribs) 23:57, 9 November 2006 (UTC)
If you look at the + tab, you will find the Edit Summary box becomes the Subject box and moves up top. The wikEd tools follow it. This appears to confuse your code. For starters, once init is complete, it scrolls the tools out of view. Next, the preview window is still below the tab. Will ( Talk - contribs) 05:33, 9 November 2006 (UTC)
Look at the top of this page. Next to the edit tab, you will see a Plus sign. Click it. Will ( Talk - contribs) 20:20, 9 November 2006 (UTC)
I noticed that too, on my first real use of this editor. It was different from what I was used to seeing with the + tab, that's all. — Długosz 20:39, 14 December 2006 (UTC)
I copied text to the edit window that had a link in it. I wanted the link text (a user name), but not the link URL (which probably would not get translated to the Wiki page name anyway). As is turned out, the check button fixed it. However, buttons like other editors have to remove formatting would be more intuitive. Will ( Talk - contribs) 05:36, 9 November 2006 (UTC)
Ok. I missed the [T] button. However, if the RTF control is used only for syntax highlighting, could you run the [T] button code on the pasted text automatically? If I paste formatted text into the control, I expect the formatted text to be submitted still formatted. Will ( Talk - contribs) 20:23, 9 November 2006 (UTC)
Then I would suggest the code that handles the paste detected them, warned the user, and offered to remove them. Will ( Talk - contribs) 02:04, 10 November 2006 (UTC)
Is there a way for the wikEd preview to expand templates? Also, can I help it with signatures by telling it what my sig is? Will ( Talk - contribs) 05:37, 9 November 2006 (UTC)
What are the details on that? Do I need to adjust some of your code for that? Will ( Talk - contribs) 23:58, 9 November 2006 (UTC)
I still don't know what to do. Will ( Talk - contribs) 02:05, 10 November 2006 (UTC)
First, visit and read
the help page on Substitution. Once you've absorbed that, experiment by copying or typing the following two items on an empty new page (live links would be a problem on this page) and see if wikEd's preview helps you out: {{FebruaryCalendar2007}}, which is a calendar template that will transclude onto the page, and {{subst:FebruaryCalendar2007}}, which previews the same way successfully, but copies the template code (however it stands at that instant) into the new page itself once it's saved. If your desire is for the template code to expand into the edit window itself during the preview, that's a tall order, considering the <noinclude> and <includeonly> factor! I would simply "edit" the template and copy and paste the code from it.
Schweiwikist
(talk)
18:06, 11 November 2006 (UTC)
All it does it cause the cursor to become a hourglass when the mouse is over that button. Will ( Talk - contribs) 05:38, 9 November 2006 (UTC)
What X? Also, which logo? The Wikipedia logo?
BTW: In this page, all occurances of the word "red" appear with a red background. Is that by design? Will ( Talk - contribs) 20:33, 9 November 2006 (UTC)
Black worried me. But the tests I just did showed you switched to white text for the black background. At least you thought about that. Has no effect on hexadecimal colors. Should it? Will ( Talk - contribs) 02:09, 10 November 2006 (UTC)
When I pasted your code into Wikia:Starwars:User:Will Pittenger/monobook.js, it had no effect. I did refresh with CTRL-F5 on both the edit page and the article page. Will ( Talk - contribs) 05:41, 9 November 2006 (UTC)
It's now visible, but still doesn't work. No button reacts to me pushing it.
BTW: When I view the source on your pages, the edit attempts to enable itself -- even with read only controls. It should even bother loading. Also, the button to disable wikEd does the same thing the Changes buttons do: show an hourglass when I click them. It also reads "Enable" rather than "Disable" from the start. —Preceding unsigned comment added by Will Pittenger ( talk • contribs)
With 0.9.12b, it does display the status icon. (I found it in the drop menu with the stuff like Watchlist.) However, the editor itself is missing. Ditto for Live Preview and all other related items. - Will Pittenger 04:23, 14 December 2006 (UTC)
Figured you might ask. Will ( Talk - contribs) 05:43, 9 November 2006 (UTC)
I used WikiEd for a day or two; here's some suggestions:
That's all for now. More speedmight be better - it's disconcerting to see WikiEd catch up half asecond or whatever after the edit box has loaded, but I realize thatthat is a nebulous and hard to implement suggestion. -- Gwern (contribs) 16:29, 9 November 2006 (UTC)
var wikEdFrameCSS = []; wikEdFrameCSS['.wikEdLinkName'] = 'color: #00f000; font-weight: bold;';
Cacycle I apply to you for adding more details about installing wikEd. I suggest creating numbered step install procedures (1,2,3). I also advise you to supply more information regarding to backwards compatibility like: works with Firefox (1.5, 2.0), MediaWiki 1.8.2, Etc. I’m sure you know this stuff. I am currently installing it and I read your instructions over and over and I couldn’t put it for work, yet. Well I edited my PHP mediawiki files and added an include line to your JS…
Found that JS and CSS variables must be added and enabled under the LocalSettings.php file for this to begin to work. Once done, all of the buttons to appear on the screen, but none work. Error given;
wikEdFrameDocument.getElementsByTagName is not a function
Not sure what's broke, but I'd like to get it fixed soon. Any ideas?
$wgAllowUserJs = true;
and $wgAllowUserCss = true;
to my LocalSettings.php
file. I went ahead and tried to do the '''{{subst:wikEd}}''' in my User:Nicklutz/monobook.js
and it didn't work. I then used the "simple" code setup and the buttons appear at the bottom of the editor window, but they don't work and give me the errors noted above in my FF logs. I really like the screen prints and know wikEd is on kick butt addon, but man, I just can't get it to sing. Also, since your database is locked, I've been unable to create an account on your Wiki. Thanks for the help!I noticed that the syntax highlighting doesn't update as you type. I have to preview my changes with the old preview button to see the new syntax. Will ( Talk - contribs) 02:11, 10 November 2006 (UTC)
The only real problem with that is how long. If you must wait several minutes, it's probably not worth it to most users. Will ( Talk - contribs) 04:26, 10 November 2006 (UTC)
UPDATE to this post: reflects changes in version 0.9.5
I can report success with version 0.9.4 of wikEd: The phantom scrollbar is now eliminated!
Here are one or two behaviors that still are going on, now that I can edit normally:
1. Using fullscreen mode while editing a comment on a User_talk page is not recommended. Refresh the page to get your editor back. Fixed.
2. When a fresh page editor is invoked, the page is apparently deliberately scrolled down such that the blueWP toolbar buttons are at the top edge of the browser page display area. This is especially convenient when starting a new page, since the"Wikipedia does not have a (whatever) page with this exact name . . ."box does not need to be read by an experienced editor. However, this is a problem when invoking the editing of a talk page comment, since the wE controls, the Subject/headline text edit strip (an edit strip is hereby defined as a single-line text edit box), and all the wE controls are above this toolbar. It seems to me better to "home" the page if possible in all cases for now, and/or make this is a user option that can be turned on and off. Unless this behavior is a bug!NOT Fixed, but see workaround below.
3. Oops, a phantom scrollbar just re-appeared when I first "hot" previewed this comment with the wikEd preview button---incidentally, the wikEd help page doesn't yet have a table describing the button bar with the preview/changes/close preview/scrollToEditButtons/scrollToEditWindow buttons---but it's gone now.Seems to be gone in v0.9.5.
4. At certain moments in a session, clicking a wE control button scrolls the page to the top instead of doing the desired action. Scrolling to reveal the button again and clicking again executes the desired task.Status of this is subject to further testing. Hard to replicate.
Need to get some sleep. Long night before this bug-reporting session. Great job so far, and ttfn.
Schweiwikist
(talk)
08:51, 10 November 2006 (UTC)
P.S. Would like to post screen shots of these anomalies if it wasn't necessary to upload them to WP with all the "red tape" first!! (odd, the loading error alert has appeared!)
Apparently not. Great job. I'll be working further for a short while.
Schweiwikist
(talk)
02:41, 11 November 2006 (UTC)
There's a decent workaround for this bug until our valiant Java coder can squash it:
Oops, almost forgot: Schweiwikist (talk) 04:16, 11 November 2006 (UTC)
Coudn't get a wikiproper capitalization above with the "Fix caps inn headers and lists" button. But using it on the list below works! Try it by clicking here.
Schweiwikist (talk) 04:38, 11 November 2006 (UTC)
Currently when I edit Wikipedia pages, the tool buttons are laid out improperly (on top of each other) and none are currently working. Futhermore, when I edit a preexisting section, the Minor Edit and Watch This Page check boxes are missing. Will ( Talk - contribs) 05:27, 12 November 2006 (UTC)
I clicked on Edit for User talk:AntiVandalBot#Tarot - External Link Deleted. This resulted in version 87484000. I then noticed that the section header for the section I had just changed was broken. So I edited the page and fixed it in version 87484342.
I have every reason to believe that wikEd caused the broken header. Will ( Talk - contribs) 05:33, 13 November 2006 (UTC)
I don't remember doing so, but it is possible. However, I think I have edited pages, including this one, with wikEd enabled -- only to discover later my changes weren't saved. There was not a version entry for my change. Will ( Talk - contribs) 08:33, 14 November 2006 (UTC)
I can rule that out. I never use the back button. In many cases, the page (typically an anon vandal's IP user page) was blank -- before and after my edit. When I notice that happens, I do use the back button and click save again. That successfully saves the page. Will ( Talk - contribs) 20:56, 14 November 2006 (UTC)
There definitely is no history entry for the missing edit. Will ( Talk - contribs) 06:58, 23 November 2006 (UTC)
Using FireFox 2.0 on Mac OS 10
≈ jossi ≈ t • @ 07:00, 14 November 2006 (UTC)
The [W] and [T] buttons have a problem. The tool tip for those buttons implies they paste the text from the clipboard. In fact, they appear to modify selected text. A button that combined the two would be welcome.
Also, with the update syntax highlighting and fixup buttons, it would be appreciated if you did not change the cursor position or selection. Will ( Talk - contribs) 20:42, 14 November 2006 (UTC)
I may add to this later. I will note new items below any comments added by others, but those new items will be listed with the initial items.
Will ( Talk - contribs) 20:47, 14 November 2006 (UTC)
Added item for support of image upload pages. -
Will Pittenger
06:36, 18 November 2006 (UTC)
I tried to readd wikEd to my monobook.js. While looking, I found other stuff I wanted and attempted to add them as well. Now the only item that is working is some adds a edit link to the top part (above the TOC) of each page. And that is providing double links.
It looks like something in more or more of the code sections below is causing part of the problems. The good news is when wikEd is working, it no longer has the problems that it had before with the disable buttons and review changes buttons not working.
I have it working again, but without any of the following. Do you happen to see any conflicts with these?
Code items not working:
//Please leave the following line //[[user:Where/usertabs]] addOnloadHook(function() { if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history return; } if (document.title.indexOf("User:") == 0 || document.title.indexOf("User talk:") == 0) { username_a = document.URL.match(/:.*:(.*)/); username=username_a[1]; addTab("http://en.wikipedia.org/wiki/Special:Contributions/" + username, "contrib", "ca-contrib", "contribs", ""); addTab("http://en.wikipedia.org/?title=Special%3ALog&type=move&user="+ username, "page moves", "ca-pagemoves", "page moves", ""); addTab("http://en.wikipedia.org/?title=Special%3ALog&type=block&user="+ username, "block log", "ca-blog", "blog", ""); addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user="+ username, "edit count", "ca-kate", "kate", ""); } });
// addPurge addOnloadHook( function (){ var x = document.getElementById('ca-history'); if(!x) return; if(x.children) x = x.children[0].href; else x = x.childNodes[0].href; addLink("p-cactions", x.replace(/=history/, "=purge"), 'purge', 'ca-purge', 'Purge the internal cache for this page', 0); });
//AUTO ARCHIVE //The header to put on top of all archives (if the archive is in 'w' mode (modes explained below)) var archiveheader = ''; //Your talk page header for to use when archiving. Remember to keep the <noinclude> tags or else your archive will have your talk page header along with it. var talkheader = '<noinclude>{{User:Mypage/header}}</noinclude>'; //Your talk page archive page. Insert "NUMBER" where the number of archive you are on goes var archiveurl = "User_talk:GeorgeMoney/ArchiveNUMBER"; //The mode to archive your talk page. Making this value 'a' will make the script add your archive to the bottom of the current archive. Making it 'w' will totally erase the contents of the current archive (usually you should set the current archive value to a new archive to avoid erasing old archives, where as in append mode (a), you should set it to your current archive to append the contents) var archivemode = 'w'; // if(readCookie('archive1') == 'yes' && window.location.href.indexOf('archivestep') == -1) { (window.location.href) = wikiurl+mytalk+'?action=edit&archivestep=2'; } function changearccontents() { document.title = "Archival Script Manager"; document.getElementById('bodyContent').innerHTML = '<div class="dontshow" style="display: none !important;"></div>\n' + ' <h1 class="firstHeading" style="display:block;">Archive Script Manager</h1>\n' + 'Current archive number (the one that you haven\'t done yet (like if I want to archive to archive 2 then that is the next one not done)): <br> <input type="text" id="archnuminput" value="' + readCookie('archivenum') + '" size="1" maxlength="4" /> <input type="button" value="save number" onclick="createCookie(\'archivenum\', document.getElementById(\'archnuminput\').value); document.getElementById(\'arclink\').href = wikiurl+archiveurl.replace(\'NUMBER\',readCookie(\'archivenum\'))+\'?action=edit&archivestep=1\';" /><br><br>\n'+ '<a href="'+wikiurl+archiveurl.replace('NUMBER',readCookie('archivenum'))+'?action=edit&archivestep=1" id="arclink" style="font-size: 2em; font-weight: bold;">Click here to begin the archive</a><br>\n' + ''; document.write('<style type="text/css">.firstHeading, .editsection {display:none;} .dontshow { display: none !important; } #content {background: honeydew !important; border: 3px solid green;} #p-cactions {display: none;}</style>'); } if(window.location.href.indexOf('archivemanage') != -1||window.location.href.indexOf('Archivemanage') != -1) { addOnloadHook(function(){ changearccontents(); }); } if (window.location.href.indexOf('archivestep=1') != -1 && window.location.href.indexOf('action=edit') != -1) { addOnloadHook(function (){ if(!readCookie('archivenum') != 'yes') { (window.location.href) = wikiurl+'User:GeorgeMoney/archivemanage' } if(archivemode == 'a') { document.getElementById('wpTextbox1').value += "\n{{sub"+"st:"+mytalk+"}}"; } else { document.getElementById('wpTextbox1').value = archiveheader+"\n{{sub"+"st:"+mytalk+"}}"; } document.getElementById('wpSummary').value = "JS: Copying talkpage to archive"; createCookie('archive1', 'yes'); document.getElementById('editform').submit(); }); } if (window.location.href.indexOf('archivestep=2') != -1 && window.location.href.indexOf('action=edit') != -1) { addOnloadHook(function (){ if(readCookie('archive1') != 'yes') { alert("You shouldn't be at \"&archivestep=2\" because you haven't completed &archivestep=1. Please read the instructions on this archiving script. Redirecting to archive manager. "); (window.location.href) = wikiurl+'User:GeorgeMoney/archivemanage'; return; } createCookie('archive1', 'no'); document.getElementById('wpTextbox1').value = talkheader; document.getElementById('wpSummary').value = "JS: Archiving talk page"; document.getElementById('editform').submit(); }); }
addOnloadHook(function() { if (document.title.indexOf("Editing ") != 0) {return;} var textArea = document.getElementById("wpTextbox1"); var text = textArea.value; var re = /<!--\[\[User:Where\/sigContract\]\];(.*)-->.*<!--ESC:(.*)-->/g; var lastIndex = 0; /* while (1) { var textSubstr = text.substr(lastIndex); alert(lastIndex); alert(textSubstr); //TODO: remove var newIndex = textSubstr.search(re); alert("newindex:" + newIndex); if (newIndex == -1) { break; } lastIndex += newIndex+1;*/ text = text.replace(re, function(str, p1, p2, offset, s) { // alert("In replacement function"); if (p1 == p2) { var newString = "-[[User:" + p1 + "|" + p1 + "]]"; scKeys[scIndex] = newString; scValues[scIndex] = str; ++scIndex; return newString; } else { return str; } }); //} textArea.value = text; });
//Localized time/date script function numToMonth(num) { if (num==0) {return "Janurary";} else if (num==1) {return "February";} else if (num==2) {return "March";} else if (num==3) {return "April";} else if (num==4) {return "May";} else if (num==5) {return "June";} else if (num==6) {return "July";} else if (num==7) {return "August";} else if (num==8) {return "September";} else if (num==9) {return "October";} else if (num==10) {return "November";} else if (num==11) {return "December";} } function monthToNum(month) { var tmp = new Date(month + " 1, 2006"); return tmp.getMonth(); } function adjustTime(str, hour, minute, day, month, year, offset, s) { var time = new Date(); time.setUTCHours(hour); time.setUTCMinutes(minute); time.setUTCDate(day); time.setUTCMonth(monthToNum(month)); time.setUTCFullYear(year); var timeStr = ""; if (time.getHours()<10) {timeStr += "0";} timeStr += parseInt(time.getHours()) + ":"; if (time.getMinutes()<10) {timeStr += "0";} timeStr += parseInt(time.getMinutes()); timeStr += ", "; timeStr += time.getDate(); timeStr += " "; timeStr += numToMonth(time.getMonth()); timeStr += " "; timeStr += time.getFullYear(); timeStr += " (UTC"; var offset = -1*time.getTimezoneOffset()/60; if (offset >= 0) {timeStr += "+";} timeStr += offset + ")"; return timeStr; } function adjustTime2(str, hour, minute, month, day, year, offset, s) { return adjustTime(str, hour, minute, day, month, year, offset, s); } addOnloadHook(function() { if (document.title.indexOf("Editing ") == 0) { return; } if (document.location.href.indexOf("action=history") != -1) { return; } if (document.title.indexOf("Talk:") == 0 || document.title.indexOf("talk:") != -1 || document.title.indexOf("Wikipedia:") == 0) { var newDoc = document.getElementById("column-content").innerHTML.replace(/(\d\d):(\d\d), (\d{1,2}) ([A-Z][a-z]+) (\d{4}) \(UTC\)/g, adjustTime); document.getElementById("column-content").innerHTML = newDoc; } /* if (document.location.href.indexOf("&action=history") != -1) { var newDoc = document.getElementById("bodyContent").innerHTML.replace(/(\d\d):(\d\d), ([A-Z][a-z]+) (\d{1,2}), (\d{4})/g, adjustTime2); document.getElementById("bodyContent").innerHTML = newDoc; }*/ }); [[User:Where/commentLocalize]]
- Will Pittenger 01:45, 15 November 2006 (UTC)
That is how I narrowed it down to the listed sections of code. BTW: Your suggestion about /*...*/ would not help. Too often that commenting system was used by the code segments. I ended up copying the code elsewhere. - Will Pittenger 06:08, 16 November 2006 (UTC)