how to let eLRTE auto set back the content value to <textarea>
Added by dolphin cn 5 months ago
is there anyway to let eLRTE auto set back the value to document tag <textarea>.
like this, I need get the value of textarea throught "#{bean.textValue}" :
<textarea id="article" value="#{bean.textValue}" />
<script>
var editor=eLRTE(document.getElement.byID('article'),options);
</script>
the <textarea> returned value is null.
Replies (4)
RE: how to let eLRTE auto set back the content value to <textarea>
-
Added by Troex Nevelin 5 months ago
RE: how to let eLRTE auto set back the content value to <textarea>
-
Added by dolphin cn 5 months ago
could it auto Update textarea value before submit the form.
it is not a good way to custom a new fuction to triger $('selector').elrte('updateSource'), or click the save button;
RE: how to let eLRTE auto set back the content value to <textarea>
-
Added by Troex Nevelin 5 months ago
Usually elRTE listens for 'onSubmit' event and updates textarea, but in case if you have your own 'onsubmit' or you are using ajax, it will fail and you need manual get value
RE: how to let eLRTE auto set back the content value to <textarea>
-
Added by dolphin cn 5 months ago
I found it was the JSF problem, in JSF 2.1 ,the form custom onsubmit function is not work.
(1-4/4)