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

Hotfix - Plantillas PDF - No aplicar configuración TinyMCE en vista de edición #309

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading