<%@ Register Src="~/controls/texteditor.ascx" TagPrefix="uc1" TagName="texteditor" %>
So, i try using jquery get value of texteditor. But it's not working with me.
var contentx = document.getElementById('<%=teContent.ClientID %>').value;
When i change content on texteditor, but client can not change follow that
Posted By Sebastian Leupold on 15 May 2021 10:59 AM Please be aware, CkEeditor is using an iFrame for the content area. I suggest checking the documentation at https://ckeditor.com/
Tks my buddy!
If i onlye use CKeditor, i can use this code for get data and check onchange on textare, it 's ok
var editor = CKEDITOR.replace('<%=teContent.ClientID %>'); editor.on('change', function (evt) { elEditor = editor.getData(); formModified = true; })
but if i want use dnn:texteidtor then i can not get data value of editor, and i can check onchange this editor
Tks my Buddy! But I have some problem with my UserController TextEdit I'm using userController
<uc1:texteditor runat="server" ID="teContent" ChooseMode="false" />
So now, I want get realtime with value of . <strong>tenContent </strong> I had try with some option with jquery but not working
var editor = CKEDITOR.instances.<%=teContent.ClientID%>_teContent; //CKEDITOR.instances.<%=teContent.ClientID%>_teContent; var tencontentz = $('#cke_dnn_ctr8326_newsedit_teContent_teContent div div div iframe #document html body').val(); console.log(tencontentz);
How can i get value of UserController TexEditor
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.