• Publicity: Public Only All

richtext-procs.tcl

Xinha integration with the richtext widget of acs-templating. This script defines the following two procs: ::richtext-xinha::initialize_widget ::richtext-xinha::render_widgets

Location:
packages/richtext-xinha/tcl/richtext-procs.tcl
Created:
1 Jan 2016
Author:
Gustaf Neumann
CVS Identification:
$Id: richtext-procs.tcl,v 1.4.2.4 2022/02/28 13:55:08 antoniop Exp $

Procedures in this file

Detailed information

richtext::xinha::add_editor (public)

 richtext::xinha::add_editor [ -conf conf ] [ -version version ] \
    [ -order order ]

Add the necessary JavaScript and other files to the current page. The naming is modeled after "add_script", "add_css", ... but is intended to care about everything necessary, including the content security policies. Similar naming conventions should be used for other editors as well. This function can be as well used from other packages, such e.g. from the xowiki form-fields, which provide a much higher customization.

Switches:
-conf
(optional)
-version
(optional)
-order
(defaults to "10") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 richtext::xinha::initialize_widget richtext::xinha::initialize_widget (public) richtext::xinha::add_editor richtext::xinha::add_editor richtext::xinha::initialize_widget->richtext::xinha::add_editor richtext::xinha::resource_info richtext::xinha::resource_info (public) richtext::xinha::add_editor->richtext::xinha::resource_info security::csp::require security::csp::require (public) richtext::xinha::add_editor->security::csp::require template::add_body_script template::add_body_script (public) richtext::xinha::add_editor->template::add_body_script

Testcases:
No testcase defined.

richtext::xinha::initialize_widget (public)

 richtext::xinha::initialize_widget [ -form_id form_id ] \
    [ -text_id text_id ] [ -options options ]

Initialize an Xinha richtext editor widget.

Switches:
-form_id
(optional)
-text_id
(optional)
-options
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) ad_conn ad_conn (public) lang::conn::language lang::conn::language (public) richtext::xinha::add_editor richtext::xinha::add_editor (public) template::element template::element (public) richtext::xinha::initialize_widget richtext::xinha::initialize_widget richtext::xinha::initialize_widget->_ richtext::xinha::initialize_widget->ad_conn richtext::xinha::initialize_widget->lang::conn::language richtext::xinha::initialize_widget->richtext::xinha::add_editor richtext::xinha::initialize_widget->template::element

Testcases:
No testcase defined.

richtext::xinha::render_widgets (public)

 richtext::xinha::render_widgets

Render the xinha rich-text widgets. This function is created at a time when all rich-text widgets of this page are already initialized. The function is controlled via the global variable ::acs_blank_master(xinha)

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

richtext::xinha::resource_info (public)

 richtext::xinha::resource_info [ -version version ]

Get information about available version(s) of Xinha, either from the local filesystem, or from CDN.

Switches:
-version
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 richtext::xinha::add_editor richtext::xinha::add_editor (public) richtext::xinha::resource_info richtext::xinha::resource_info richtext::xinha::add_editor->richtext::xinha::resource_info richtext::xinha::download richtext::xinha::download (private) richtext::xinha::download->richtext::xinha::resource_info acs_package_root_dir acs_package_root_dir (public) richtext::xinha::resource_info->acs_package_root_dir

Testcases:
No testcase defined.
[ show source ]