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

TinyMCE editor not showing in PDF Templates after adding a wysiwyg field #10574

Open
SinergiaCRM opened this issue Nov 14, 2024 · 0 comments
Open
Labels
Area: Module Issues & PRs related to modules that do not have specific label Area: PDFs Issues & PRs related to all things regarding PDFs Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

Issue

In the PDF Templates module, when creating a WYSIWYG type field in Studio and adding it in the editing view, when accessing the editing view, the editor is not displayed in all fields that show a rich text editor.

Possible Fix

It seems that the error occurs because another TinyMCE configuration is already preloaded in the PDF Templates module's editing view.

Checking the plugins that are added in the include/SugarFields/Fields/Wysiwyg/SugarFieldWysiwyg.php file seems to fix it:

if ($vardef["custom_module"] != "AOS_PDF_Templates") {
$config['plugins'] = 'code, table, link, image, wordcount';
}

Steps to Reproduce the Issue

1. Go to Administration -> Studio -> PDF Templates
2. Create a WYSIWYG field
3. Edit the Edit View and add the new WYSIWYG field
4. Go to PDF Templates -> Create PDF Template
5. The WYSIWYG editor for the new field should load and not produce any errors in the browser console.

Context

No response

Version

7.14.5

What browser are you currently using?

Firefox

Browser Version

131.0.3 (64-bit)

Environment Information

MySQL, PHP Version 8.2

Operating System and Version

Ubuntu 22.04.4 LTS

@SinergiaCRM SinergiaCRM added the Type: Bug Bugs within the core SuiteCRM codebase label Nov 14, 2024
@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Module Issues & PRs related to modules that do not have specific label Area: PDFs Issues & PRs related to all things regarding PDFs Severity: Moderate Key function failed, but no or little impact labels Nov 14, 2024
ManuSinergiaCRM pushed a commit to SinergiaTIC/SinergiaCRM that referenced this issue Nov 15, 2024
ManuSinergiaCRM pushed a commit to SinergiaTIC/SinergiaCRM that referenced this issue Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Area: PDFs Issues & PRs related to all things regarding PDFs Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants