Blame view

mobile/source/tmpl/default/js/editor/simple_tinymce.js 898 Bytes
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  
  
  
  
  simpleTinyMCE = {}
  
  simpleTinyMCE.create = function( elements ){
    ed =  new tinymce.Editor(elements, {
  	
  	    mode : "exact",
  	   
  	    theme : "advanced",
  	
  	    content_css : "/source/ext/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/content.css",
  	    theme_advanced_buttons1 : "mymenubutton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink",
  	    theme_advanced_buttons2 : "",
  	    theme_advanced_buttons3 : "",
  	    theme_advanced_toolbar_location : "top",
  	    theme_advanced_toolbar_align : "left",
  	    theme_advanced_statusbar_location : ""
      });
      ed.render();
      return ed;
  } //  end create
  
  simpleTinyMCE.remove = function(  ){
   
  }
  
  simpleTinyMCE.getText = function(  ){
   alert('simpleTinyMCE')
  }
  
    //  регистрируем
  HL.editor.register('simpleTinyMCE',simpleTinyMCE);