



Warning: opendir(your_document_root/images) [function.opendir]: failed to open dir: No such file or directory in /var/www/web5/sator.eu/litvinov.sator.eu/includes/tiny_mce/plugins/advimage/galery.php on line 122
Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/web5/sator.eu/litvinov.sator.eu/includes/tiny_mce/plugins/advimage/galery.php on line 124
Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/web5/sator.eu/litvinov.sator.eu/includes/tiny_mce/plugins/advimage/galery.php on line 129


*/
global $GDok,$IMGFOLDER,$IMGURL,$AUDIOICON,$VIDEOICON;
$GDok = TRUE;
// ------------ config section --------------------
$IMGFOLDER = 'your_document_root/images';
$IMGURL = 'http://your_site/images';
$VIDEOICON = 'video.jpg';
$AUDIOICON = 'audio.jpg';
// language setting en
$LARGEIMG = 'Large image';
$DELETEIMG = 'Delete image';
$INSERTIMG = 'Insert image into HTML';
$UPLOADIMG = 'Upload';
$HELPSTR = 'Click a image!';







$cfg['ilibs'] = array (
array (
‘value’ => ‘/path/from/webroot/images/’,
‘text’ => ‘Sprekers’,
),
array (
‘value’ => ‘/path/from/webroot/gallery/’,
‘text’ => ‘Sponsors’,
),
);


:: tinyMCE.init({
...
plugins : "ibrowser",
...
theme : "advanced",
theme_advanced_buttons3_add : "ibrowser",
});


/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright 2004-2008, Moxiecode Systems AB, All rights reserved.
*/


ib = null;
(function() {
tinymce.create('tinymce.plugins.IBrowserPlugin', {
init : function(ed, url) {


// load common script
tinymce.ScriptLoader.load(url + '/interface/common.js');

// Register commands
ed.addCommand('mceIBrowser', function() {
var e = ed.selection.getNode();


// Internal image object like a flash placeholder
if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
return;


ib.isMSIE = tinymce.isIE;
ib.isGecko = tinymce.isGecko;
ib.oEditor = ed; 
ib.editor = ed;
ib.selectedElement = e; 
ib.baseURL = url + '/ibrowser.php'; 
iBrowser_open();
});


// Register buttons
ed.addButton('ibrowser', {
title : 'iBrowser',
cmd : 'mceIBrowser',
image: url + '/interface/images/tinyMCE/ibrowser.gif'
});

// Add a node change handler, selects the button in the UI when a image is selected
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('ibrowser', n.nodeName == 'IMG');
});
},


getInfo : function() {
return {
longname : 'iBrowser',
author : 'net4visions.com',
authorurl : 'http://net4visions.com',
infourl : 'http://net4visions.com',
version : '1.3.8'
};
}
});

// Register plugin
tinymce.PluginManager.add('ibrowser', tinymce.plugins.IBrowserPlugin);
//-------------------------------------------------------------------------
// save image to WYSIWYG editor and close window
window.returnValue = args;
if (iBrowser.isGecko) { // Gecko
opener.iBrowser_callback('[object Object]',this);
}
window.close();




})(); 







Obsah fóra BLASSENweb » Tipy a Triky
![]() |
|