
June 3rd, 2009, 07:14 PM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 1
Time spent in forums: 5 m 36 sec
Reputation Power: 0
|
|
|
Other - Customizing execCommand() or better ideas
Hello,
Been designing a simple but for me powerful enough wysiwyg online text editor... i went with the execCommand as it seemed by far to be the easiest. the only problem i have run into, however, is that different browsers create different code. Whereas firefox might right <span style="font-weight: bold"> IE decides to write <strong> or <p style="text-align: right"> and <p align=right>. Obviously this just wont do.
Is there anyway to customize the code that execCommand generates? Read somewhere that people recommended to use DOMs instead, but i am really a javascript novice and it seems a bit more a hurdle to get over... if execCommand is non-customizable, does anyone know good DOM resources?
thanks!
|