
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 1 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.