mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update tinymce links in comments
This commit is contained in:
parent
d6b3f4d515
commit
c4b3d5304d
@ -226,12 +226,12 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
/**
|
/**
|
||||||
* TinyMCE JS settings
|
* TinyMCE JS settings
|
||||||
*
|
*
|
||||||
* @link https://www.tinymce.com/docs/configure/
|
* @link https://www.tiny.cloud/docs-4x/general-configuration-guide/
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $settings = [
|
protected $settings = [
|
||||||
'fix_list_elements' => true, // https://www.tinymce.com/docs/configure/content-filtering/#fix_list_elements
|
'fix_list_elements' => true, // https://www.tiny.cloud/docs-4x/configure/content-filtering/#fix_list_elements
|
||||||
'formats' => [
|
'formats' => [
|
||||||
'alignleft' => [
|
'alignleft' => [
|
||||||
[
|
[
|
||||||
@ -275,7 +275,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
'browser_spellcheck' => true,
|
'browser_spellcheck' => true,
|
||||||
'body_class' => 'typography',
|
'body_class' => 'typography',
|
||||||
'statusbar' => true,
|
'statusbar' => true,
|
||||||
'elementpath' => true, // https://www.tinymce.com/docs/configure/editor-appearance/#elementpath
|
'elementpath' => true, // https://www.tiny.cloud/docs-4x/configure/editor-appearance/#elementpath
|
||||||
'relative_urls' => true,
|
'relative_urls' => true,
|
||||||
'remove_script_host' => true,
|
'remove_script_host' => true,
|
||||||
'convert_urls' => false, // Prevent site-root images being rewritten to base relative
|
'convert_urls' => false, // Prevent site-root images being rewritten to base relative
|
||||||
@ -331,7 +331,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
/**
|
/**
|
||||||
* Holder list of buttons, organised by line. This array is 1-based indexed array
|
* Holder list of buttons, organised by line. This array is 1-based indexed array
|
||||||
*
|
*
|
||||||
* {@link https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols}
|
* {@link https://www.tiny.cloud/docs-4x/advanced/editor-control-identifiers/#toolbarcontrols}
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
@ -619,10 +619,10 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
{
|
{
|
||||||
$settings = $this->getSettings();
|
$settings = $this->getSettings();
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/configure/url-handling/#document_base_url
|
// https://www.tiny.cloud/docs-4x/configure/url-handling/#document_base_url
|
||||||
$settings['document_base_url'] = Director::absoluteBaseURL();
|
$settings['document_base_url'] = Director::absoluteBaseURL();
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/api/class/tinymce.editormanager/#baseURL
|
// https://www.tiny.cloud/docs-4x/api/tinymce/tinymce.editormanager/#properties
|
||||||
$baseResource = $this->getTinyMCEResource();
|
$baseResource = $this->getTinyMCEResource();
|
||||||
if ($baseResource instanceof ModuleResource) {
|
if ($baseResource instanceof ModuleResource) {
|
||||||
$tinyMCEBaseURL = $baseResource->getURL();
|
$tinyMCEBaseURL = $baseResource->getURL();
|
||||||
@ -649,12 +649,12 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
$plugins[$plugin] = $path;
|
$plugins[$plugin] = $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/configure/integration-and-setup/#external_plugins
|
// https://www.tiny.cloud/docs-4x/configure/integration-and-setup/#external_plugins
|
||||||
if ($plugins) {
|
if ($plugins) {
|
||||||
$settings['external_plugins'] = $plugins;
|
$settings['external_plugins'] = $plugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/configure/editor-appearance/#groupingtoolbarcontrols
|
// https://www.tiny.cloud/docs-4x/configure/editor-appearance/#groupingtoolbarcontrols
|
||||||
$buttons = $this->getButtons();
|
$buttons = $this->getButtons();
|
||||||
$settings['toolbar'] = [];
|
$settings['toolbar'] = [];
|
||||||
foreach ($buttons as $rowButtons) {
|
foreach ($buttons as $rowButtons) {
|
||||||
@ -666,10 +666,10 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/configure/content-appearance/#content_css
|
// https://www.tiny.cloud/docs-4x/configure/content-appearance/#content_css
|
||||||
$settings['content_css'] = $this->getEditorCSS();
|
$settings['content_css'] = $this->getEditorCSS();
|
||||||
|
|
||||||
// https://www.tinymce.com/docs/configure/editor-appearance/#theme_url
|
// https://www.tiny.cloud/docs-4x/configure/editor-appearance/#theme_url
|
||||||
$theme = $this->getTheme();
|
$theme = $this->getTheme();
|
||||||
if (!Director::is_absolute_url($theme)) {
|
if (!Director::is_absolute_url($theme)) {
|
||||||
$theme = Controller::join_links($tinyMCEBaseURL, "themes/{$theme}/theme.min.js");
|
$theme = Controller::join_links($tinyMCEBaseURL, "themes/{$theme}/theme.min.js");
|
||||||
|
Loading…
Reference in New Issue
Block a user