Changeset 631807
- Timestamp:
- 11/29/2012 03:22:09 PM (13 years ago)
- File:
-
- 1 edited
-
wp-postit/trunk/js/code.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-postit/trunk/js/code.php
r629070 r631807 15 15 var $j= jQuery.noConflict(); 16 16 17 <? 18 if ($post) 19 { 20 ?> 17 21 18 $j(document).ready(function() { 22 19 23 tinyMCE.init({ 24 // General options 25 mode : "specific_textareas", 26 editor_selector : "ta_postit", 27 theme : "advanced", 28 theme_advanced_resizing: false, 29 theme_advanced_buttons3_add : "fullscreen,print,preview", 30 theme_advanced_toolbar_location : "top", 31 theme_advanced_toolbar_align : "left", 32 theme_advanced_statusbar_location : "bottom", 33 theme_advanced_resizing : false, 34 theme_advanced_statusbar_location : "none", 35 // Skin options 36 skin : "o2k7", 37 skin_variant : "silver", 38 theme_advanced_path : false, 39 // Example content CSS (should be your site CSS) 40 // content_css : "css/example.css", 41 // Drop lists for link/image/media/template dialogs 42 template_external_list_url : "js/template_list.js", 43 external_link_list_url : "js/link_list.js", 44 external_image_list_url : "js/image_list.js", 45 media_external_list_url : "js/media_list.js" 20 21 46 22 }); 47 });48 <?49 }50 ?>51 23 24 52 25 function setMode(mode) 53 26 { … … 72 45 w = $j("#note"+id).parent("div").css("width"); 73 46 } 74 47 75 48 $j("#note"+id).slideToggle(500); 76 49 50 77 51 78 52 //ADJUST PARENT … … 102 76 $j("#message_"+postid).html("sending..."); 103 77 $j("#message_"+postid).css("display","inline-block"); 104 ta = tinyMCE.get('ta_postit_'+postid).getContent(); 78 ta = $j('textarea#ta_postit_'+postid).val(); 79 if (typeof tinyMCE != 'undefined') 80 { 81 if (tinyMCE.get('ta_postit_'+postid).isHidden()!=true) 82 { 83 ta = tinyMCE.get('ta_postit_'+postid).getContent(); 84 } 85 } 105 86 $j.ajax({ 106 87 type: "POST",
Note: See TracChangeset
for help on using the changeset viewer.