EdgarsK Posted March 7, 2010 Report Share Posted March 7, 2010 Sveiki, šobrīd lietoju tinyMce jQuery vidē. $(this).tinymce(tinyMceSettings); var tinyMceSettings = { script_url : '/js/addons/jquery.tiny_mce/tiny_mce.js', theme : "advanced", skin : "o2k7", skin_variant : "black", plugins : "pagebreak,style,advimage,advlink,iespell,inlinepopups,insertdatetime,searchreplace,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,advlist", // Theme options theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,|,undo,redo,|,forecolor,backcolor,|,link,unlink,image", theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,insertdate,inserttime,|,hr,removeformat,|,sub,sup,|,ltr,rtl,|,visualchars,nonbreaking", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "none", theme_advanced_resizing : false, file_browser_callback : "myImageBrowser", content_css : "/css/def.css" }; lietoju funkciju myImageBrowser function myImageBrowser(field_name, url, type, win) { var fileBrowserWindow = new Array(); fileBrowserWindow['title'] = 'Image Browser'; fileBrowserWindow['file'] = '/image_list.php'; fileBrowserWindow['width'] = '420'; fileBrowserWindow['height'] = '400'; fileBrowserWindow['close_previous'] = 'no'; tinyMCE.openWindow(fileBrowserWindow, { // <----------- kļudas paziņojums window : win, input : field_name, resizable : 'yes', inline : 'yes' }); return false; } problēma ir šāda - atverot tinymce lapu kurā ir redaktors, nospiežu uz <add picture> parādās dialogs, ir poga 'file manager', uzspiežu un tinyMCE.openWindow is not a function nesaprotu :/, ko darīt lietas laba? Quote Link to comment Share on other sites More sharing options...
0 briedis Posted March 7, 2010 Report Share Posted March 7, 2010 (edited) Pārbaudīt dokumentācijā, vai tiešām tāda funkcija eksistē.. Moš neesi kādu moduli iekļāvis vai kā? EDIT: būtu iekopējis kļūdas paziņojumu gūglē, būtu atradis pirmajā rezultātā atbildi :) Izmanto: tinymce.WindowManager Edited March 7, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
0 foxsk8 Posted March 7, 2010 Report Share Posted March 7, 2010 File menedžers un advancēts image uploaders ir maksas fīčas. Attiecīgi failiem: http://tinymce.moxiecode.com/plugins_filemanager.php Attiecīgi bildēm: http://tinymce.moxiecode.com/plugins_imagemanager.php Quote Link to comment Share on other sites More sharing options...
Question
EdgarsK
Sveiki,
šobrīd lietoju tinyMce jQuery vidē.
lietoju funkciju myImageBrowser
problēma ir šāda - atverot tinymce lapu kurā ir redaktors, nospiežu uz <add picture> parādās dialogs, ir poga 'file manager', uzspiežu un
nesaprotu :/, ko darīt lietas laba?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.