Commit 2fd3c648 authored by Erick Poppe's avatar Erick Poppe
Browse files

AaAñadiendo página de prueba para integración con CKEditor

parent 68f1a29c
Pipeline #3599 failed with stages
{
"name": "nuevonuxt",
"version": "0.0.1",
"description": "nada",
"main": "index.js",
"scripts": {
"dev": "nuxt"
},
"author": "Erik Poppe",
"license": "GPL-3.0",
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^24.0.0",
"@ckeditor/ckeditor5-build-decoupled-document": "^24.0.0",
"@ckeditor/ckeditor5-vue": "^2.0.1",
"nuxt": "^2.14.12"
}
}
<template>
<div class="container">
<h1>CKEditor 5 Nuxt Demo</h1>
<div id="toolbar-container"></div>
<div id="editor"></div>
</div>
</template>
<script>
let DecoupledEditor
if (process.browser) {
DecoupledEditor = require('@ckeditor/ckeditor5-build-decoupled-document')
}
export default {
mounted() {
DecoupledEditor.create(document.querySelector('#editor'))
.then((editor) => {
const toolbarContainer = document.querySelector('#toolbar-container')
toolbarContainer.appendChild(editor.ui.view.toolbar.element)
})
.catch((error) => {
// eslint-disable-next-line no-console
console.error(error)
})
}
}
</script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment