Weceem

CKEditor is converting mixed case tag names to lowercase

Details

  • Type: Improvement Improvement
  • Status: Committed Committed
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None
  • Request Controller:
    Please Select
  • External Supervisor:
    Please select
  • Executing Programmer:
    Please select

Activity

Hide
Marc Palmer added a comment - 23/Aug/10 1:37 PM

A user submitted the following suggestion:

Since I'm using CKeditor plugin for Grais and I don't want, for example, <g:uploadForm> transforming to <g:uploadform> or other GSP tags what I've done was add two lines on ckeditorconfig.js (config file loaded by the plugin):

config.protectedSource.push( /<g:[.\s\S]*>[.\s\S]*<\/g:[.\s\S]*>/gi );	 // Grails Tags 
config.protectedSource.push( /<wcm:[.\s\S]*>[.\s\S]*<\/wcm:[.\s\S]*>/gi );	 // Weceem Tags 
config.protectedSource.push( /<g:[.\s\S]*\/>/gi );	 // Grails Tags (Self-closing) 
config.protectedSource.push( /<wcm:[.\s\S]*\/>/gi );	 // Weceem Tags (Self-closing)

CKEditor documentation about protectedSource: http://docs.cksource.com/ckeditor_api/symbols/CKED...R.config.html#.protectedSource

Show
Marc Palmer added a comment - 23/Aug/10 1:37 PM A user submitted the following suggestion:
Since I'm using CKeditor plugin for Grais and I don't want, for example, <g:uploadForm> transforming to <g:uploadform> or other GSP tags what I've done was add two lines on ckeditorconfig.js (config file loaded by the plugin):
config.protectedSource.push( /<g:[.\s\S]*>[.\s\S]*<\/g:[.\s\S]*>/gi );	 // Grails Tags 
config.protectedSource.push( /<wcm:[.\s\S]*>[.\s\S]*<\/wcm:[.\s\S]*>/gi );	 // Weceem Tags 
config.protectedSource.push( /<g:[.\s\S]*\/>/gi );	 // Grails Tags (Self-closing) 
config.protectedSource.push( /<wcm:[.\s\S]*\/>/gi );	 // Weceem Tags (Self-closing)
CKEditor documentation about protectedSource: http://docs.cksource.com/ckeditor_api/symbols/CKED...R.config.html#.protectedSource

People

Vote (0)
Watch (0)

Dates

  • Created:
    15/Jun/10 2:53 PM
    Updated:
    25/Aug/11 5:16 PM