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

           Summary: Include Functions from MW-Edit
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Semantic Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I think the editpage-copywarn and toolbar should be added to the free text
area. I would have done it myself, but there is no seperate function for the
freetextarea.

You just have to add

  $wgOut->wrapWikiMsg( "<div id=\"editpage-copywarn\">\n$1\n</div>",
$copywarnMsg );

under the free_text area

for the Toolbar you have to add this to initialize the Toolbar with using the
skript function from EditPage.php

if ( $wgUser->getOption('showtoolbar') and !$this->isCssJsSubpage ) {
            # prepare toolbar for edit buttons
            $toolbar = EditPage::getEditToolbar();
        } else {
            $toolbar = '';
        }

and

$wgOut->addHTML( <<<END
{$toolbar}
END
);

I hope this helps to make the freetextarea look a bit more like the mw-editpage

the last thing is to add this

textarea#free_text {
13 width: 100%;
14}

to SF_Main.css


-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to