Skip to content

Commit c864dea

Browse files
fix: remove contentAnalyzer and hardcoded editorType
1 parent 18f0db9 commit c864dea

File tree

3 files changed

+2
-213
lines changed

3 files changed

+2
-213
lines changed

src/schedule-and-details/introducing-section/contentTypeUtils.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/schedule-and-details/introducing-section/contentTypeUtils.test.js

Lines changed: 0 additions & 167 deletions
This file was deleted.

src/schedule-and-details/introducing-section/index.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { WysiwygEditor } from '../../generic/WysiwygEditor';
1111
import SectionSubHeader from '../../generic/section-sub-header';
1212
import IntroductionVideo from './introduction-video';
1313
import ExtendedCourseDetails from './extended-course-details';
14-
import { determineEditorType } from './contentTypeUtils';
1514
import messages from './messages';
1615

1716
const IntroducingSection = ({
@@ -113,7 +112,7 @@ const IntroducingSection = ({
113112
<Form.Label>{intl.formatMessage(messages.courseOverviewLabel)}</Form.Label>
114113
<WysiwygEditor
115114
initialValue={overview}
116-
editorType={determineEditorType(overview)}
115+
editorType="html"
117116
onChange={(value) => onChange(value, 'overview')}
118117
/>
119118
<Form.Control.Feedback>{overviewHelpText}</Form.Control.Feedback>
@@ -123,7 +122,7 @@ const IntroducingSection = ({
123122
<Form.Label>{intl.formatMessage(messages.courseAboutSidebarLabel)}</Form.Label>
124123
<WysiwygEditor
125124
initialValue={aboutSidebarHtml}
126-
editorType={determineEditorType(aboutSidebarHtml)}
125+
editorType="html"
127126
onChange={(value) => onChange(value, 'aboutSidebarHtml')}
128127
/>
129128
<Form.Control.Feedback>{aboutSidebarHelpText}</Form.Control.Feedback>

0 commit comments

Comments
 (0)