Fórum

ckeditor <liferay-ui:input-editor/>

Giorgio Gosti, modificado 7 Anos atrás.

ckeditor <liferay-ui:input-editor/>

New Member Postagens: 13 Data de Entrada: 18/01/16 Postagens Recentes
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 7 Anos atrás.

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

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
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 7 Anos atrás.

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

New Member Postagens: 13 Data de Entrada: 18/01/16 Postagens Recentes
I change the input value through an Ajax call (I omitted it); that's not the point
Thanks