Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Find & Replace feature
Re: Find & Replace feature
05-16-2011, 2:44 AM
yuenli
Joined on 04-29-2011
Posts 7
Re: Find & Replace feature
Reply
Quote
Hi Ken,
May I know what is code here? is it referring to editor.text (which is the underlying HTML)?
Next, I would like to clarify my question here, I would like to be able to do search & replace like the one found in the cute editor toolbar, the search & replace should work from the normal text while the underlying HTML remains.
Please advice.
<script type=
"text/javascript"
>
function
CuteEditor_FilterHTML(editor,code)
{
return
code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i,
"$2"
);
}
function
CuteEditor_FilterCode(editor,code)
{
return
code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i,
"$2"
);
}
</script>
Regards,
Yuen Li
View Complete Thread