richtext::ckeditor5::version_info (public)

 richtext::ckeditor5::version_info [ -ck_package ck_package ] \
    [ -version version ]

Defined in packages/richtext-ckeditor5/tcl/richtext-procs.tcl

Get information about available version(s) of CKEditor, either from the local file system, or from CDN.

Switches:
-ck_package (optional)
-version (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 richtext::ckeditor5::add_editor richtext::ckeditor5::add_editor (public) richtext::ckeditor5::version_info richtext::ckeditor5::version_info richtext::ckeditor5::add_editor->richtext::ckeditor5::version_info

Testcases:
No testcase defined.
Source code:
        #
        # If no version or ck editor package are specified, use the
        # namespaced variables as default.
        #
        if {$version eq ""} {
            set version ${::richtext::ckeditor5::version}
        }
        if {$ck_package eq ""} {
            switch  ${::richtext::ckeditor5::JSEditorClass} {
                ClassicEditor { set ck_package classic}
                BalloonEditor { set ck_package balloon}
                InlineEditor  { set ck_package inline}
                default       { set ck_package ${::richtext::ckeditor5::ck_package}}
            }
        }
        ns_log notice "CKeditor setting ck_package to <${::richtext::ckeditor5::ck_package}> editorclass $::richtext::ckeditor5::JSEditorClass"
        set ::richtext::ckeditor5::ck_package ${::richtext::ckeditor5::ck_package}

        set suffix ckeditor5/$version/$ck_package/ckeditor.js
        set resources $::acs::rootdir/packages/richtext-ckeditor5/www/resources
        if {[file exists $resources/$suffix]} {
            lappend result file $resources/$suffix
            lappend result resources /resources/richtext-ckeditor5/$suffix
        }
        lappend result cdn "//cdn.ckeditor.com/$suffix"
        ns_log notice "CKEditor path <$result> "
        # https://cdn.ckeditor.com/ckeditor5/1.0.0-alpha.2/classic/ckeditor.js

        return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: