|  |  | @@ -1,6 +1,8 @@ | 
		
	
		
			
			|  |  |  | <template> | 
		
	
		
			
			|  |  |  | <div class="editor"> | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <meta-editor v-on:meta-editor:closed="isMetaEditorVisible=false" v-if="isMetaEditorVisible"/> | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <div class="bottom-bar"> | 
		
	
		
			
			|  |  |  | <div> | 
		
	
		
			
			|  |  |  | <label>Paragraphes :</label><span>{{nbParagraphs}}</span> | 
		
	
	
		
			
				|  |  | @@ -19,12 +21,16 @@ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <div id="file_actions"> | 
		
	
		
			
			|  |  |  | <button title="Ouvrir un fichier" id="input_button" | 
		
	
		
			
			|  |  |  | <button class="square_btn" title="Ouvrir un fichier" id="input_button" | 
		
	
		
			
			|  |  |  | onclick="document.getElementById('input').click()"></button> | 
		
	
		
			
			|  |  |  | <button title="Enregistrer" id="output_button" v-on:click="saveFile"></button> | 
		
	
		
			
			|  |  |  | <button class="square_btn" title="Enregistrer" id="output_button" v-on:click="saveFile"></button> | 
		
	
		
			
			|  |  |  | <input type="file" style="display:none;" id="input" v-on:change="loadFile()"> | 
		
	
		
			
			|  |  |  | <a style="display:none;" id="download_link" download="dedediteur-export-demo.html" href=”” >Download as Text File</a> | 
		
	
		
			
			|  |  |  | <button title="Export PDF" id="pdf_button" v-on:click="pdfExport"></button> | 
		
	
		
			
			|  |  |  | <button class="square_btn" title="Export PDF" id="pdf_button" v-on:click="pdfExport"></button> | 
		
	
		
			
			|  |  |  | </div> | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <div id="meta_action"> | 
		
	
		
			
			|  |  |  | <button v-on:click="isMetaEditorVisible=true" title="Éditer les métadonnées"></button> | 
		
	
		
			
			|  |  |  | </div> | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | @@ -134,6 +140,7 @@ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | <editor-content id="dedediteur" class="editor__content" :editor="editor"/> | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | </div> | 
		
	
		
			
			|  |  |  | </div> | 
		
	
		
			
			|  |  |  | </template> | 
		
	
	
		
			
				|  |  | @@ -150,6 +157,7 @@ | 
		
	
		
			
			|  |  |  | Link | 
		
	
		
			
			|  |  |  | } from 'tiptap-extensions' | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | import MetaEditor from './MetaEditor'; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | import Environment from "../environments/Environement" | 
		
	
		
			
			|  |  |  | import CustomStyle from "./extensions/CustomStyle" | 
		
	
	
		
			
				|  |  | @@ -159,7 +167,8 @@ | 
		
	
		
			
			|  |  |  | components: { | 
		
	
		
			
			|  |  |  | EditorContent, | 
		
	
		
			
			|  |  |  | EditorMenuBar, | 
		
	
		
			
			|  |  |  | EditorMenuBubble | 
		
	
		
			
			|  |  |  | EditorMenuBubble, | 
		
	
		
			
			|  |  |  | MetaEditor | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | data() { | 
		
	
		
			
			|  |  |  | return { | 
		
	
	
		
			
				|  |  | @@ -167,6 +176,7 @@ | 
		
	
		
			
			|  |  |  | nbParagraphs: 0, | 
		
	
		
			
			|  |  |  | nbSentences : 0, | 
		
	
		
			
			|  |  |  | environmentName: 'ar', | 
		
	
		
			
			|  |  |  | isMetaEditorVisible: false, | 
		
	
		
			
			|  |  |  | environment : new Environment(), | 
		
	
		
			
			|  |  |  | keepInBounds: true, | 
		
	
		
			
			|  |  |  | editor: new Editor({ | 
		
	
	
		
			
				|  |  | @@ -296,6 +306,7 @@ | 
		
	
		
			
			|  |  |  | @import '../assets/menupara'; | 
		
	
		
			
			|  |  |  | @import '../assets/dedediteur.css'; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | .bottom-bar{ | 
		
	
		
			
			|  |  |  | position: fixed; | 
		
	
		
			
			|  |  |  | width: 100vw; | 
		
	
	
		
			
				|  |  | @@ -330,17 +341,34 @@ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #file_actions { | 
		
	
		
			
			|  |  |  | /*border-bottom : 1px solid #2c3e50;*/ | 
		
	
		
			
			|  |  |  | padding: 12px; | 
		
	
		
			
			|  |  |  | position: fixed; | 
		
	
		
			
			|  |  |  | top: 10px; | 
		
	
		
			
			|  |  |  | left: 10px; | 
		
	
		
			
			|  |  |  | top: $button-width; | 
		
	
		
			
			|  |  |  | left: $button-width; | 
		
	
		
			
			|  |  |  | z-index: 200; | 
		
	
		
			
			|  |  |  | display: flex; | 
		
	
		
			
			|  |  |  | flex-direction: column; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #meta_action { | 
		
	
		
			
			|  |  |  | position: fixed; | 
		
	
		
			
			|  |  |  | top: $button-width; | 
		
	
		
			
			|  |  |  | right: $button-width; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | button{ | 
		
	
		
			
			|  |  |  | width:  $button-width; | 
		
	
		
			
			|  |  |  | height: $button-width; | 
		
	
		
			
			|  |  |  | background-color: $txt-color; | 
		
	
		
			
			|  |  |  | border-radius: calc(#{$button-width} /2); | 
		
	
		
			
			|  |  |  | border: none; | 
		
	
		
			
			|  |  |  | cursor: pointer; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #output_button, #input_button, #pdf_button { | 
		
	
		
			
			|  |  |  | .square_btn  { | 
		
	
		
			
			|  |  |  | border: 1px solid black; | 
		
	
		
			
			|  |  |  | width: 24px; | 
		
	
		
			
			|  |  |  | height: 24px; | 
		
	
		
			
			|  |  |  | width:  $button-width; | 
		
	
		
			
			|  |  |  | height: $button-width; | 
		
	
		
			
			|  |  |  | cursor: pointer; | 
		
	
		
			
			|  |  |  | outline:none; | 
		
	
		
			
			|  |  |  | &:focus { | 
		
	
	
		
			
				|  |  | @@ -354,11 +382,11 @@ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #output_button { | 
		
	
		
			
			|  |  |  | background-color: black; | 
		
	
		
			
			|  |  |  | margin-left: 12px; | 
		
	
		
			
			|  |  |  | margin-top: $button-width; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | #pdf_button{ | 
		
	
		
			
			|  |  |  | background-color: red; | 
		
	
		
			
			|  |  |  | margin-left: 12px; | 
		
	
		
			
			|  |  |  | margin-top: $button-width | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | /* editor*/ | 
		
	
	
		
			
				|  |  | 
 |