提交 bca46718 编写于 作者: G gongfuxiang

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

上级 6034f725
......@@ -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);
......
......@@ -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');
}
}
});
}
......
......@@ -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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册