at first i added but my markup is fairly complex and the editor allows you to float image elements, so non breaking spaces are not an option since the text won't float correctly arround wrapper elements which are floated.
adding only a whitespace in the span tag doesn't make the cursor jump on key input, and adding more spans in a row collapse to only one space.
i solved this by emulating a white space by adding a whitespace followed by a BOM character.
<span>*\ufeff</span>
where * is the whitespace itself.
this seems to work accross all browsers.
Keine Kommentare:
Kommentar veröffentlichen