Skip to content

Commit

Permalink
Issue #2575: Use toolbar without image upload on df richtext editors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Oct 24, 2023
1 parent 5f495b9 commit 9f597fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions var/httpd/htdocs/js/Core.UI.RichTextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,14 @@ Core.UI.RichTextEditor = (function (TargetNS) {
if ( CustomerInterface ) {
ToolbarConfig = $EditorArea.width() < 454 ? Core.Config.Get('RichText.ToolbarMini') :
$EditorArea.width() < 622 ? Core.Config.Get('RichText.ToolbarMidi') :
CheckFormID($EditorArea).length ? Core.Config.Get('RichText.Toolbar') : Core.Config.Get('RichText.ToolbarWithoutImage');
( CheckFormID($EditorArea).length && !$EditorArea.hasClass('DynamicFieldRichText') ) ?
Core.Config.Get('RichText.Toolbar') :
Core.Config.Get('RichText.ToolbarWithoutImage');
}
else {
ToolbarConfig = CheckFormID($EditorArea).length ? Core.Config.Get('RichText.Toolbar') : Core.Config.Get('RichText.ToolbarWithoutImage');
ToolbarConfig = ( CheckFormID($EditorArea).length && !$EditorArea.hasClass('DynamicFieldRichText') ) ?
Core.Config.Get('RichText.Toolbar') :
Core.Config.Get('RichText.ToolbarWithoutImage');
}

// set default editor config, but allow custom config for other types for editors
Expand Down

0 comments on commit 9f597fe

Please sign in to comment.