get filled html

Answered
0
0

Hi,

I have this situation. With CKEditor I create an html form. Next I load the html in a HtmlPanel.

This form has “text” type that the user can fill.

How I can get all the fields that the user compile or get all the html ?

thank you

Cristian Zerbinati

  • You must to post comments
Best Answer
0
0

Hi Cristian,

I’m attaching a sample you can use to get the behavior you want!

Basically you’ll want to:

  1. Create a JS function to get the values in the HtmlPanel’s InitScript.
  • Since Wisej uses Qooxdoo, you can call “this.getContentElement().getDomElement()” to retrieve the actual DOM element.
  • “this” is the Wisej control’s JS wrapper, “this.getContentElement()” is the QX wrapper that handles DOM synchronization.

2. Call it (asynchronously) from your C# / VB Code.

3. Handle the result.

 

Let me know if you have any questions or issues with the sample!

Best regards,

Levie

  • You must to post comments
0
0

Hi Luca,

perfect! Thank you!

bye

Cristian Zerbinati

  • You must to post comments
0
0

Hi Luca,

have you a javascript example, please?

best

Cristian

  • You must to post comments
0
0

Hi Cristian,

You can get all of the HTML in the CKEditor by checking the “Text” property.

Something like

this.htmlPanel1.Html = this.ckEditor1.Text;

Takes all of the HTML from your editor and loads it into the panel.

 

If you’re trying to filter the HTML you’ll need to use JavaScript or some kind of RegEx expression.

 

If this isn’t what you’re after can you please attach a small sample or explain?

 

Best,

Levie

 

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.