Skip to content

Commit

Permalink
Update tinymce links in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyImPhil committed Oct 14, 2022
1 parent d6b3f4d commit c4b3d53
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Forms/HTMLEditor/TinyMCEConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
/**
* TinyMCE JS settings
*
* @link https://www.tinymce.com/docs/configure/
* @link https://www.tiny.cloud/docs-4x/general-configuration-guide/
*
* @var array
*/
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' => [
'alignleft' => [
[
Expand Down Expand Up @@ -275,7 +275,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
'browser_spellcheck' => true,
'body_class' => 'typography',
'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,
'remove_script_host' => true,
'convert_urls' => false, // Prevent site-root images being rewritten to base relative
Expand Down Expand Up @@ -331,7 +331,7 @@ public function setTheme($theme)
/**
* 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
*/
Expand Down Expand Up @@ -619,10 +619,10 @@ protected function getConfig()
{
$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();

// https://www.tinymce.com/docs/api/class/tinymce.editormanager/#baseURL
// https://www.tiny.cloud/docs-4x/api/tinymce/tinymce.editormanager/#properties
$baseResource = $this->getTinyMCEResource();
if ($baseResource instanceof ModuleResource) {
$tinyMCEBaseURL = $baseResource->getURL();
Expand All @@ -649,12 +649,12 @@ protected function getConfig()
$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) {
$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();
$settings['toolbar'] = [];
foreach ($buttons as $rowButtons) {
Expand All @@ -666,10 +666,10 @@ protected function getConfig()
}
}

// 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();

// https://www.tinymce.com/docs/configure/editor-appearance/#theme_url
// https://www.tiny.cloud/docs-4x/configure/editor-appearance/#theme_url
$theme = $this->getTheme();
if (!Director::is_absolute_url($theme)) {
$theme = Controller::join_links($tinyMCEBaseURL, "themes/{$theme}/theme.min.js");
Expand Down

0 comments on commit c4b3d53

Please sign in to comment.