2 <script language="javascript" type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
3 <script language="javascript" type="text/javascript">
5 var plaintext = '$editselect';
7 if(plaintext != 'none') {
10 mode : "specific_textareas",
11 editor_selector: /(profile-jot-text|prvmail-text)/,
12 plugins : "bbcode,paste",
13 theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
14 theme_advanced_buttons2 : "",
15 theme_advanced_buttons3 : "",
16 theme_advanced_toolbar_location : "top",
17 theme_advanced_toolbar_align : "center",
18 theme_advanced_blockformats : "blockquote,code",
19 paste_text_sticky : true,
20 entity_encoding : "raw",
21 add_unload_trigger : false,
22 remove_linebreaks : false,
23 force_p_newlines : false,
24 force_br_newlines : true,
25 forced_root_block : '',
27 content_css: "$baseurl/view/custom_tinymce.css",
29 theme_advanced_path : false,
30 setup : function(ed) {
31 ed.onInit.add(function(ed) {
32 ed.pasteAsPlainText = true;
39 <script type="text/javascript" src="js/ajaxupload.js" ></script>
41 $(document).ready(function() {
42 var uploader = new window.AjaxUpload(
44 { action: 'wall_upload/$nickname',
46 onSubmit: function(file,ext) { $('#profile-rotator').show(); },
47 onComplete: function(file,response) {
48 tinyMCE.execCommand('mceInsertRawHTML',false,response);
49 $('#profile-rotator').hide();
56 function jotGetLink() {
57 reply = prompt("$linkurl");
58 if(reply && reply.length) {
59 $('#profile-rotator').show();
60 $.get('parse_url?url=' + reply, function(data) {
61 tinyMCE.execCommand('mceInsertRawHTML',false,data);
62 $('#profile-rotator').hide();
67 function linkdropper(event) {
68 var linkFound = event.dataTransfer.types.contains("text/uri-list");
70 event.preventDefault();
73 function linkdrop(event) {
74 var reply = event.dataTransfer.getData("text/uri-list");
75 event.target.textContent = reply;
76 event.preventDefault();
77 if(reply && reply.length) {
78 $('#profile-rotator').show();
79 $.get('parse_url?url=' + reply, function(data) {
80 tinyMCE.execCommand('mceInsertRawHTML',false,data);
81 $('#profile-rotator').hide();