Obrazek dodało jak należy niestety jak naciskam na niego nie pokazują się tagi... wiem że musi to być w tym "ips_text_editor.js" lecz niestety po wgraniu i akutalizacji cachu nie działa. Nie mam nieskompresowanej wersji tego pliku, więc musiałem edytować tą którą podałeś w pierwszej ścieżce. Pomoże ktoś?
Ten kawałek pliku wygląda u mnie następująco:
CODE-BOX
// Did they highlight an html image in the RTE?
// If so, it will pull the whole <img ...> tag instead of just the url
if( this.is_rte )
{
if( _text.match( /<img(.+?)src=['"](.+?)["'](.*?)>/g ) )
{
_text = _text.replace( /<img(.+?)src=['"](.+?)["'](.*?)>/g, '$2' );
}
}
var _url = prompt( ipb_global_lang['editor_enter_image'], _text ? _text : "http://" );
if ( ! _url || _url == null || _url == 'http://' )
{
return false;
}
if ( ! this.is_rte )
{
this.wrap_tags( 'img', false, _url );
}
else
{
this.wrap_tags( 'img', _url, '' );
}
};
/**
* STD:
* IPB Quote override
*/
this.ipb_quote = function()
{
this.wrap_tags_lite( '
', 0) };
/**
* STD:
* IPB code override
*/
this.ipb_code = function()
{
this.wrap_tags_lite( '
', '
', 0)
};
/**
* STD:
* IPB youtube override
*/
this.ipb_ytube = function()
{
this.wrap_tags_lite( '[yt]', '[/yt]', 0)
};
this.init();
}
BBCode dodałem zanim to zacząłem robić.