Opened 16 years ago
Closed 13 years ago
#3101 closed Bug (invalid)
<input type> tag converted into mediawiki characters
Reported by: | JF Simard | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Project : MediaWiki+FCKeditor | Version: | FCKeditor 2.6.4 |
Keywords: | Cc: |
Description
Hi,
when using the "Image Button" of the FCKEditor toolbar, I can upload or add an existing image in my article from the file browser. However, the minute I click "Show Preview" or "Save", the image is converted into text : <input type="image" src="/userfiles/apps_norampac.jpg" width="965" height="478"></input>. If I go to wikitext, the line has been converted to : <input type="image" height="600" width="800" src="/userfiles/Hiver.jpg"></input>
It seems the tag is converted into characters.
I use Mediawiki 1.13.3 with FCKEditor 2.6.4 (I think, it doesn't show up in my version page of mediawiki, just saying "FCKeditor (Version fckeditor/mw-extension $Rev$ 2008)"
Attachments (6)
Change History (12)
comment:1 Changed 16 years ago by
Keywords: | tag input removed |
---|---|
Priority: | High → Normal |
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 16 years ago by
I'll try to set $wgRawHtml to true then. I used the following command in LocalSettings.php : $wgFCKeditorToolBarSet="Default"; and it gave me the Image Button, which adds the <include> tags. Those are tags included in FCKeditor so I don't think it would need to be done with "insert/edit special tag" dialog box. It should work. Let me try to set the RawHtml and I'll change the status if needed.
comment:3 Changed 16 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
It now works, but we need to put <html></html> tags before and after <include></include> tags. Is there a way to change the Image button so when u insert an image from there it does "<html><insert></insert></html>" at the same time?
Changed 15 years ago by
Changed 15 years ago by
Changed 15 years ago by
Changed 15 years ago by
Changed 15 years ago by
Changed 15 years ago by
comment:4 Changed 15 years ago by
Hi,
can I please have a follow up on this? I can't ask my users to add the <html></html> at then end of each of their image. I have attached images of what I am doing so it can be more clear.
Pict 1 : Click on the "Image Button"
Pict 2 : Click on "Browser Server" and select image.
Pict 3 : Back to Editor, we see the image fine.
Pict 4 : When clicking on Preview, it is converted in txt
Pict 5 : When you click to see the Wikitext, here is what that shows
Pict 6 : Modifying as image shown will fix the issue.
I have $wgRawHtml set to true but I would need <html> tags added to the <input type> tags or...is there anything else I should do? I just upgraded my Wiki to 1.15.1 and reinstalled FCKEditor but I still have this issue. Maybe something else should be done in my config... Thanks a lot for letting me know as soon as possible! Happy new year! ;)
comment:6 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
MediaWiki and FCKEditor are no longer supported. Closing the ticked as invalid.
Correct me if I'm wrong, but I think this bug is invalid.
You're only allowed to insert HTML code when $wgRawHtml is set to true, that's why Image Button is not enabled in the default toolbar in the FCKeditor extension.
The only way to insert custom HTML code is to use the "insert/edit special tag" dialog box.