richtext::ckeditor4::resource_info (public)
richtext::ckeditor4::resource_info [ -ck_package ck_package ] \ [ -version version ]
Defined in packages/richtext-ckeditor4/tcl/richtext-procs.tcl
Get information about available version(s) of CKEditor, either from the local filesystem, or from CDN.
- Switches:
- -ck_package (optional)
- -version (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: variable parameter_info # # If no version or CKeditor package are specified, use the # namespaced variables as default. # if {$version eq ""} { dict with parameter_info { set version [::parameter::get_global_value -package_key $package_key -parameter $parameter_name -default $default_value] } } if {$ck_package eq ""} { set ck_package ${::richtext::ckeditor4::ck_package} } # # Setup variables for access via CDN vs. local resources. # set resourceDir [acs_package_root_dir richtext-ckeditor4/www/resources] set cdn //cdn.ckeditor.com set suffix $version/$ck_package/ckeditor.js if {[file exists $resourceDir/$version/$ck_package]} { set prefix /resources/richtext-ckeditor4/$version set cdnHost "" } else { set prefix $cdn/$version set cdnHost cdn.ckeditor.com } # # Return the dict with at least the required fields # lappend result resourceName "CKEditor 4" resourceDir $resourceDir cdn $cdn cdnHost $cdnHost prefix $prefix cssFiles {} jsFiles {} extraFiles {} downloadURLs http://download.cksource.com/CKEditor/CKEditor/CKEditor%20${version}/ckeditor_${version}_${ck_package}.zip urnMap {} plugins { a11yhelp about clipboard dialog image link magicline pastefromgdocs pastefromlibreoffice pastefromword pastetools scayt specialchar table tableselection tabletools widget } versionCheckAPI {cdn cdnjs library ckeditor count 20} vulnerabilityCheck {service snyk library ckeditor4} parameterInfo $parameter_info configuredVersion $version return $resultXQL Not present: Generic, PostgreSQL, Oracle