Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
reaccionar tinymce hpw para mostrar solo una vista previa e imprimir en el archivo

Estoy tratando de crear una aplicación. Donde estoy usando tinymce como editor. En el panel de archivos, no quiero mostrar un nuevo documento. Actualmente está renderizando:

ingrese la descripción de la imagen aquí

Pero solo quiero renderizarlo con estas dos opciones:

ingrese la descripción de la imagen aquí

¿Puede alguien ayudarme con eso?

Aquí está mi configuración relacionada:

 plugins: 'print preview ...', menubar: 'file edit ...',

Gracias.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Según la documentación, si desea controlar lo que ve en cada menú discreto, debe proporcionar esas opciones explícitamente:

https://www.tiny.cloud/docs/configure/editor-appearance/#menu

Los valores predeterminados son:

 menu: { file: { title: 'File', items: 'newdocument restoredraft | preview | print ' }, edit: { title: 'Edit', items: 'undo redo | cut copy paste | selectall | searchreplace' }, view: { title: 'View', items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen' }, insert: { title: 'Insert', items: 'image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime' }, format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | removeformat' }, tools: { title: 'Tools', items: 'spellchecker spellcheckerlanguage | code wordcount' }, table: { title: 'Table', items: 'inserttable | cell row column | tableprops deletetable' }, help: { title: 'Help', items: 'help' } }

Entonces, si solo desea 2 elementos en el menú de archivo, deberá indicarlo explícitamente dentro de la opción de menú más amplia:

 file: { title: 'File', items: 'preview | print ' },

Aquí hay un violín TinyMCE que muestra esto en acción: https://fiddle.tiny.cloud/hYhaab

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!