Jump to content
php.lv forumi
  • 0

tinymce-jquery-image browse


Question

Posted

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?

2 answers to this question

Recommended Posts

  • 0
Posted (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 by briedis
  • 0
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...