I'm not sure if this is the right way to go about this, in fact this is not a perfect solution yet. But since the MarkItUp editor allows multiple plugins, it makes sense to create a editor per plugin. Attached are the files I've written to implement the wiki editor. The style.css file in the wiki plugin doesn't work for wysiwyg so I had to rewrite that also. Files should be placed as follows
sites//modules/wysiwyg/editors/markitup_wiki.inc
sites//modules/wysiwyg/editors/js/markitup_wiki.js
sites/
/libraries/markitup/markitup/sets/wiki/markitup_wiki.css

Comments

sfyn’s picture

subbing

Anonymous’s picture

This work well.

But don't forget to add images directory in order to have button icons.

kcookson’s picture

Category: feature » support
Status: Needs review » Active

I can't seem to get it working in my site:
I have the Wysiwig module installed and enabled.
I have markitup_wiki installed.
I have the files you provided installed in the appropriate directories.

When I edit a book page, I see the markitup_wiki buttons. The buttons work. When I click a heading button, it puts in the wiki header markup (i.e., the multiple equal signs). But when I save, the page view shows the wiki markup, rather than being interpreted into a web page. I see the same thing as when editing the wiki markup.

I tried assigning the editor to Filtered HTML, to Full HTML, and to a custom input format I created called Wiki. Same result.

What am I missing?

twod’s picture

Category: support » feature
Status: Active » Needs review

@kcookson, You are missing an input filer capable of transforming the wiki syntax output by the editor to [X]HTML when viewing the node.
I haven't checked exactly which "dialect" of wiki markup this editor variant produces, but it might work with the filters provided by Flexifilter or TWikifilter.

nardberjean’s picture

Drupal module PEAR wikifilter can also be used.

nardberjean’s picture

StatusFileSize
new151.45 KB

Works fine, thanks!

But I had to unselect the preview, which was displaying a whole web page.

Using wysiwyg-6.x-2.1

Attached file is screenshot.

nardberjean’s picture

For markitup 1.1.7, markitup_wiki.inc has to be patched as suggested in #767628: 'The version of markItUp could not be detected' error.

nardberjean’s picture

StatusFileSize
new6.39 KB
Encarte’s picture

subscribe

elBradford’s picture

StatusFileSize
new6.56 KB

I have successfully got this working on the newest versions of markitup (1.1.10). I had to make some adjustments to the markitup_wiki.inc, namely the link wasn't giving it [[ ]], just [ ] which didn't work for my setup with PEAR wiki filter. I also added a | character to enable alternate link text.

alexd73’s picture

Hi!
Help me please to add a html sets.