Monday, January 6, 2014

How to solve problem: tinymce steal focus in ie?

setup : function(ed) {
  ed.onLoadContent.add(function(ed, o) {
    var controlLoad = setTimeout(function() {
      if ($('.mceIframeContainer').size()==1) {
        $('form *:input[type!=hidden]:first').focus();
    }, 100);

Code and working example link:


How to set default value for Auto-Implemented Properties in C#

Auto-Implemented Properties:
public string Name { get; set; }

Not you can not modify property directly, you could put default in class constructor.