Skip to content

Commit

Permalink
Merge pull request #4667 from open-formulieren/backport/4653-tinymce-…
Browse files Browse the repository at this point in the history
…toolbar-options

🐛 [#4653] Add blocks dropdown to TinyMCE toolbar (2.7.x backport)
  • Loading branch information
sergei-maertens committed Sep 17, 2024
2 parents c3ba281 + ccb51ee commit 241d0cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,18 @@ jobs:
# default to version in .sdk-release file
SDK_TAG=$(cat .sdk-release | tr -d '[:space:]')
case $VERSION in
# if building master -> include latest image of SDK
master) SDK_TAG=latest;;
# PRs result in version 'merge' that'll go to master -> include latest image of SDK
merge) SDK_TAG=latest;;
esac
# PRs have the base_ref, straight up pushes don't
if [[ "${{ github.base_ref }}" == stable/* ]]; then
echo "pull request to stable branch"
else
echo "not a pull request to a stable branch"
case $VERSION in
# if building master -> include latest image of SDK
master) SDK_TAG=latest;;
# PRs result in version 'merge' that'll go to master -> include latest image of SDK
merge) SDK_TAG=latest;;
esac
fi
echo "sdk_tag=${SDK_TAG}" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions src/openforms/conf/tinymce_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
"help",
"wordcount"
],
"toolbar": "undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | table bullist numlist outdent indent | link unlink removeformat | help",
"toolbar": "undo redo | blocks | bold italic backcolor | alignleft aligncenter alignright alignjustify | table bullist numlist outdent indent | link unlink removeformat | help",
"content_style": "body { font-family:Helvetica,Arial,sans-serif; font-size:14px }",
"default_link_target": "_blank",
"link_default_protocol": "https",
"link_assume_external_targets": false,
"convert_urls": false
"convert_urls": false,
"block_formats": "Paragraph=p; Heading 2=h2; Heading 3=h3; Heading 4=h4; Heading 5=h5; Heading 6=h6"
}

0 comments on commit 241d0cc

Please sign in to comment.