My goal is to integrate this extension in a wiki application other than mediawiki, but that conforms to MediaWiki syntax. I was easily able to add this extension to my edit page which was just a standard textarea. The problem is that the existing wiki markup is not rendered properly, nor am I able to toggle between WYSIWIG and Wiki code mode. After a little digging, it appears that a mediawiki rendering page (index.php?) is called via Ajax to perform both of these operations.
I would like to mimic this functionality using the technology the wiki is written in (not php). For simplicity sake, I'll ask this in terms of static HTML pages. If I wanted to write an HTML page to mimic this functionality, what would it look like? Would it be called via POST or GET? What forms / fields is the FCK code expecting?
I know this may seem a bit off topic, but I simply love the functionality of the FCK+MediaWiki extension and would like to bring this to a different community.
Thanks,
Tyler
I would like to mimic this functionality using the technology the wiki is written in (not php). For simplicity sake, I'll ask this in terms of static HTML pages. If I wanted to write an HTML page to mimic this functionality, what would it look like? Would it be called via POST or GET? What forms / fields is the FCK code expecting?
I know this may seem a bit off topic, but I simply love the functionality of the FCK+MediaWiki extension and would like to bring this to a different community.
Thanks,
Tyler
Re: MediaWiki+FCK implementation details
--
Antti Salonen
Quosis Oy
Re: MediaWiki+FCK implementation details
MediawWiki plugin is more complicated because due to it's sophisticated wiki syntax, we were unable to perform Wiki -> HTML transformation using pure JavaScript.
That's why we have used Ajax calls for that (it's up to you which way you choose).
In fact, simple ajax call wasn't enough, we had to also modify some of the MediaWiki classes so that it returned simplified/modified HTML to make HTML -> Wiki transformation easier.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: MediaWiki+FCK implementation details
I have a problem with the extension:
Every time I click on "Preview" instead of "Save" Mediawiki 1.11 shows me the new page but deletes everything in the editor window.
I would get a blank page if would press "Save" after that.
If I press "Save" without a preview everything works fine.
I have this extension installed:
http://www.mediawiki.org/wiki/Extension ... d_Wikia%29
Thanks for help!
Re: MediaWiki+FCK implementation details
Thanks. Actually we ended up integrating just basic fckeditor to our wiki for now, and doing html->wiki transformation when saving (user can only edit richtext, not wiki markup). We might later allow wiki markup editing with data processor / ajax html<->wiki transformation.
--
Antti Salonen
Quosis Oy
Re: MediaWiki+FCK implementation details
Wiktor,
My goal is essentially to swap out the PHP part of the media wiki parser with one I've written in Oracle PL/SQL. The wiki is built in Oracle Application Express (http://apex.oracle.com), one of your reference customers listed here http://www.fckeditor.net/whosusing. I used to be on the APEX Development team and still do a lot of work with it. We've had a lot of community interest in a wiki written in APEX, plus I run a modified version of tikiwiki inside Oracle that I want to replace with the one I'm working on.
I was looking for some simple guidance on what http methods the PHP parser expects and what files within FCKeditor I would need to edit to point at my own parser.
I can probably reverse-engineer this with Firebug and maybe a ethereal, but I would much rather start with some advice from an expert.
Thanks,
Tyler
Re: MediaWiki+FCK implementation details
OK, I did a little research with Firebug http://en.wikipedia.org/wiki/Firebug_(Firefox_extension), using the Net > XHR / XmlHttpRequest component and figured out that ajax.js is the file that points to the processor. It's posting to index.php?action=ajax. It posts 2 parameters, rs and rsargs[]. rs=wfSajaxWikiToHTML and rsargs[]= The wiki formatted text from the text area you are editing. The response from index.php is the converted HTML.
This is enough to get me started...
Tyler