Categories
Code Snippets jQuery

Replace Smart Quotes With Straight Quotes

I created a web app that uses ckEditor as the rich text editor. It works perfectly except when you copy and paste text that includes smart quotes and other special symbols. CkEditor converts the smart quotes to HTML entities, which would be fine in a normal situation. The Html entities caused a problem when it […]

Categories
jQuery

Get Content from CkEditor Using JQuery

In a recent project I used the CkEditor to add a WYSIWYG¬†editor to the private¬†control panel. It was easy to add the editor to the page, but I struggled to get content from CkEditor using jQuery. Normally I would use the following code to get content on submit. But that does not work when using […]