Re: Problem : Mchat Smilies .....
Posted: 12 May 2010, 12:26
You can try using a textarea like I do on this board.
Do the following:
1. undo the mchat edits
2. Open subsilver mchat_body.html
Find:
add after:
Find:
Replace with:
Refresh template.
Now you can change lines in the mchat. Just hit shift + enter for a new line.
[edit]Now I see you got it working, then disregard above post [/edit]
Do the following:
1. undo the mchat edits
2. Open subsilver mchat_body.html
Find:
Code: Select all
var mChatFocusFix = true;
Code: Select all
function foo(e) {
if (!e.shiftKey && e.keyCode==13) {
mChat.add();
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
e.returnValue = false;
}
}
Code: Select all
<input type="text" tabindex="1" name="message" class="mChatText" id="mChatMessage" />
Code: Select all
<textarea tabindex="1" onkeydown="foo(event)" name="message" id="mChatMessage" class="mChatText"></textarea><br />
Now you can change lines in the mchat. Just hit shift + enter for a new line.
[edit]Now I see you got it working, then disregard above post [/edit]