2017-07-23 18:42:08 +00:00
|
|
|
<template>
|
|
|
|
<div class="editor">
|
2017-09-17 15:32:39 +00:00
|
|
|
<pre class="editor__inner markdown-highlighting" :style="{padding: styles.editorPadding}" :class="{monospaced: computedSettings.editor.monospacedFontOnly}"></pre>
|
2017-07-23 18:42:08 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2017-07-31 09:04:01 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
2017-07-23 18:42:08 +00:00
|
|
|
|
|
|
|
export default {
|
2017-09-17 15:32:39 +00:00
|
|
|
computed: {
|
|
|
|
...mapGetters('layout', [
|
|
|
|
'styles',
|
|
|
|
]),
|
|
|
|
...mapGetters('data', [
|
|
|
|
'computedSettings',
|
|
|
|
]),
|
|
|
|
},
|
2017-07-23 18:42:08 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import 'common/variables.scss';
|
|
|
|
|
|
|
|
.editor {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor__inner {
|
2017-08-03 17:08:12 +00:00
|
|
|
margin: 0;
|
2017-07-25 18:20:52 +00:00
|
|
|
font-family: $font-family-main;
|
2017-07-23 18:42:08 +00:00
|
|
|
font-variant-ligatures: no-common-ligatures;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-break: break-word;
|
|
|
|
word-wrap: break-word;
|
2017-08-03 17:08:12 +00:00
|
|
|
caret-color: #000;
|
2017-07-23 18:42:08 +00:00
|
|
|
|
|
|
|
* {
|
2017-07-25 23:34:01 +00:00
|
|
|
line-height: $line-height-base;
|
2017-07-23 18:42:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cledit-section {
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-highlight,
|
|
|
|
.find-replace-highlight {
|
|
|
|
background-color: transparentize(#ffe400, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.monospaced {
|
|
|
|
font-family: $font-family-monospace !important;
|
|
|
|
font-size: $font-size-monospace !important;
|
|
|
|
|
|
|
|
* {
|
|
|
|
font-size: inherit !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|