You need to sign in to do that
Don't have an account?
Howard Weinstein
how did disableNativeSpellChecker : true, get into my Visualforce page
I am trying to figure out how this line got in my visualforce code. The issue is it is disabling the native spellchecker in my browser which I need it to work. I can't find it in any of my pages or my static resources so I am unclear on how it is getting into my VFpage. I can only see it when I view the page source in my browser
At the start of my pages I am adding these items in not sure if this is what is causing it
<apex:stylesheet value="{!$Resource.jqueryUI}" />
<apex:stylesheet value="{!$Resource.Reset}" />
<apex:stylesheet value="{!$Resource.Rms}" />
<apex:includeScript value="{!$Resource.jquery}"/>
<apex:includeScript value="{!$Resource.Common}"/>
<apex:includeScript value="{!$Resource.jquerymigrate}"/>
<apex:includeScript value="{!$Resource.jquerymin}"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"/>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
var editor = CKEDITOR.replace('j_id0:j_id1:j_id46', { removePlugins : 'elementspath,maximize,image,tabletools,liststyle,contextmenu,resize', baseHref : protocolAndHost + '/EMReview/ckeditor/ckeditor-4.x/rel/', customConfig : '/EMReview/ckeditor/ckeditor-4.x/rel/sfdc-config.js', height : '200', bodyId : 'j_id0:j_id1:j_id46_rta_body', toolbar : 'Visualforce', sfdcLabels :{CkeMediaEmbed : { iframeMissing : 'Invalid <iframe> element. Please use valid code from the approved sites.', subtitle : 'Paste &lt;iframe&gt; code here:', description : 'Use <iframe> code from DailyMotion, Vimeo, and Youtube.', title : 'Embed Multimedia Content', exampleTitle : 'Example:', example : '\n \n <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/KcOm0TNvKBA\" frameborder=\"0\" allowfullscreen></iframe>\n \n '}, CkeImagePaste : { CkeImagePasteWarning : 'Pasting an image is not working properly with Firefox, please use [Copy Image location] instead.'}, CkeImageDialog : { infoTab_desc_info : 'Enter a description of the image for visually impaired users', uploadTab_desc : 'Description', defaultImageDescription : 'User-added image', uploadTab_file_info : 'Maximum size 1 MB. Only png, gif or jpeg', uploadTab_desc_info : 'Enter a description of the image for visually impaired users', imageUploadLimit_info : 'Max number of upload images exceeded', btn_insert_tooltip : 'Insert Image', httpUrlWarning : 'Are you sure you want to use an HTTP URL? Using HTTP image URLs may result in security warnings about insecure content. To avoid these warnings, use HTTPS image URLs instead.', title : 'Insert Image', error : 'Error:', uploadTab : 'Upload Image', wrongFileTypeError : 'You can insert only .gif .jpeg and .png files.', infoTab_url : 'URL', infoTab : 'Web Address', infoTab_url_info : 'Example: http://www.mysite.com/myimage.jpg', missingUrlError : 'You must enter a URL', uploadTab_file : 'Select Image', btn_update_tooltip : 'Update Image', infoTab_desc : 'Description', btn_insert : 'Insert', btn_update : 'Update', btn_upadte : 'Update', invalidUrlError : 'You can only use http:, https:, data:, //, /, or relative URL schemes.'}, sfdcSwitchToText : { sfdcSwitchToTextAlt : 'Use plain text'}}, contentsCss: ['/ckeditor/ckeditor-4.x/rel/contents.css', '/EMReview/sCSS/35.0/sprites/1444933246000/Theme3/default/base/CKEditor.css'], disableNativeSpellChecker : true,
At the start of my pages I am adding these items in not sure if this is what is causing it
<apex:stylesheet value="{!$Resource.jqueryUI}" />
<apex:stylesheet value="{!$Resource.Reset}" />
<apex:stylesheet value="{!$Resource.Rms}" />
<apex:includeScript value="{!$Resource.jquery}"/>
<apex:includeScript value="{!$Resource.Common}"/>
<apex:includeScript value="{!$Resource.jquerymigrate}"/>
<apex:includeScript value="{!$Resource.jquerymin}"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"/>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
var editor = CKEDITOR.replace('j_id0:j_id1:j_id46', { removePlugins : 'elementspath,maximize,image,tabletools,liststyle,contextmenu,resize', baseHref : protocolAndHost + '/EMReview/ckeditor/ckeditor-4.x/rel/', customConfig : '/EMReview/ckeditor/ckeditor-4.x/rel/sfdc-config.js', height : '200', bodyId : 'j_id0:j_id1:j_id46_rta_body', toolbar : 'Visualforce', sfdcLabels :{CkeMediaEmbed : { iframeMissing : 'Invalid <iframe> element. Please use valid code from the approved sites.', subtitle : 'Paste &lt;iframe&gt; code here:', description : 'Use <iframe> code from DailyMotion, Vimeo, and Youtube.', title : 'Embed Multimedia Content', exampleTitle : 'Example:', example : '\n \n <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/KcOm0TNvKBA\" frameborder=\"0\" allowfullscreen></iframe>\n \n '}, CkeImagePaste : { CkeImagePasteWarning : 'Pasting an image is not working properly with Firefox, please use [Copy Image location] instead.'}, CkeImageDialog : { infoTab_desc_info : 'Enter a description of the image for visually impaired users', uploadTab_desc : 'Description', defaultImageDescription : 'User-added image', uploadTab_file_info : 'Maximum size 1 MB. Only png, gif or jpeg', uploadTab_desc_info : 'Enter a description of the image for visually impaired users', imageUploadLimit_info : 'Max number of upload images exceeded', btn_insert_tooltip : 'Insert Image', httpUrlWarning : 'Are you sure you want to use an HTTP URL? Using HTTP image URLs may result in security warnings about insecure content. To avoid these warnings, use HTTPS image URLs instead.', title : 'Insert Image', error : 'Error:', uploadTab : 'Upload Image', wrongFileTypeError : 'You can insert only .gif .jpeg and .png files.', infoTab_url : 'URL', infoTab : 'Web Address', infoTab_url_info : 'Example: http://www.mysite.com/myimage.jpg', missingUrlError : 'You must enter a URL', uploadTab_file : 'Select Image', btn_update_tooltip : 'Update Image', infoTab_desc : 'Description', btn_insert : 'Insert', btn_update : 'Update', btn_upadte : 'Update', invalidUrlError : 'You can only use http:, https:, data:, //, /, or relative URL schemes.'}, sfdcSwitchToText : { sfdcSwitchToTextAlt : 'Use plain text'}}, contentsCss: ['/ckeditor/ckeditor-4.x/rel/contents.css', '/EMReview/sCSS/35.0/sprites/1444933246000/Theme3/default/base/CKEditor.css'], disableNativeSpellChecker : true,
Salesforce brings in several libraries to help with various aspects, such as date time pickers for date time fields, jquery for javascript functionality, etc.
It's likely you're seeing an artifiact of that. CKEditor itself is a rich text javasript library. Are you using any rich text fields in your Visualforce page, or perhaps brining in the CKEditor with one of your static resources and not realizing it?
There's likely a way to work around it with some javascript magic, but it depends on how your spellchecker library is instanciated, etc.
Thank You
Howard