Super Jinni
03-22-2009, 08:57 AM
Hi,
I need to disable textarea when starting a new thread and set a condition to enable it.
I've added disabled="disabled" to the next code in editor_toolbar_on template.
so the original code which is:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>became like this:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$newpost[message]</textarea>but that does not seem to be working at all. and the textarea still not disabled.
when I remove id="{$editorid}_textarea" form the code above the textarea gets disabled but the problem is that editor tools get disabled too.
is there anyway so that i can disable the textarea without disabling editor tools?
or is there anyway to change the id value of newthread textarea?
thanks
I need to disable textarea when starting a new thread and set a condition to enable it.
I've added disabled="disabled" to the next code in editor_toolbar_on template.
so the original code which is:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>became like this:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$newpost[message]</textarea>but that does not seem to be working at all. and the textarea still not disabled.
when I remove id="{$editorid}_textarea" form the code above the textarea gets disabled but the problem is that editor tools get disabled too.
is there anyway so that i can disable the textarea without disabling editor tools?
or is there anyway to change the id value of newthread textarea?
thanks