 
  
  <template> 
   <div id="codex-editor"></div> 
</template> 
<script> 
    let EditorJS = null, ImageTool = null; 
    if (process.client) { 
        EditorJS = require('@editorjs/editorjs'); 
        ImageTool = require('@editorjs/image'); 
    } 
     export default { 
         mounted() { 
         const editor = new EditorJS({ 
         holder: 'codex-editor', 
     tools: { 
         image: { 
             class: ImageTool, 
         } 
     } 
    }); 
  } 
 } 
  
   
  
   
  
   
  
   
  
   
  
   
  
   
  
   
  
   
  
   
  
  