很有几次在写日志的时候,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;}