Skip to content

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

Open
@SinergiaCRM

Description

@SinergiaCRM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ModuleIssues & PRs related to modules that do not have specific labelArea: PDFsIssues & PRs related to all things regarding PDFsPriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsSeverity: ModerateKey function failed, but no or little impactType: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions