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

204
Views
Comprender por qué/cómo tinyMCE almacena <p><br data-mce-bogus="1"></p> en el valor del área de texto correspondiente

Tengo un textArea ( #tinyTextArea ) usando tinyMCE y estoy tratando de simular el escenario donde este <p><br data-mce-bogus="1"></p> se puede configurar en ese valor de textArea justo antes de enviar de vuelta al backend. Parece que esto sucedió en el pasado y ahora obtengo estos valores almacenados en la base de datos... ¿Alguna idea de qué puede causar que estas 2 etiquetas terminen en el valor de textArea?

Estoy usando tinyMCE 5.7.1 y las siguientes opciones de inicio:

 height: 320, content_style: 'html { font-size: 11px }', plugins: 'print paste importcss code visualblocks visualchars fullscreen image link table charmap hr nonbreaking advlist lists imagetools textpattern noneditable charmap quickbars emoticons', convert_newlines_to_brs : true, menubar: 'edit view insert format table', removed_menuitems: 'formats fontformats', toolbar: 'formatselect | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | print fullscreen', toolbar_mode: 'wrap', fontsize_formats: "8px 11px 14px 17px 20px", quickbars_selection_toolbar: 'bold italic underline strikethrough | forecolor backcolor removeformat | fontsizeselect', quickbars_insert_toolbar: false, contextmenu: 'link image imagetools table', elementpath: false, branding: false, resize: 'both'

Creé un método de limpieza que elimina eso

del valor textArea si existe pero, además de limpiarlo y arreglarlo simplemente, me gustaría entender cómo pudo haber terminado allí...

Gracias

about 4 years ago · Juan Pablo Isaza
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!