Bug: Image markup code gets warped
Step 1: Insert an image in the WYSIWYG editor.
Step 2: Look at the wiki markup view to see the image code.
Step 3: Switch back to the WYSIWYG editor.
Step 4: Switch back to the markup view. The image code is changed slightly.
Whenever the WYSIWYG loads it changes the image code. Typically it adds or removes a duplicate of the filename (which I think translates to the caption for the image).
More worrying is an issue I'm having with the Minecraft wiki. In the markup code I'm using an image tag like...
[[Image:Block stick.png|32px|none|link=Stick]]
...to link the image to a particular page in the wiki. However, any time the WYSIWYG editor is loaded, the image code changes--the "link=" tag is removed and the filename is duplicated.
I'm trying to duplicate the function of Minecraftwiki.net but any time the page is edited with the WYSIWYG all of my icon linking is undone.
4 comments
-
RAmilove
commented
sadsad
-
RAmilove
commented
sadsad
-
AdminMarkRyan-IGN
(Admin, IGN)
commented
This behavior of the WYSIWYG changing image code has another side effect: It drastically changes the character-count of an edit. Right now the character count of an edit affects only the history pages--where an icon reflects the "size" of an edit--but may in the future be tied to "points" associated with an edit.
-
AdminMarkRyan-IGN
(Admin, IGN)
commented
Note: This causes the registered "size" of an edit to become inflated. A user could make a small correction, but the net "gain" in the edit could register as massive because all image tags get the file name repeated.