1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

added rtl toggle button

This commit is contained in:
Itai Braude
2019-10-17 21:04:00 +03:00
parent e34485eb83
commit b22b09a93d
4 changed files with 8 additions and 9 deletions

View File

@@ -539,7 +539,7 @@ export default class CodeEditor extends React.Component {
rulers,
enableRulers,
enableMarkdownLint,
customMarkdownLintConfig,
customMarkdownLintConfig
} = this.props
if (prevProps.mode !== this.props.mode) {
this.setMode(this.props.mode)
@@ -558,8 +558,8 @@ export default class CodeEditor extends React.Component {
needRefresh = true
}
if (prevProps.RTL !== this.props.RTL) {
this.editor.setOption('direction', this.props.RTL ? 'rtl' : 'ltr' )
this.editor.setOption('rtlMoveVisually', this.props.RTL ? 'true' : 'false' )
this.editor.setOption('direction', this.props.RTL ? 'rtl' : 'ltr')
this.editor.setOption('rtlMoveVisually', this.props.RTL ? 'true' : 'false')
}
if (prevProps.enableMarkdownLint !== enableMarkdownLint || prevProps.customMarkdownLintConfig !== customMarkdownLintConfig) {
if (!enableMarkdownLint) {