I'm using pasteHtml to insert some html into the editor and, the style tag is being changed from what the pasteHtml is given.
I'm using the following command:
editor.pasteHtml(String.format(
"<input id='{0}__btn__' value='Go' onclick='return isValidEncounter(this)' style='border:none; color: #FF0000; text-decoration:underline; text-align: center' size='1' title='Validate encounter number'>"
, args.ID))
Notice the style has the border set to none.
Unfortunately, the following is the result after the pasteHtml command (as viewed in the HTML mode of the editor and as the final rendered html when inspecting in IE)
<
input
title
=
"Validate encounter number"
id
=
"asdf__btn__"
style
=
"border: currentColor; border-image: none; text-align: center; color: #ff0000; text-decoration: underline;"
onclick
=
"return isValidEncounter(this)"
size
=
"1"
value
=
"Go"
/>
Now the border is set to currentColor and a border-image attribute has been added. This doesn't render correctly in IE (I see a border around it).
Is there any way to simply have pasteHtml not alter the HTML style tag given to it?