|
static | $p_url = 'index.php?pf=dcCKEditor' |
|
static | $config_url = 'plugin.php?p=dcCKEditor&config=1' |
|
◆ adminPostEditor()
static adminPostEditor |
( |
string |
$editor = '' , |
|
|
string |
$context = '' , |
|
|
array |
$tags = [] , |
|
|
string |
$syntax = 'xhtml' |
|
) |
| |
|
static |
adminPostEditor add javascript to the DOM to load ckeditor depending on context
- Parameters
-
string | $editor | The wanted editor |
string | $context | The page context (post,page,comment,event,...) |
array | $tags | The array of ids to inject editor |
string | $syntax | The wanted syntax (wiki,markdown,...) |
- Returns
- string
References $config_url, $context, dcCore\app(), dcPage\jsJson(), and dcPage\jsLoad().
◆ adminPopupMedia()
static adminPopupMedia |
( |
string |
$editor = '' | ) |
|
|
static |
Load additional script for media insertion popup
- Parameters
-
- Returns
- string
References dcPage\jsLoad().
◆ adminPopupLink()
Load additional script for link insertion popup
- Parameters
-
- Returns
- string
References dcPage\jsLoad().
◆ adminPopupPosts()
Load additional script for entry link insertion popup
- Parameters
-
- Returns
- string
References dcPage\jsLoad().
◆ adminMediaURLParams()
static adminMediaURLParams |
( |
ArrayObject |
$params | ) |
|
|
static |
Return the current editor
- Parameters
-
ArrayObject | $params | The parameters |
References html\sanitizeURL().
◆ adminPageHTTPHeaderCSP()
static adminPageHTTPHeaderCSP |
( |
ArrayObject |
$csp | ) |
|
|
static |
Add some CSP headers
CKEditor uses inline CSS styles, inline JS scripts and even uses eval() javascript function, so…
- Parameters
-
◆ $p_url
$p_url = 'index.php?pf=dcCKEditor' |
|
staticprotected |
◆ $config_url
$config_url = 'plugin.php?p=dcCKEditor&config=1' |
|
staticprotected |
The documentation for this class was generated from the following file: