Questions answered by this recipe

How can I edit PmWiki pages using a rich-text (WYSIWYG) editor instead of the native textarea?

Description

RichEdit replaces PmWiki's standard textarea editor with a rich-text editing interface that allows users to format content visually while working directly with PmWiki markup. The editor converts rich-text formatting to PmWiki markup on save/preview, maintaining compatibility with all PmWiki features.

Features

Supported Markup (V1)

Installation

Requirements

Download

Download the following files and place them in your PmWiki installation:

Installation steps

1. Create directories:

   * cookbook/richedit/
   * pub/richedit/

2. Place files in appropriate directories as shown above

3. Add to local/config.php:

include_once("$FarmD/cookbook/richedit/richedit.php");

4. Clear browser cache and reload

Configuration

No configuration required. RichEdit automatically replaces the edit interface site-wide.

Usage

  1. Navigate to any page and click Edit
  2. Use the toolbar buttons to format text:
    1. B - Bold
    2. I - Italic
    3. U - Underline
    4. H1-H4 - Heading levels
    5. '''
      ]''' - Code block
      ## '''[-]''' - Small text
      ## '''[+]''' - Large text
      ## '''⬅''' - Align left
      ## '''↔''' - Align center
      ## '''➡''' - Align right
      ## '''</>''' - Insert custom PmWiki markup
      # Click '''Preview''' to see how the page will look
      # Click '''Save''' to save changes
      # Click '''Cancel''' to discard changes
      
      !!! Manual Markup Insertion
      
      Click the '''</>''' button to open the markup editor modal. This allows you to:
      * Insert PmWiki directives (e.g., [@(:include PageName:)
      )

The markup you insert will be rendered when you preview or save.

Keyboard Shortcuts

Troubleshooting

Editor doesn't appear

Formatting not converting properly

Conflicts with other recipes

Known Limitations

Future Enhancements (V2+)

Release Notes

See Also

Contributors

Comments

(:comment:)

(:commentbox:)



Page last modified on January 08, 2026, at 06:17 am