Changeset 6739
- Timestamp:
- 04/20/11 20:57:47 (2 years ago)
- Location:
- CKEditor.NET/trunk
- Files:
-
- 3 edited
-
CHANGES.html (modified) (1 diff)
-
CKEditor.NET/CKEditorControl.cs (modified) (1 diff)
-
_dev/msajax.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor.NET/trunk/CHANGES.html
r6738 r6739 79 79 <li><a href="http://dev.ckeditor.com/ticket/7558">#7558</a> : Custom toolbar does not work.</li> 80 80 <li><a href="http://dev.ckeditor.com/ticket/7660">#7660</a> : Problem with toggling the visible status.</li> 81 <li><a href="http://dev.ckeditor.com/ticket/7659">#7659</a> : Plain textarea is shown when toggling CKEditor.</li> 81 82 <li><a href="http://dev.ckeditor.com/ticket/7302">#7302</a> : It is impossible to customize the editor inside a master page and if attributes are placed in front of the control ID.</li> 82 83 <li><a href="http://dev.ckeditor.com/ticket/7590">#7590</a> : Error in Visual Studio when trying to reset values in the Properties window.</li> -
CKEditor.NET/trunk/CKEditor.NET/CKEditorControl.cs
r6738 r6739 1026 1026 // http://msdn.microsoft.com/en-us/library/bb386417.aspx 1027 1027 // Check _dev/msajax.js for an uncompressed version (available in CKEditor.Net downloaded from SVN). 1028 scriptInit += @"var CKEditor_Controls=[],CKEditor_Init=[];function CKEditor_TextBoxEncode(d,e){if(typeof CKEDITOR=='undefined'||typeof CKEDITOR.instances[d]=='undefined'){var f=document.getElementById(d); if(f) f.value=f.value.replace(/</g,'<').replace(/>/g,'>');}else{var g=CKEDITOR.instances[d];if(e)g.destroy();else g.updateElement();}};(function(){var d=function(){var e=CKEditor_Controls,f=CKEditor_Init,g=window.pageLoad,h=function(){for(var i=e.length;i--;){var j=document.getElementById(e[i]);if(j&&j.value&&(j.value.indexOf('<')==-1||j.value.indexOf('>')==-1))j.value=j.value.replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&');}if(typeof CKEDITOR!='undefined')for(var i=0;i<f.length;i++)f[i].call(this);};window.pageLoad=function(i,j){if(j.get_isPartialLoad())setTimeout(h,0);if(g&&typeof g=='function')g.call(this,i,j);};setTimeout(h,0);};if(window.addEventListener)window.addEventListener('load',d,false);else if(window.attachEvent)window.attachEvent('onload',d);})(); 1029 "; 1028 scriptInit += @"var CKEditor_Controls=[],CKEditor_Init=[];function CKEditor_TextBoxEncode(d,e){var f;if(typeof CKEDITOR=='undefined'||typeof CKEDITOR.instances[d]=='undefined'){f=document.getElementById(d);if(f)f.value=f.value.replace(/</g,'<').replace(/>/g,'>');}else{var g=CKEDITOR.instances[d];if(e){g.destroy();f=document.getElementById(d);if(f)f.style.visibility='hidden';}else g.updateElement();}};(function(){if(typeof CKEDITOR!='undefined'){var d=document.getElementById('" + this.ClientID + @"');if(d)d.style.visibility='hidden';}var e=function(){var f=CKEditor_Controls,g=CKEditor_Init,h=window.pageLoad,i=function(){for(var j=f.length;j--;){var k=document.getElementById(f[j]);if(k&&k.value&&(k.value.indexOf('<')==-1||k.value.indexOf('>')==-1))k.value=k.value.replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&');}if(typeof CKEDITOR!='undefined')for(var j=0;j<g.length;j++)g[j].call(this);};window.pageLoad=function(j,k){if(k.get_isPartialLoad())setTimeout(i,0);if(h&&typeof h=='function')h.call(this,j,k);};setTimeout(i,0);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();"; 1030 1029 this.RegisterStartupScript(this.GetType(), "CKEditorForNet", scriptInit, true); 1031 1030 this.RegisterStartupScript(this.GetType(), this.ClientID + @"_addControl", string.Format(@"CKEditor_Controls.push('{0}'); -
CKEditor.NET/trunk/_dev/msajax.js
r6689 r6739 9 9 10 10 function CKEditor_TextBoxEncode(cID, inUpdatePanel) { 11 var control; 11 12 if (typeof CKEDITOR == 'undefined' || typeof CKEDITOR.instances[cID] == 'undefined') { 12 varcontrol = document.getElementById(cID);13 control = document.getElementById(cID); 13 14 if (control) 14 15 control.value = control.value.replace(/</g, '<').replace(/>/g, '>'); … … 16 17 else { 17 18 var e = CKEDITOR.instances[cID]; 18 if (inUpdatePanel) 19 if (inUpdatePanel) { 19 20 e.destroy(); 21 control = document.getElementById(cID); 22 if (control) 23 control.style.visibility = 'hidden'; 24 } 20 25 else 21 26 e.updateElement(); … … 25 30 (function() 26 31 { 32 if (typeof CKEDITOR != 'undefined') 33 { 34 var control = document.getElementById('{0}'); 35 if (control) 36 control.style.visibility = 'hidden'; 37 } 38 27 39 var onload = function() 28 40 {
Note: See TracChangeset
for help on using the changeset viewer.
