Reputation: 91
With execCommand different browsers create different code. firefox might take span and set the font-weight , IE decides to write tag strong or p. Here is a link for execCommand demos. http://help.dottoro.com/ljcvtcaw.php
Is there anyway to customize the code that execCommand generates? Is there any command like execCommand which can generate same code in all browsers?
Upvotes: 0
Views: 471
Reputation: 324
I would just build multiple arrays for multiple functions and when a user is complete with their file, just run a .replace();
Upvotes: 1