https://bugzilla.wikimedia.org/show_bug.cgi?id=23067

           Summary: FCK integration breaks page content because of quoting
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: chris.vigel...@gmx.net
                CC: wikibugs-l@lists.wikimedia.org


When using FCK Editor/WYSIWYG extension in conjunction with Semantic Forms,
editing a page through the formedit action will break the page markup because
all double quotes are replaced by """. This will destroy for example the
following markup:

{|class="wikitable
!head
|value
|}

<source lang="php">
 // some source here
 // note this will work only with GesHI extension
</source>

= Steps to reproduce =

1.) install Semantic Mediawiki, Semantic Forms and WYSIWYG extension
2.) edit page through form
3.) drop into Wikitext mode
4.) paste the following markup:
{|class="wikitable"
!head
|value
|}
5.) save the page
6.) check out source of page and see that 
{|class="wikitable"
has been changed to 
{|class=&quot;wikitable&quot;
which is not correct wiki markup of course

= Source code hint =

Quoting appears in SemanticForms/includes/SF_FormPrinter.inc line 1205:

 $free_text = str_replace( '"', '&quot;', $free_text );

Commenting out this line does solve the problem, but may cause other problems
(I did not yet see any, but YMMV).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to