|
|
@@ -137,9 +137,22 @@ |
|
|
|
T4 |
|
|
|
</button> |
|
|
|
|
|
|
|
<button v-if="environment.hasParagraphOption('ol')" |
|
|
|
class="menubar__button" |
|
|
|
:class="{ 'is-active': isActive.ordered_list() }" |
|
|
|
@click="commands.ordered_list"> |
|
|
|
OL |
|
|
|
</button> |
|
|
|
|
|
|
|
<button v-if="environment.hasParagraphOption('ul')" |
|
|
|
class="menubar__button" |
|
|
|
:class="{ 'is-active': isActive.bullet_list() }" |
|
|
|
@click="commands.bullet_list"> |
|
|
|
UL |
|
|
|
</button> |
|
|
|
<button v-if="environment.hasParagraphOption('quote')" |
|
|
|
class="menubar__button" |
|
|
|
:class="{ 'is-active': isActive.blockquote() }" |
|
|
|
:class="{ 'is-active': isActive.blockquote()}" |
|
|
|
@click="commands.blockquote"> |
|
|
|
« » |
|
|
|
</button> |
|
|
@@ -186,7 +199,6 @@ |
|
|
|
MetaEditor |
|
|
|
}, |
|
|
|
data() { |
|
|
|
console.log(window.environments); |
|
|
|
return { |
|
|
|
nbWords: 0, |
|
|
|
nbParagraphs: 0, |
|
|
@@ -206,6 +218,7 @@ |
|
|
|
new Heading({levels: [1, 2, 3]}), |
|
|
|
new ListItem(), |
|
|
|
new OrderedList(), |
|
|
|
new BulletList(), |
|
|
|
new Link(), |
|
|
|
new CustomStyle() |
|
|
|
], |
|
|
@@ -325,8 +338,13 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
newFile() { |
|
|
|
this.isOpeningState = true; |
|
|
|
//this.editor.setContent('<p></p>'); |
|
|
|
console.log(this.environmentList.length) |
|
|
|
if(this.environmentList.length > 1) { |
|
|
|
this.isOpeningState = true; |
|
|
|
} |
|
|
|
else{ |
|
|
|
this.openEnvFile(this.environmentList[0].name) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
htmlExport() { |
|
|
@@ -335,7 +353,6 @@ |
|
|
|
|
|
|
|
htmlPreview(){ |
|
|
|
this.isPreviewMode = ! this.isPreviewMode; |
|
|
|
//document.getElementById('preview_button').innerHTML = this.isPreviewMode ? '×' :''; |
|
|
|
}, |
|
|
|
|
|
|
|
openEnvFile(envName){ |
|
|
@@ -370,6 +387,7 @@ |
|
|
|
font-size: 0.8rem; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding-left: $button-width; |
|
|
|
|
|
|
|
div { |
|
|
|
display: flex; |
|
|
|