Por lo que he visto hasta ahora aquí en stackoverflow, hay algunas recomendaciones sobre la función String.replaceAll() o el uso de javascript con el ID de entrada. El siguiente código introducirá un espacio después de cinco caracteres, pero lo necesito para agregar el espacio después de escribir el carácter de barra inclinada.
document.getElementById('target').addEventListener('input', function (e) { var target = e.target, position = target.selectionEnd, length = target.value.length; target.value = target.value.replace(/\s/g, '').replace(/(\d{5})/g, '$1 ').trim(); target.selectionEnd = position += ((target.value.charAt(position - 1) === ' ' && target.value.charAt(length - 1) === ' ' && length !== target.value.length) ? 1 : 0); }); <label id="target" contenteditable="true" type="text"/>someText</label>Agradezco cualquier orientación.