|
@@ -19,6 +19,8 @@ class MarkdownSetting extends React.Component {
|
|
|
this.state = {
|
|
this.state = {
|
|
|
isEnabledLinebreaks: appContainer.config.isEnabledLinebreaks,
|
|
isEnabledLinebreaks: appContainer.config.isEnabledLinebreaks,
|
|
|
isEnabledLinebreaksInComments: appContainer.config.isEnabledLinebreaksInComments,
|
|
isEnabledLinebreaksInComments: appContainer.config.isEnabledLinebreaksInComments,
|
|
|
|
|
+ //isEnabledLinebreaks: false,
|
|
|
|
|
+ //isEnabledLinebreaksInComments: false,
|
|
|
// TODO GW-220 get correct BreakOption value
|
|
// TODO GW-220 get correct BreakOption value
|
|
|
pageBreakOption: 1,
|
|
pageBreakOption: 1,
|
|
|
// TODO GW-258 get correct custom regular expression
|
|
// TODO GW-258 get correct custom regular expression
|
|
@@ -45,7 +47,7 @@ class MarkdownSetting extends React.Component {
|
|
|
this.props.appContainer.apiPost('/admin/markdown/lineBreaksSetting', { isEnabledLinebreaks: this.state.isEnabledLinebreaks });
|
|
this.props.appContainer.apiPost('/admin/markdown/lineBreaksSetting', { isEnabledLinebreaks: this.state.isEnabledLinebreaks });
|
|
|
toastSuccess('Success change line braek setting');
|
|
toastSuccess('Success change line braek setting');
|
|
|
this.props.appContainer.apiPost('/admin/markdown/lineBreaksSetting', { isEnabledLinebreaksInComments: this.state.isEnabledLinebreaksInComments });
|
|
this.props.appContainer.apiPost('/admin/markdown/lineBreaksSetting', { isEnabledLinebreaksInComments: this.state.isEnabledLinebreaksInComments });
|
|
|
- toastSuccess('Success change line braek setting');
|
|
|
|
|
|
|
+ toastSuccess('Success change line braek setting in comments');
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|