Opened 10 years ago

Closed 8 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 : &lt;input type="image" height="600" width="800" src="/userfiles/Hiver.jpg"&gt;&lt;/input&gt;

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)

Pict1.JPG (17.3 KB) - added by JF Simard 9 years ago.
Pict2.JPG (30.0 KB) - added by JF Simard 9 years ago.
Pict3.JPG (22.6 KB) - added by JF Simard 9 years ago.
Pict4.JPG (5.0 KB) - added by JF Simard 9 years ago.
Pict5.JPG (18.3 KB) - added by JF Simard 9 years ago.
Pict6.JPG (20.8 KB) - added by JF Simard 9 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 10 years ago by Wiktor Walc

Keywords: tag input removed
Priority: HighNormal
Resolution: invalid
Status: newclosed

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.

comment:2 Changed 10 years ago by JF Simard

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 10 years ago by JF Simard

Resolution: invalid
Status: closedreopened

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 9 years ago by JF Simard

Attachment: Pict1.JPG added

Changed 9 years ago by JF Simard

Attachment: Pict2.JPG added

Changed 9 years ago by JF Simard

Attachment: Pict3.JPG added

Changed 9 years ago by JF Simard

Attachment: Pict4.JPG added

Changed 9 years ago by JF Simard

Attachment: Pict5.JPG added

Changed 9 years ago by JF Simard

Attachment: Pict6.JPG added

comment:4 Changed 9 years ago by JF Simard

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:5 Changed 9 years ago by JF Simard

Bump... would really have to get someone to check this. Thanks!

comment:6 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: reopenedclosed

MediaWiki and FCKEditor are no longer supported. Closing the ticked as invalid.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy