execCommand clear all formating
chfjgj ghj gfhj hg jgfh jfg foo sdčlfaklsd foo gfhdfhg
assuming blue stuff is something like:
So, in order to do something you must read selection underlying HTML.
One cross browser method is here: http://www.codingforums.com/archive/.../t-154848.html, scroll to bottom.
Now the problem that exist all the time, regardles of method used for reading
underlying HTML .....
consider this (note extra space in second line):
This(getting html) even work if you have 'foo,' and select all that, but gives you one extra unwanted ',' (in this case) inside HTML.
Any solution to this ?
All upper statements tested on FF.
EDIT: the prob is in contentEditable = /true/false. In IE works OK regardlesa of state, in FF works same as IE OK if false, otherwise not.
Just a reminder that the <font> tag was deleted from HTML back in 1997 and was one of those replaced by CSS.
Yes I know, but execCommand puts it in. Latest FF version (for fore color text).
|All times are GMT +1. The time now is 01:02 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.