Open pdcmoreira opened 10 years ago
Imagine an editor with placeholder="foo". I'm doing editor.composer.commands.exec("insertHTML", 'hi'); on it.
placeholder="foo"
editor.composer.commands.exec("insertHTML", 'hi');
Now, two things can happen:
bar
barhi
hifoo
[EDIT] As a workaround, doing:
[EDIT]
if(editor.getValue() === '') editor.clear();
Before the insertHTML, works fine.
insertHTML
Imagine an editor with
placeholder="foo"
. I'm doingeditor.composer.commands.exec("insertHTML", 'hi');
on it.Now, two things can happen:
bar
, it becomesbarhi
after the command;hifoo
.[EDIT]
As a workaround, doing:Before the
insertHTML
, works fine.