Skip to content

Commit a5776a1

Browse files
ENH Remove unnecessary TinyMCE-specific code. (#209)
This was checking for app/css/editor.css which in most cases won't even exist and in the cases it does exist is probably already applied.
1 parent c4ef303 commit a5776a1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

code/ReportAdmin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
6868
public function init()
6969
{
7070
parent::init();
71-
72-
// Set custom options for TinyMCE specific to ReportAdmin
73-
HTMLEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
74-
7571
Requirements::javascript('silverstripe/reports: client/dist/js/ReportAdmin.js');
7672
}
7773

tests/behat/features/sitewidecontentreport.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: Site wide content report
1212
When I am logged in as a member of "EDITOR" group
1313
And I go to "/admin/reports"
1414
And I follow "Site-wide content report"
15-
15+
1616
# Show all Pages
1717
Then I should see "My page"
1818
And I should see "my-page"
@@ -25,7 +25,7 @@ Feature: Site wide content report
2525
When I go to "/admin/reports"
2626
And I follow "Site-wide content report"
2727
When I follow "My page"
28-
Then I should see a ".tox-tinymce" element
28+
Then I should see "My page" in the ".breadcrumbs-wrapper" element
2929

3030
# Click on a file to open it
3131
When I go to "/admin/reports"

0 commit comments

Comments
 (0)