- Publicity: Public Only All
richtext-procs.tcl
Integrate Markdown with the OpenACS richtext widget.
- Location:
- packages/richtext-markdown/tcl/richtext-procs.tcl
- Created:
- 18 Nov 2026
- Author:
- Gustaf Neumann
Procedures in this file
- richtext::markdown::add_editor (public)
- richtext::markdown::initialize_widget (public)
- richtext::markdown::render_widgets (public)
Detailed information
richtext::markdown::add_editor (public)
richtext::markdown::add_editor -text_id text_id -contents contents \
[ -format format ] [ -format_field ] [ -repeat_template ] \
[ -image_upload_url image_upload_url ]Enhance a textarea with the Markdown editor and submit rendered HTML.
- Switches:
- -text_id (required)
- the textarea ID
- -contents (required)
- the original textarea content before browser normalization
- -format (optional, defaults to
"text/html")- MIME type of the original content
- -format_field (optional, boolean, defaults to
"true")- whether the form has a companion MIME type field
- -repeat_template (optional, boolean)
- whether the textarea is a disabled repeat template
- -image_upload_url (optional)
- optional same-origin endpoint for pasted image blobs
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
richtext::markdown::initialize_widget (public)
richtext::markdown::initialize_widget [ -form_id form_id ] \
[ -text_id text_id ] [ -options options ]Attach the Markdown editor to an OpenACS richtext textarea.
- Switches:
- -form_id (optional)
- -text_id (optional)
- -options (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
richtext::markdown::render_widgets (public)
richtext::markdown::render_widgets
Provide one theme-rendered toolbar template for all Markdown widgets on the page.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.