Hi
I have a DotNetNuke custom module where I am using an HTML editor. I have a input type checkbox and when i check\uncheck that checkbox, a jQuery method is called. I want the content of html editor in that method. How can i do that..?
i want to copy txtNotes' html content to txtCustomeMessage.
Web.config settings
Can anyone help me please...?
Thanks
Kamini
I have a DotNetNuke custom module where I am using an HTML editor. I have a input type checkbox and when i check\uncheck that checkbox, a jQuery method is called. I want the content of html editor in that method. How can i do that..?
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>
<
div
id
=
"divCopyContent"
>
<
div
id
=
"divTab"
>
<
dnn:TextEditor
ID
=
"txtNotes"
runat
=
"server"
Width
=
"700px"
/>
</
div
>
<
div
class
=
"copynote"
>
<
input
class
=
"chkCopyNote"
type
=
"checkbox"
runat
=
"server"
id
=
"chkCopyNote"
/>
<
asp:TextBox
CssClass
=
"customMessage"
runat
=
"server"
ID
=
"txtCustomMessage"
TextMode
=
"MultiLine"
Height
=
"100px"
style
=
"resize: none"
></
asp:TextBox
>
</
div
>
</
div
>
<
script
type
=
"text/javascript"
>
jQuery(".copynote a").click(function () {
var className = jQuery(this).attr('class');
if (className.indexOf('true') != -1) {
jQuery('#%=divCopyContent.ClientID%>').find(".customMessage").val(jQuery('#%=txtNotes.ClientID%>').val())
}
else {
jQuery('#<%=divCopyContent.ClientID%>').find(".customMessage").val("");
}
});
</
script
>
i want to copy txtNotes' html content to txtCustomeMessage.
Web.config settings
<
dotnetnuke
>
<
htmlEditor
defaultProvider
=
"RadEditorProvider"
>
<
providers
>
<
clear
/>
<
add
name
=
"RadEditorProvider"
type
=
"Telerik.DNN.Providers.RadEditorProvider, Telerik.DNN.Providers.RadEditorProvider"
providerPath
=
"~\Providers\RadEditorProvider"
AutoCreatePaths
=
"true"
ImagesPaths
=
"Images,*PortalRoot*"
/>
</
providers
>
</
htmlEditor
>
</
dotnetnuke
>
Can anyone help me please...?
Thanks
Kamini