#2161: mediawiki 1.10 v4 Have problem with centering in mediawiki.
-----------------------------+----------------------------------------------
Reporter: johnp125 | Type: Bug
Status: new | Priority: Normal
Milestone: | Component: Project : MediaWiki+FCKeditor
Version: SVN (FCKeditor) | Keywords: Confirmed
-----------------------------+----------------------------------------------
Changes (by kenyu73):
* cc: eric.for...@… (added)
Comment:
fckplugin.js - hack/workaround
The issue happens because the text-align command is contained as follows:
<p style="text-align: center">Center Test</p>
In the MediaWiki plugin, it's replacing the <p> tags with a newline (\n)
and then causing the childNodes (style='...') to be ignored.
Here is my hack...
line 324: replace with this
if ( basicElement'' && !htmlNode.style.cssText'')
line 760: add this to help cleanup the html
stringBuilder.push('\n');
I've just started testing, but it looks ok and indents and aligns now
work...
--
Ticket URL: <http://dev.fckeditor.net/ticket/2161#comment:8>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac