Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

216
Vistas
Understand why/how tinyMCE stores <p><br data-mce-bogus="1"></p> in the correspondent textarea value

I have a textArea (#tinyTextArea) using tinyMCE and I'm trying to simulate the scenario where this <p><br data-mce-bogus="1"></p> can be set into that textArea value just before sending it back to the backend. Seems like this happened in the past and now I get these values stored in the DB... Any ideas what can cause these 2 tags to end up in the textArea value?

I'm using tinyMCE 5.7.1 and the following init options:

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'

I created a cleanup method that removes that

from the textArea value if it exists but, other than cleaning and fixing it simply, I would like to understand how that could have ended up there...

Thank you

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda