• 欢迎访问金刀客博客!
  • 2019,春节快乐!

修复pjblog无法显示和编辑超长字符串的问题

原创天空 admin 7110次浏览 已收录 0个评论

很有几次在写日志的时候,copy过来一些比较长的字串,在下次编辑的时候把页面撑的面目全非,相当的不方便,同时也无法完全显示长字串。

字串过长,撑坏了编辑页面,连保存“保存日志”按钮也要发一番工作,第一次还不知道去哪里了。

这个超长字符串的后面很大部分无法显示出来。

修复后
一,首先解决编辑超长字符串的问题
1,打开common/UBBconfig.asp.
查找

Dim UBB_TextArea_Height, UBB_Tools_Items, UBB_Tools_Fonts, UBB_Tools_Size, UBB_Tools_Color, UBB_Msg_Value, UBB_AutoHidden

替换为

Dim UBB_TextArea_Height, UBB_TextArea_Width,UBB_Tools_Items, UBB_Tools_Fonts, UBB_Tools_Size, UBB_Tools_Color, UBB_Msg_Value, UBB_AutoHidden

查找

UBB_TextArea_Height = “”

替换为

UBB_TextArea_Height = “”
UBB_TextArea_Width = “”

查找

If UBB_TextArea_Height<>“” Then
TempStyle = TempStyle&”height:”&UBB_TextArea_Height&”;”
End IF

替换为

If UBB_TextArea_Height<>“” Then
TempStyle = TempStyle&”height:”&UBB_TextArea_Height&”;”
End IF
If UBB_TextArea_Width<>“” Then
TempStyle = TempStyle&”width:”&UBB_TextArea_Width&”;”
End IF

2,打开blogedit.asp
查找

oFCKeditor.Height = “350”

替换为

oFCKeditor.Height = “350”
oFCKeditor.Width = “620px”

查找

UBB_TextArea_Height = “200px;”

替换为

UBB_TextArea_Height = “350px;”
UBB_TextArea_Width= “620px;”

查找

替换为

二,无法显示超长字符串问题
打开您的skins目录下相应皮肤文件夹中的layout.css文件,比如skins/default2/layout.css
查找

.Content-body{overflow:hidden;text-align:left;line-height:150%;margin-top:5px;}

替换为

.Content-body{overflow:hidden;text-align:left;line-height:150%;margin-top:5px;word-break:break-all;}


金刀客博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明修复pjblog无法显示和编辑超长字符串的问题
喜欢 (5)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到