Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
mp-vue-editor
Advanced tools
MP plugin plantillas setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
1.- Install component
$ npm i mp-vue-editor
$ npm i @ckeditor/ckeditor5-vue@4.0.1
2.- In main.js file
import MpTemplatesPlugin from 'mp-vue-editor';
import CKEditor from '@ckeditor/ckeditor5-vue'
import '../node_modules/mp-vue-editor/dist/style.css';
...
aoo.use(CKEditor);
app.use(MpTemplatesPlugin, {
//Si su proyecto no usa los servicios de primevue true | false
useServices: true,
//Si su proyecto no usa las directivas de primevue true | false
addDirectives: true,
//Si su proyecto no usa los componentes de primevue true | false
addPrimeVueComponents: true,
});
cambiar version
npm run build
npm login
npm publish
<CKEditorCustom
v-model="value"
:config="configCKeditor"
:format="{ name: 'letter', width: '290mm', height: '330mm' }"
orientacion="horizontal"
>
<template #header></template>
</CKEditorCustom>
<TagList :list="listTags" @click-one="(tag) => tag"></TagList>
<PrimeCkEditor></PrimeCkEditor>
v-model
orientacion, 'horizontal' o 'Vertical'
format: puede ser de tipo 'letter' o de tipo 'legal', tambien hay que mandar el el with y height para modificar el tamañao de hoja con css
jsonInfo, objeto json con la información para convertirlos a tags
showToolbar: mostrar todo el toolbar con las opciones
showPdf: mostrar el botton de 'vista pdf'
showPageConfig: mostrar el botton de 'configurar pagina'
showTags: mostrar el botton de 'tags', para visualizar el sidebar
pdfUrl, url de la base64 o la url del pdf a cargar
margins, { top, left, right , botton }, para indicar los margenes
restricted, Boolean modo restringido
PrimeCkEditorTags (en desarrollo)
<PrimeCkEditorTags></PrimeCkEditorTags>
typings.d.ts
dentro de src/declare module '@ckeditor/ckeditor5-vue' {
const CKEditor: any;
export default CKEditor;
}
declare module 'mp-vue-editor' {
const MpTemplatesPlugin: any;
export default MpTemplatesPlugin;
}
FAQs
Plugin vue3 editor con ckeditor5
The npm package mp-vue-editor receives a total of 3 weekly downloads. As such, mp-vue-editor popularity was classified as not popular.
We found that mp-vue-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.