richtext::markdown::initialize_widget (public)
richtext::markdown::initialize_widget [ -form_id form_id ] \
[ -text_id text_id ] [ -options options ]Defined in packages/richtext-markdown/tcl/richtext-procs.tcl
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.
Source code: set value [::template::element::get_property $form_id $text_id value] set format [::template::util::richtext::get_property format $value] if {$format ni [::template::util::richtext::formats]} { set format text/html } set image_upload_url [expr {[dict exists $options image_upload_url] ? [dict get $options image_upload_url] : ""}] add_editor -text_id $text_id -format $format -image_upload_url $image_upload_url -contents [::template::util::richtext::get_property contents $value]XQL Not present: Generic, PostgreSQL, Oracle