Skip to content

Commit

Permalink
Fix salesagility#10574 - Display TinyMCE in PDF templates after addin…
Browse files Browse the repository at this point in the history
…g a wysiwyg field
  • Loading branch information
SinergiaCRM committed Nov 19, 2024
1 parent e572230 commit b9dcd72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/SugarFields/Fields/Wysiwyg/SugarFieldWysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function getEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex
$config = [];
$config['height'] = 250;
$config['menubar'] = false;
$config['plugins'] = 'code, table, link, image, wordcount';
if ($vardef["custom_module"] != "AOS_PDF_Templates") {
$config['plugins'] = 'code, table, link, image, wordcount';
}
if ($form_name !== '') {
$config['selector'] = "#{$form_name} " . "#" . $vardef['name'];
} else {
Expand Down

0 comments on commit b9dcd72

Please sign in to comment.