Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable anchor feature for TinyMCE editor #240

Merged
merged 1 commit into from Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
@@ -1,6 +1,10 @@
Changelog
=========

1.8.1 (Unreleased)
---------------------
- Enh #237: Enable anchor feature for TinyMCE editor

1.8.0 (July 28, 2022)
---------------------
- Fix #232: Migrate to Twig 3 and compatible with PHP 8.1
Expand Down
2 changes: 1 addition & 1 deletion module.json
Expand Up @@ -3,7 +3,7 @@
"name": "Custom Pages",
"description": "Allows admins to create custom pages (html or markdown) or external links to various navigations (e.g. top navigation, account menu).",
"keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"],
"version": "1.8.0",
"version": "1.8.1",
"homepage": "https://github.com/humhub/custom-pages",
"humhub": {
"minVersion": "1.12"
Expand Down
4 changes: 2 additions & 2 deletions widgets/TinyMce.php
Expand Up @@ -39,8 +39,8 @@ private function initDefaults()
}

$this->clientOptions = ArrayHelper::merge([
'plugins' => ['code', 'autolink', 'link', 'image', 'lists', 'fullscreen', 'table', 'wordcount'],
'menu' => ['insert' => ['title' => 'Insert', 'items' => 'image humhubtrigger link inserttable | hr']],
'plugins' => ['code', 'autolink', 'link', 'image', 'lists', 'fullscreen', 'table', 'wordcount', 'anchor'],
'menu' => ['insert' => ['title' => 'Insert', 'items' => 'image humhubtrigger link anchor inserttable | hr']],
'toolbar' => 'undo redo | wrapper blocks | bold italic | alignleft aligncenter alignright alignjustify' . $humhubTriggerToolbar . ' | removeformat | code',
'content_style' => '.img-responsive {display:block;max-width:100%;height:auto}',
'valid_elements' => '*[*]',
Expand Down