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

Contact us Forms Links

Hi Friends This is my second post to blogger.com. and this time I am going to share my few useful resource links with you all. This post is regarding to “How to create contact us form to the html page” So please go to the following sites 1) http://wufoo.com/gallery/templates/forms/contact-form/ Thats it
Hello Friends This is an important moment for me! This is the first blog I’ve ever written. It’s something I’ve wanted to do for a long time, but wasn’t sure how to do it, where, when, or even if. And finally, now here I am. People say that blogs are like a diary (do I hide it under my bed, lock it with a key? Tell it all my secrets? It seems like a wonderful place to share my thoughts with you, or what I do.) It’s going to be fun sharing my thoughts with you, outside the context of a book. Ok let me tell you about myself. I am a I.T Engineer and having 2 year experience about the I.T Sector. After Completion of my graduation i worked as a "Web Designer" for 1.3 years then i Switch my profile to software engineer and I am working as a Software engineer from 6 months. so basically my blogs are all bout to the new technologies, interesting and important codes and some useful resources. For more about myself please visit my website: http://www.lokeshchadha.co.cc/ . 1)..Downl...

Three Tier Architecture in asp.net using c#

3-Tier Architecture in asp.net using c# In this asp.net tutorial you will learn how to implement 3-tier architecture in asp.net using c#. 3-Tier architecture is also called layered architecture. Some people called it n-tier architecture. Layer architectures are essentially objects and work in object oriented environment just like asp.net. 3-tier architecture is a very well known architecture in the world of software development, it doesn't matter whether you are developing web based application or desktop based, it is the best architecture to use. 3-Tier Architecture in asp.net using c# 3-Tier architecture consists of 1) UI or Presentation Layer 2) Business Access Layer or Business Logic Layer 3) Data Access Layer Presentation Layer Presentation layer consists of pages like .aspx or desktop based form where data is presented to users or getting input from users. Business Logic layer or Business Access Layer Business logic layer contains all of the business logic. Its r...