brishtiteveja / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

iframe incorrect translation #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I need to post an iframe object into text field
2.Lets take Youtube embed code for example 

What is the expected output? What do you see instead?

I post this
<iframe width="560" height="315" 
src="//www.youtube.com/embed/dOVQwABhqQc?rel=0" frameborder="0" 
allowfullscreen></iframe>

OR even this

<nowiki><iframe width="560" height="315" 
src="//www.youtube.com/embed/dOVQwABhqQc?rel=0" frameborder="0" 
allowfullscreen></iframe></nowiki>

BUT got this 

<p> &#60;iframe width=&#34;560&#34; height=&#34;315&#34; 
src=&#34;//www.youtube.com/embed/dOVQwABhqQc?rel=0&#34; frameborder=&#34;0&#34; 
allowfullscreen&#62;&#60;/iframe&#62;
</p>

I tried to add this to my WikiModel

   static {
      TagNode.addAllowedAttribute("iframe");
   }

How a ican solve this issue or declare an rule for parser to ignore that tag?
What version of the product are you using? On what operating system?
I'm using 3.0.19 lib version on Win7 x64

Thank you.

Original issue reported on code.google.com by egordum...@gmail.com on 22 Jul 2013 at 6:20

GoogleCodeExporter commented 9 years ago
Commited test case r9126.

Added iframe through configurstion
Configuration.DEFAULT_CONFIGURATION.addTokenTag("iframe", new 
HTMLBlockTag("iframe", Configuration.SPECIAL_BLOCK_TAGS)); 

Original comment by axelclk@gmail.com on 20 Oct 2013 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 20 Oct 2013 at 5:18