去除编辑器图片title、首页拖拽模式错误修复

This commit is contained in:
gongfuxiang 2023-08-30 15:54:21 +08:00
parent 6034f725f4
commit bca4671852
3 changed files with 14 additions and 13 deletions

View File

@ -115,8 +115,8 @@ class Index extends Common
$assign['images_magic_cube_view_list_show_style'] = BaseLayout::ConstData('images_magic_cube_view_list_show_style');
// 首页商品排序规则
$assign['goods_order_by_type_list'] = MyLang('goods_order_by_type_list');
$assign['goods_order_by_rule_list'] = MyLang('goods_order_by_rule_list');
$assign['common_goods_order_by_type_list'] = MyConst('common_goods_order_by_type_list');
$assign['common_goods_order_by_rule_list'] = MyConst('common_goods_order_by_rule_list');
// 浏览器名称
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(MyLang('index.design_browser_seo_title'), 1);

View File

@ -2643,14 +2643,17 @@ function ViewQrCodeInit () {
*/
function ViewDocumentTitleInit () {
$('*').each(function (k, v) {
var title = $(this).attr('title') || null;
if (title !== null) {
$(this).popover({
content: title,
trigger: 'hover focus',
theme: 'sm'
});
$(this).removeAttr('title');
if($(this).prop('tagName') != 'IMG')
{
var title = $(this).attr('title') || null;
if (title !== null) {
$(this).popover({
content: title,
trigger: 'hover focus',
theme: 'sm'
});
$(this).removeAttr('title');
}
}
});
}

View File

@ -11174,7 +11174,6 @@ UE.commands['insertimage'] = {
(ci.width ? 'width="' + ci.width + '" ' : '') +
(ci.height ? ' height="' + ci.height + '" ' : '') +
(ci['floatStyle'] == 'left' || ci['floatStyle'] == 'right' ? ' style="float:' + ci['floatStyle'] + ';"' : '') +
(ci.title && ci.title != "" ? ' title="' + ci.title + '"' : '') +
(ci.border && ci.border != "0" ? ' border="' + ci.border + '"' : '') +
(ci.alt && ci.alt != "" ? ' alt="' + ci.alt + '"' : '') +
(ci.hspace && ci.hspace != "0" ? ' hspace = "' + ci.hspace + '"' : '') +
@ -11191,8 +11190,7 @@ UE.commands['insertimage'] = {
(ci.width ? 'width="' + ci.width + '" ' : '') + (ci._src ? ' _src="' + ci._src + '" ' : '') +
(ci.height ? ' height="' + ci.height + '" ' : '') +
' style="' + (ci['floatStyle'] && ci['floatStyle'] != 'center' ? 'float:' + ci['floatStyle'] + ';' : '') +
(ci.border || '') + '" ' +
(ci.title ? ' title="' + ci.title + '"' : '') + ' /></p>';
(ci.border || '') + '" ' + ' /></p>';
html.push(str);
}
}