tinymce.init({
  selector: '#$name_textarea',
  theme: 'silver',
  branding: false,
  resize: false,
  save_enablewhendirty: true,
  save_oncancelcallback: function () { $name_saveCancelled(); },
  save_onsavecallback: function () { $name_saveSuccessful(); },
  init_instance_callback: function (editor) {
    editor.on('init', function (e) {
      $name_Init(e);
    });
    editor.on('click', function (e) {
      $name_Click(e);
    });
    editor.on('dblClick', function (e) {
      $name_DblClick(e);
    });
    editor.on('mousedown', function (e) {
      $name_MouseDown(e);
    });
	editor.on('mouseup', function (e) {
      $name_MouseUp(e);
    });
    editor.on('mousemove', function (e) {
      $name_MouseMove(e);
    });
    editor.on('mouseover', function (e) {
      $name_MouseOver(e);
    });
    editor.on('mouseout', function (e) {
      $name_MouseOut(e);
    });
    editor.on('mouseEnter', function (e) {
      $name_MouseEnter(e);
    });
    editor.on('mouseleave', function (e) {
      $name_MouseLeave(e);
    });
    editor.on('keydown', function (e) {
      $name_KeyDown(e);
    });
    editor.on('keypress', function (e) {
      $name_KeyPress(e);
    });
    editor.on('keyup', function (e) {
      $name_KeyUp(e);
    });
    editor.on('contextmenu', function (e) {
      $name_ContextMenu(e);
    });
    editor.on('paste', function (e) {
      $name_Paste(e);
    });
    editor.on('focus', function (e) {
      $name_Focus(e);
    });
    editor.on('blur', function (e) {
      $name_Blur(e);
    });
    editor.on('BeforeSetContent', function (e) {
      $name_BeforeSetContent(e);
    });
    editor.on('SetContent', function (e) {
      $name_SetContent(e);
    });
    editor.on('GetContent', function (e) {
      $name_GetContent(e);
    });
    editor.on('PreProcess', function (e) {
      $name_PreProcess(e);
    });
    editor.on('PostProcess', function (e) {
      $name_PostProcess(e);
    });
    editor.on('NodeChange', function (e) {
      $name_NodeChange(e);
    });
    editor.on('Undo', function (e) {
      $name_Undo(e);
    });
    editor.on('Redo', function (e) {
      $name_Redo(e);
    });
    editor.on('Change', function (e) {
      $name_Change(e);
    });
    editor.on('Dirty', function (e) {
      $name_Dirty(e);
    });
    editor.on('Remove', function (e) {
      $name_Remove(e);
    });
    editor.on('ExecCommand', function (e) {
      $name_ExecCommand(e);
    });
    editor.on('PastePreProcess', function (e) {
      $name_PastePreProcess(e);
    });
    editor.on('PastePostProcess', function (e) {
      $name_PastePostProcess(e);
    });
    editor.on('AddEditor', function (e) {
      $name_AddEditor(e);
    });
    editor.on('RemoveEditor', function (e) {
      $name_RemoveEditor(e);
    });
	},
  mobile: {
    theme: 'mobile',
    plugins: [ 'autosave', 'lists', 'autolink', 'style_formats' ],
    toolbar: [ 'undo', 'redo', 'bold', 'italic', 'underline', 'link', 'unlink', 'image', 'bullist', 'numlist', 'fontsizeselect', 'forecolor', 'styleselect', 'removeformat'	]
  }
});

var $name_Text = function() {
  return tinymce.get('$name_textarea').getContent();
}

function $name_saveCancelled() {


}


function $name_saveSuccessful() {


}

function $name_saveSuccessful() {


}

function $name_Click(e) {


}

function $name_DblClick(e) {


}

function $name_MouseDown(e) {


}

function $name_MouseUp(e) {


}

function $name_MouseMove(e) {


}

function $name_MouseOver(e) {


}

function $name_MouseOut(e) {


}


function $name_MouseEnter(e) {


}

function $name_MouseLeave(e) {


}

function $name_KeyDown(e) {


}

function $name_KeyPress(e) {


}

function $name_KeyUp(e) {


}

function $name_ContextMenu(e) {


}

function $name_Paste(e) {


}

function $name_Init(e) {


}

function $name_Focus(e) {


}

function $name_Blur(e) {


}

function $name_BeforeSetContent(e) {


}

function $name_SetContent(e) {


}

function $name_GetContent(e) {


}

function $name_PreProcess(e) {


}

function $name_PostProcess(e) {


}

function $name_NodeChange(e) {


}

function $name_Undo(e) {


}

function $name_Redo(e) {


}

function $name_Change(e) {


}

function $name_Dirty(e) {


}

function $name_Remove(e) {


}

function $name_ExecCommand(e) {


}

function $name_PastePreProcess(e) {


}

function $name_PastePostProcess(e) {


}

function $name_AddEditor(e) {


}

function $name_RemoveEditor(e) {


}