Foros de discusión

ckeditor <liferay-ui:input-editor/>

Giorgio Gosti, modificado hace 7 años.

ckeditor <liferay-ui:input-editor/>

New Member Mensajes: 13 Fecha de incorporación: 18/01/16 Mensajes recientes
Hi
I am using Ckeditor:


	<liferay-ui:input-editor />
	<input id="<portlet:namespace />htmlCodeFromEditorPlacedHere" name="<portlet:namespace />htmlCodeFromEditorPlacedHere" type="hidden" value="">	


	function <portlet:namespace />initEditor() {
		var text = $('#<portlet:namespace />htmlCodeFromEditorPlacedHere').val();
        return text;
	}


When I change the value of #<portlet:namespace />htmlCodeFromEditorPlacedHere' via Ajax I call again initEditor() but the value inside the Ckeditor doesn't change.
Do you know how to update ckEditor with a new text after Ajax call?
Thanks a lot
Giorgio
thumbnail
Pankaj Kathiriya, modificado hace 7 años.

RE: ckeditor <liferay-ui:input-editor/>

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
The code you mentioned in your post is what you are trying?
If yes, then as there is no value in hidden input field, it wont make any change.
If no, then please update your post with exact code you are trying.

Thank you.
Giorgio Gosti, modificado hace 7 años.

RE: ckeditor <liferay-ui:input-editor/>

New Member Mensajes: 13 Fecha de incorporación: 18/01/16 Mensajes recientes
I change the input value through an Ajax call (I omitted it); that's not the point
Thanks