mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 17:50:12 +02:00
Default image resize pref is now used correctly by TinyMce media-manager. Image captions may now be added to inline images. TinyMce media-manager 'cancel' button is working again.
This commit is contained in:
@@ -113,7 +113,7 @@ if((e107::wysiwyg() === true && check_class($pref['post_html'])) || strpos(e_SEL
|
||||
|
||||
var s = $('#bbcode_holder').val();
|
||||
|
||||
// alert(s);
|
||||
alert(s);
|
||||
|
||||
var p = $.ajax({
|
||||
type: 'POST',
|
||||
@@ -130,7 +130,7 @@ if((e107::wysiwyg() === true && check_class($pref['post_html'])) || strpos(e_SEL
|
||||
}).responseText;
|
||||
|
||||
html = p;
|
||||
// alert(s);
|
||||
// alert(p);
|
||||
|
||||
if(html === undefined)
|
||||
{
|
||||
@@ -145,7 +145,7 @@ if((e107::wysiwyg() === true && check_class($pref['post_html'])) || strpos(e_SEL
|
||||
|
||||
$('.e-dialog-close').click(function(){
|
||||
|
||||
// top.tinymce.activeEditor.windowManager.close();
|
||||
top.tinymce.activeEditor.windowManager.close();
|
||||
});
|
||||
|
||||
|
||||
|
@@ -220,6 +220,7 @@ TEMPL;
|
||||
$style = vartrue($img['style']) ? ' style="'.$img['style'].'"' : '';
|
||||
$class = vartrue($img['class']) ? ' class="'.$img['class'].'"' : '';
|
||||
$alt = vartrue($img['alt']) ? ' alt="'.$img['alt'].'"' : '';
|
||||
$title = vartrue($img['title']) ? ' title="'.$img['title'].'"' : '';
|
||||
|
||||
list($url,$qry) = explode("?",$img['src']);
|
||||
|
||||
@@ -233,7 +234,7 @@ TEMPL;
|
||||
|
||||
$src = $url."?".urldecode(http_build_query($qr));
|
||||
|
||||
$replacement = '<img'.$class.$style.' src="'.$src.'"'.$width.$height.$alt.' />';
|
||||
$replacement = '<img'.$class.$style.' src="'.$src.'"'.$width.$height.$alt.$title.' />';
|
||||
|
||||
$text = preg_replace($regexp, $replacement, $text);
|
||||
|
||||
|
Reference in New Issue
Block a user