2 * AUTOMATICALLY GENERATED TEMPLATE
3 * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
7 <script language="javascript" type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
8 <script language="javascript" type="text/javascript">
10 var plaintext = '{{$editselect}}';
12 if(plaintext != 'none') {
15 mode : "specific_textareas",
16 editor_selector: /(profile-jot-text|prvmail-text)/,
17 plugins : "bbcode,paste",
18 theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
19 theme_advanced_buttons2 : "",
20 theme_advanced_buttons3 : "",
21 theme_advanced_toolbar_location : "top",
22 theme_advanced_toolbar_align : "center",
23 theme_advanced_blockformats : "blockquote,code",
24 gecko_spellcheck : true,
25 paste_text_sticky : true,
26 entity_encoding : "raw",
27 add_unload_trigger : false,
28 remove_linebreaks : false,
29 //force_p_newlines : false,
30 //force_br_newlines : true,
31 forced_root_block : 'div',
33 content_css: "{{$baseurl}}/view/custom_tinymce.css",
35 theme_advanced_path : false,
36 setup : function(ed) {
37 ed.onInit.add(function(ed) {
38 ed.pasteAsPlainText = true;
39 var editorId = ed.editorId;
40 var textarea = $('#'+editorId);
41 if (typeof(textarea.attr('tabindex')) != "undefined") {
42 $('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
43 textarea.attr('tabindex', null);
50 $("#prvmail-text").contact_autocomplete(baseurl+"/acl");
54 <script type="text/javascript" src="js/ajaxupload.js" ></script>
56 $(document).ready(function() {
57 var uploader = new window.AjaxUpload(
59 { action: 'wall_upload/{{$nickname}}',
61 onSubmit: function(file,ext) { $('#profile-rotator').show(); },
62 onComplete: function(file,response) {
63 tinyMCE.execCommand('mceInsertRawHTML',false,response);
64 $('#profile-rotator').hide();
71 function jotGetLink() {
72 reply = prompt("{{$linkurl}}");
73 if(reply && reply.length) {
74 $('#profile-rotator').show();
75 $.get('parse_url?url=' + reply, function(data) {
76 tinyMCE.execCommand('mceInsertRawHTML',false,data);
77 $('#profile-rotator').hide();
82 function linkdropper(event) {
83 var linkFound = event.dataTransfer.types.contains("text/uri-list");
85 event.preventDefault();
88 function linkdrop(event) {
89 var reply = event.dataTransfer.getData("text/uri-list");
90 event.target.textContent = reply;
91 event.preventDefault();
92 if(reply && reply.length) {
93 $('#profile-rotator').show();
94 $.get('parse_url?url=' + reply, function(data) {
95 tinyMCE.execCommand('mceInsertRawHTML',false,data);
96 $('#profile-rotator').hide();