to change a headline to a textblock i want to use this.getSelectedHTML() to remove encapsulating headline tags and replace them with p tags. However for me that function only returns the content of the headline tags but not the headline tags content.
I am testing on both firefox (3.6.15) and safari (5.0.3) with the latest jHtmlArea version (0.7.0).
I have this in my button function definition and it alerts only the text, noit the surrounding headline tags of the selection:
var replace_string = this.getSelectedHTML();
alert('replace string = "' + replace_string + '"');
Anyone a solution for this problem or at least had the same problem?