i'll try boss ...... thank you
This is the changes by Mchat on editor.js
------------------------------------------------------------
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
textarea.focus();
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
Replace with
Tip: Replace the preceding line(s) to find with the following lines.
Code: Select all
/* === mChat focus fix Start === */
var mChatFocus = window.mChatFocusFix || false;
if(!mChatFocus)
{
textarea.focus();
}
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
/* ==== mChat focus fix End ==== */
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
try
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
caretPos.end = txtarea.sel_start;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
-----------------------------------------------------------------------------------
and this is the changes by Hot Editor on editor.js
#
#-----[ FIND ]------------------------------------------
#
Code: Select all
function insert_text(text, spaces, popup)
{
var textarea;
if (!popup)
{
textarea = document.forms[form_name].elements[text_name];
}
else
{
textarea = opener.document.forms[form_name].elements[text_name];
}
if (spaces)
{
text = ' ' + text + ' ';
}
if (!isNaN(textarea.selectionStart))
{
var sel_start = textarea.selectionStart;
var sel_end = textarea.selectionEnd;
mozWrap(textarea, text, '')
textarea.selectionStart = sel_start + text.length;
textarea.selectionEnd = sel_end + text.length;
}
else if (textarea.createTextRange && textarea.caretPos)
{
if (baseHeight != textarea.caretPos.boundingHeight)
{
textarea.focus();
storeCaret(textarea);
}
var caret_pos = textarea.caretPos;
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;
}
else
{
textarea.value = textarea.value + text;
}
if (!popup)
{
textarea.focus();
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
Code: Select all
//HotEditor MOD
function insert_text(text, spaces, popup)
{
text = convertSize(text,"1");
if(editor_type=="0"){//BBCode Editor
WriteTEXT(text,"editor");
}
else{//WYSIWYG Editor
text=BBCodeToHTML(text);
WriteHTML(text,"editor");
}
###########################################################################
#
#-----[ FIX ]------------------------------------------
#
WHERE IS THE PROBLEM ????