fix: rtl offset + list indent (#1326, #1327)

This commit is contained in:
NGPixel
2019-12-22 18:49:17 -05:00
parent f09f1f4f1e
commit 14c842ff9d
4 changed files with 65 additions and 8 deletions

View File

@@ -183,6 +183,8 @@ import _ from 'lodash'
import { get, sync } from 'vuex-pathify'
import markdownHelp from './markdown/help.vue'
/* global siteConfig */
// ========================================
// IMPORTS
// ========================================
@@ -491,7 +493,8 @@ export default {
},
viewportMargin: 50,
inputStyle: 'contenteditable',
allowDropFileTypes: ['image/jpg', 'image/png', 'image/svg', 'image/jpeg', 'image/gif']
allowDropFileTypes: ['image/jpg', 'image/png', 'image/svg', 'image/jpeg', 'image/gif'],
direction: siteConfig.rtl ? 'rtl' : 'ltr'
})
this.cm.setValue(this.$store.get('editor/content'))
this.cm.on('change', c => {