[pmwiki-users] PMWiki with FCKEditor
noskule
noskule at gmx.net
Wed Sep 5 15:27:14 CDT 2007
roland brendel schrieb:
> Hi,
> I need help to integrate FCKEditor (www.fckeditor.net) into the PMWiki
> (http://www.pmwiki.org/).
> I found some manuals (e.g. (http://www.pmwiki.org/wiki/Cookbook/
> FCKEditor), but some are not
> beneficial and some other are in french.
>
> And I know the discussion about WYSIWYG editor with wikis, anyway I
> need this integration.
hi rolly
There were severeal atemps to do a wysiwyg integration in pmwiki. But
the main problem was the conversion from xthml output from the wysiwyg
editor to wikisyntax.
I made a test with a different approach to simple replace the needed
wiki markup with html tags. Note that I user tinymce, but it should work
with any wysiwyg editor.
How to install:
Installation is very simple:
* install enablehtml: http://pmwiki.org/wiki/Cookbook/EnableHTML
* enable some html:
EnableHtml('b|i|u|sup|sub|strong|p|a|img|ul|li|ol|span|br|style|class|id|hr|table|tr|td|tbody');
include_once("$FarmD/cookbook/enablehtml.php");
* disable the html enabled markup (example):
DisableMarkup('^!');
* Download: http://tinymce.moxiecode.com/download.php
* Copy the content of the folder into pmwikidir
* include javascript into skin.templ, code see here:
http://wiki.moxiecode.com/examples/tinymce/installation_example_00.php
You can check it out at: http://netstreams.org/test/wysiwyg/
However there are some things missing like an integration for pmwiki
internal links, file and image upload in the editor:
If you interessded we could make a cookbook page and work on this to see
if it is practicable
cheers nos
# test configuration in config.php
include_once("$FarmD/cookbook/enablehtml.php");
EnableHtml('b|i|u|sup|sub|strong|p|a|img|ul|li|ol|span|br|style|class|id|hr|table|tr|td|thead|tbody|em|strike|h1|h2|31|h4|h5|h6');
DisableMarkup('[=');
// DisableMarkup('restore');
DisableMarkup('<:');
DisableMarkup('<vspace>');
DisableMarkup('<vspace><p>');
DisableMarkup('\\r');
DisableMarkup('nl0');
DisableMarkup('\\$');
DisableMarkup('!vspace');
DisableMarkup('spacewikiwords');
DisableMarkup('linkwikiwords');
DisableMarkup('linebreaks');
DisableMarkup("''");
DisableMarkup("'''");
DisableMarkup("'''''");
DisableMarkup('@@');
DisableMarkup("'+");
DisableMarkup("'^");
DisableMarkup('[+');
DisableMarkup('{+');
DisableMarkup('{-');
DisableMarkup('[[<<]]');
DisableMarkup('`wikiword');
DisableMarkup('blank');
DisableMarkup('^img');
// DisableMarkup('^ws');
DisableMarkup('^ ');
DisableMarkup('^*');
DisableMarkup('^#');
DisableMarkup('^->');
// DisableMarkup('^::');
DisableMarkup('^Q:');
DisableMarkup('^A:');
DisableMarkup('^||||');
DisableMarkup('^!');
DisableMarkup('^----');
DisableMarkup('table');
DisableMarkup('^>>');
DisableMarkup('markup');
DisableMarkup('markupend');
>
> Thx
> bye
> rolly
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list