Skip to content

Commit

Permalink
Hotfix - Plantillas PDF - No aplicar configuración TinyMCE en vista d…
Browse files Browse the repository at this point in the history
…e edición (#309)
  • Loading branch information
ManuSinergiaCRM authored Sep 20, 2024
1 parent 435a799 commit 7ec708a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions include/SugarFields/Fields/Wysiwyg/SugarFieldWysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,17 @@ function getEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex
$config = [];
$config['height'] = 250;
$config['menubar'] = false;
$config['plugins'] = 'code, table, link, image, wordcount';
// STIC-Custom 20240722 MHP - Do not apply the configuration if we are in PDF Templates
//
// $config['plugins'] = 'code, table, link, image, wordcount';
// $config['selector'] = "#{$form_name} "."#".$vardef['name'];
// $config['toolbar1'] = 'fontselect | fontsizeselect | bold italic underline | forecolor backcolor | styleselect | outdent indent | link image | code table';
$config['selector'] = "#{$form_name} "."#".$vardef['name'];
$config['toolbar1'] = 'fontselect | fontsizeselect | bold italic underline | forecolor backcolor | styleselect | outdent indent | link image | code table';
if ($vardef["custom_module"] != "AOS_PDF_Templates") {
$config['plugins'] = 'code, table, link, image, wordcount';
$config['toolbar1'] = 'fontselect | fontsizeselect | bold italic underline | forecolor backcolor | styleselect | outdent indent | link image | code table';
}
// END STIC-Custom

$jsConfig = json_encode($config);
$initiate = '<script type="text/javascript"> tinyMCE.init('.$jsConfig.')</script>';
Expand Down

0 comments on commit 7ec708a

Please sign in to comment.