Skip to content

TinyMCE default config was not actually loading the full plugin set.#24

Merged
mambax7 merged 2 commits intoXOOPS:masterfrom
mambax7:feature/fix_for_TinyMCE7
Apr 18, 2026
Merged

TinyMCE default config was not actually loading the full plugin set.#24
mambax7 merged 2 commits intoXOOPS:masterfrom
mambax7:feature/fix_for_TinyMCE7

Conversation

@mambax7
Copy link
Copy Markdown
Contributor

@mambax7 mambax7 commented Apr 18, 2026

  • uses a comma-separated plugins list, which is what the XOOPS TinyMCE 7 loader expects
  • restores xoopsimagemanager to the loaded plugins and toolbar
  • enables the menubar again
  • replaces legacy styleselect with TinyMCE 7’s styles control
  • removes insertfile, which is not needed here

Summary by CodeRabbit

  • New Features
    • Reorganized editor toolbar with improved functionality
    • Enabled menu bar in the text editor
    • Enhanced plugin support for image management and emojis

  - uses a comma-separated plugins list, which is what the XOOPS TinyMCE 7 loader expects
  - restores xoopsimagemanager to the loaded plugins and toolbar
  - enables the menubar again
  - replaces legacy styleselect with TinyMCE 7’s styles control
  - removes insertfile, which is not needed here
Copilot AI review requested due to automatic review settings April 18, 2026 18:51
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@mambax7 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 49 minutes and 52 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 49 minutes and 52 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f08fe4fd-2490-4dda-ad99-faac347c71dd

📥 Commits

Reviewing files that changed from the base of the PR and between 1d60ebf and d3b0fbc.

📒 Files selected for processing (1)
  • htdocs/class/xoopseditor/tinymce7/settings.php

Walkthrough

Updated TinyMCE 7 editor configuration in a single settings file. Changed plugin format from space-separated to comma-separated strings, added xoopsimagemanager to plugins, replaced styleselect with styles in toolbar, removed insertfile, and enabled the menubar option.

Changes

Cohort / File(s) Summary
TinyMCE7 Configuration
htdocs/class/xoopseditor/tinymce7/settings.php
Modified plugins format from space-separated to comma-separated and ensured inclusion of xoopsimagemanager. Updated toolbar string by replacing styleselect with styles, removing insertfile, and explicitly including custom plugins. Changed menubar from false to true.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main fix: correcting TinyMCE's plugin configuration to properly load all plugins, which directly aligns with the changeset's primary purpose of fixing the plugin list format and restoring missing components.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.00%. Comparing base (9c78ad2) to head (d3b0fbc).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #24      +/-   ##
============================================
- Coverage     19.23%   18.00%   -1.23%     
- Complexity     7584     7803     +219     
============================================
  Files           621      665      +44     
  Lines         40085    42806    +2721     
============================================
  Hits           7709     7709              
- Misses        32376    35097    +2721     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the TinyMCE 7 default configuration so the XOOPS loader parses and loads the intended full plugin set, restoring missing UI capabilities.

Changes:

  • Switches the plugins setting to a comma-separated list (XOOPS loader expectation) and restores xoopsimagemanager
  • Updates toolbar controls for TinyMCE 7 (styles) and removes insertfile
  • Re-enables the menubar

'selector' => 'textarea#summary, textarea#body, textarea#message', // keep if targeting multiple fields
'plugins' => 'advlist anchor autolink charmap code hr image imagetools lists link media preview searchreplace table xoopsemoticons xoopscode', // removed 'xoopsimagemanager'
'toolbar' => 'undo redo | styleselect | bold italic | forecolor backcolor removeformat | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table tabledelete | insertfile image media link | hr | xoopsemoticons xoopscode | code',
'plugins' => 'advlist,anchor,autolink,charmap,code,hr,image,imagetools,lists,link,media,preview,searchreplace,table,xoopsimagemanager,xoopsemoticons,xoopscode',
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imagetools is a legacy TinyMCE plugin name that may not exist in TinyMCE 7 (it was replaced by editimage in newer TinyMCE versions). If imagetools is not available, it can trigger plugin load errors and prevent the editor from initializing or from loading subsequent plugins. Consider replacing imagetools with the TinyMCE 7-equivalent plugin (likely editimage) and, if needed, adding the corresponding toolbar button(s).

Suggested change
'plugins' => 'advlist,anchor,autolink,charmap,code,hr,image,imagetools,lists,link,media,preview,searchreplace,table,xoopsimagemanager,xoopsemoticons,xoopscode',
'plugins' => 'advlist,anchor,autolink,charmap,code,hr,image,editimage,lists,link,media,preview,searchreplace,table,xoopsimagemanager,xoopsemoticons,xoopscode',

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@htdocs/class/xoopseditor/tinymce7/settings.php`:
- Line 26: Remove the deprecated imagetools plugin from the TinyMCE plugins list
in settings.php: locate the 'plugins' configuration string (the array entry
containing advlist,anchor,autolink,...,xoopsemoticons,xoopscode) and delete the
substring "imagetools," so the plugins value no longer references imagetools,
preventing failed-to-load warnings in TinyMCE 7.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ad8b265d-3209-49cf-86fb-2903d0d13bf9

📥 Commits

Reviewing files that changed from the base of the PR and between a98da23 and 1d60ebf.

📒 Files selected for processing (1)
  • htdocs/class/xoopseditor/tinymce7/settings.php

Comment thread htdocs/class/xoopseditor/tinymce7/settings.php Outdated
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mambax7 mambax7 merged commit 893f18e into XOOPS:master Apr 18, 2026
14 of 16 checks passed
@mambax7 mambax7 deleted the feature/fix_for_TinyMCE7 branch April 18, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants