File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/schedule-and-details/introducing-section Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ const IntroducingSection = ({
6969 />
7070 ) ;
7171
72+ const [ initialOverview ] = React . useState ( overview ) ;
73+ const [ initialSidebar ] = React . useState ( aboutSidebarHtml ) ;
74+
7275 return (
7376 < section className = "section-container introducing-section" >
7477 { aboutPageEditable && (
@@ -111,6 +114,7 @@ const IntroducingSection = ({
111114 < Form . Group className = "form-group-custom" >
112115 < Form . Label > { intl . formatMessage ( messages . courseOverviewLabel ) } </ Form . Label >
113116 < WysiwygEditor
117+ initialValue = { initialOverview }
114118 value = { overview }
115119 onChange = { ( value ) => onChange ( value , 'overview' ) }
116120 />
@@ -120,6 +124,7 @@ const IntroducingSection = ({
120124 < Form . Group className = "form-group-custom" >
121125 < Form . Label > { intl . formatMessage ( messages . courseAboutSidebarLabel ) } </ Form . Label >
122126 < WysiwygEditor
127+ initialValue = { initialSidebar }
123128 value = { aboutSidebarHtml }
124129 onChange = { ( value ) => onChange ( value , 'aboutSidebarHtml' ) }
125130 />
You can’t perform that action at this time.
0 commit comments