Skip to main content

By pass single quote or special character in ck editor or fck editor in any language

By pass single quote or special character in ck editor or fck editor in any language like asp.net , php etc
 
whenever we are using ckeditor or fckeditor we are able to pass the data successfully but if single quote  or symbols like '|>|<|\\+ is present in our content then it will not save the data
I search a lot for the solution of this topic. 

Every post is provide some rumors but finally after using ck editor for long time, i found the solution. so friends now you can pass any type of data in fckeditor or ck editor 

------------------------------------------------------------------------------------------------------------------------

AdditionalNumericEntities

With this setting, you can define a set of characters which will be translated to their relative numeric entities in the output HTML. This is quite useful if you don't want single quotes (') to be inserted in the text (being transformed to ′): 

If you are using fckeditor 2.x then go to fckconfig.js

FCKConfig.AdditionalNumericEntities = "'" ;

This is a "regular expression" like setting where matches must return only one character. So if you want to set a list of chars, you can separate them by a pipe (|). For example: you want to transform ', >, < and + to their numeric entities: 

FCKConfig.AdditionalNumericEntities = "'|>|<|\\+" ;

NOTE: that the plus sign has been escaped with double backslashes because it is a special character in regular expressions. 

Being it a regular expression, it gives you the flexibility to make complex selection of characters.

Examples:
  • Everything that is not a space, a ASCII or a Cyrillic char.
FCKConfig.AdditionalNumericEntities = "[^ A-z\\u0410-\\u044F]" ;
  • Single quotes, numbers and capitalized letters.
FCKConfig.AdditionalNumericEntities = "'|[0-9A-Z]" ; 



-------------------------------------------------------------------------------------------------------------------------------------

Refrence of this post is:
http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/AdditionalNumericEntities


for more configuration go to:
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html

Comments

  1. I have read so many content regarding the blogger lovers however this post is genuinely a pleasant paragraph, keep it up.

    ReplyDelete
  2. Hey there! I could have sworn I've been to this website before but after reading through some of the post I realized it's new to me. Anyways, I'm definitely glad I found it and I'll be book-marking and checking back frequently!

    ReplyDelete

Post a Comment

Popular posts from this blog

10 jQuery Custom Scrollbar Plugins

10 jQuery Custom Scrollbar Plugins If you ever wanted to add some custom scrollbars to your website, to scroll the contents and the default browser scrollbars just doesn’t match up with your design, than make sure you check this list of 10 jQuery custom scrollbar plugins. Hope you find the following information helpful. 1. jScrollPane – custom cross-browser scrollbars Kelvin Luck’s jScrollPane was originally developed in December 2006. It is a jQuery plugin which provides you with custom scrollbars which work consistently across all modern browsers. You can style the scrollbars using simple CSS and they degrade gracefully where JavaScript is disabled. 2. Plugin JQuery : Scrollbar This page is written in french so use Google’s translate service to translate this page to your preferred language. Download is available for the plugin.  The purpose of this plugin is to add a scrollbar to the item of your choice, to view any content which is larger than the size – vizibl...

List of Best and Worst practices for SEO

Keywords 1 Keywords in <title> tag This is one of the most important places to have a keyword because what is written inside the <title> tag shows in search results as your page title. The title tag must be short (6 or 7 words at most) and the the keyword must be near the beginning. +3 2 Keywords in URL Keywords in URLs help a lot - e.g. -  http://domainname.com/seo-services.html , where “SEO services” is the keyword phrase you attempt to rank well for. But if you don't have the keywords in other parts of the document, don't rely on having them in the URL. +3 3 Keyword density in document text Another very important factor you need to  check . 3-7 % for major keywords is best, 1-2 for minor. Keyword density of over 10% is suspicious and looks more like keyword stuffing, than a naturally written text. +3 4 Keywords in anchor text Also very important, especially for  the anchor text of inbound links , because if you have the...

(Solved) Failure sending mail in Godaddy Server

(Solved) Failure sending mail in Godaddy Server I know that this is an old thread.  At the same time, I worked on this problem for two weeks.  I wish that I had the final answer a couple of weeks ago! If you have shared hosting at GoDaddy.com, you need to use these credentials WHILE your are developing your application: In the namespaces you have to add using System.Net.Mail; or if you are not using any .cs file the you can insert namespace as <% @ Import Namespace ="System.Net.Mail" %> //for mail(from,to,subject,message) MailMessage msg = new MailMessage("frommailid@yourdomain.com", " tomailid@yourdomain.com ", "hello" , "your message"); SmtpClient smtp = new SmtpClient (); smtp . Host = "smtpout.secureserver.net" ; // Only works locally (development time) smtp . EnableSsl = false ; smtp . UseDefaultCredentials = false ; smtp . Credentials = new System . Net . NetworkCredential ( "...