javascript - How to transfer html between two liferay input editors? -
i have 2 liferay input editors in form. on button click need transfer html first input editor second.
i have tried javascript , names attribute cant work.
how proper way of doing this?
<liferay-ui:input-editor name="firsteditor"/> <liferay-ui:input-editor name="secondeditor"/> <button onclick="moveinfo()"></button> <script> function <portlet:namespace />initeditor() { return ''; } function moveinfo(){ //code missing } </script>
correct answer be:
var value = ckeditor.instances.<portlet:namespace />firsteditor.getdata(); ckeditor.instances.<portlet:namespace />secondeditor.setdata(value);
Comments
Post a Comment