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

173
Views
contenteditable mueve el cursor fuera del bloque

si coloca otro bloque html con el atributo contenteditable="false" en el bloque contenteditable, entonces el cursor se mueve fuera del bloque como se muestra en la captura de pantalla.

ingrese la descripción de la imagen aquí

Intente comenzar a eliminar la palabra "eliminar" en el ejemplo. Y el cursor irá más allá del bloque. ¿Es posible solucionar este problema?

http://jsfiddle.net/weckdjp4/

 .test-block { display: inline-block; height: 30px; border: 1px solid red; padding: 2px; } .content { width: 80%; border: 1px solid #CCC; padding: 10px; }
 <div class="content" contenteditable="true" id="test">hi <div class="test-block" contenteditable="false">test</div>remove</div>

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

0

Agregar box-sizing: border-box; a .content :

 .content { width: 80%; border: 1px solid #CCC; padding: 10px; box-sizing: border-box; }
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!