Re : Besoin d'aide pour terminer un bouton editors-xtd
et du coup tu as fini ?
et du coup tu as fini ?
define( '_JEXEC', 1 );
define( 'DS', DIRECTORY_SEPARATOR );
define( 'JPATH_BASE', realpath( '..'.DS.'..'.DS.'..'.DS ) );
require_once ( JPATH_BASE.DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE.DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('administrator');
$mainframe->initialise(
array('language' => $mainframe->getUserState( "application.lang", 'lang' ) )
);
jimport( 'joomla.plugin.plugin' );
JPlugin::loadLanguage( 'plg_editors-xtd_inserthtmlex', JPATH_ADMINISTRATOR );
function insertelioproallvideosbouton(editor)
{
var durl = '../plugins/editors-xtd/elioproallvideosbouton/tag.php;
var wnd = window.open( durl, '_blank', 'status=no,resizable=yes,width=600,height=250,left=200,top=250' );
wnd.focus();
return wnd;
}
function IHEBP_ClickCallback( editor, result )
{
if( result ) {
jInsertEditorText( result, editor );
}
}
var result = ' + blablabla blablabla+ ';
window.opener.IHEBP_ClickCallback( 'nom', result );
window.close();
$dialog = JText::_('PLG_ELIOPROALLVIDEOSBOUTON_BUTTON_ELIOPROALLVIDEOSBOUTON');
Commentaire