¡@

Home 

2014/10/16 ¤W¤È 12:02:24

jquery Programming Glossary: ce.find

Extracting text from a contentEditable div

http://stackoverflow.com/questions/3455931/extracting-text-from-a-contenteditable-div

like this var ce pre .html #edit .html if .browser.webkit ce.find div .replaceWith function return n this.innerHTML if .browser.msie.. function return n this.innerHTML if .browser.msie ce.find p .replaceWith function return this.innerHTML br if .browser.mozilla.. br if .browser.mozilla .browser.opera .browser.msie ce.find br .replaceWith n var textWithWhiteSpaceIntact ce.text You can..

Extracting text from a contentEditable div

http://stackoverflow.com/questions/3455931/extracting-text-from-a-contenteditable-div

but luckily you can take care of them all pretty concisely like this var ce pre .html #edit .html if .browser.webkit ce.find div .replaceWith function return n this.innerHTML if .browser.msie ce.find p .replaceWith function return this.innerHTML.. ce pre .html #edit .html if .browser.webkit ce.find div .replaceWith function return n this.innerHTML if .browser.msie ce.find p .replaceWith function return this.innerHTML br if .browser.mozilla .browser.opera .browser.msie ce.find br .replaceWith.. ce.find p .replaceWith function return this.innerHTML br if .browser.mozilla .browser.opera .browser.msie ce.find br .replaceWith n var textWithWhiteSpaceIntact ce.text You can test it out here . IE in particular is a hassle because of..