I added >// FCKConfig.ProtectedSource.Add( /<iframe>[\s\S]*?<\/iframe>/g ) ; // iframe codeto the "fckconfig.js" file & the "fckconfig_limited.js" file.
I am trying to allow "iframes" Is this correct? I use phpmydirectory & in my admin I can allow/disallow html tags & attributes.
Here are my allowed html tags:
iframe,br,font,li,ul,hr,span,p,div,b,i,u,a,strong,em,center,h1,h2,h3
Here are my allowed attributes:
width,height,size,color,align,border,class,id,style,title,href,target,alt,face
Here is the code I'm trying to add:
<iframe width="300" height="400" src="http://www.rss-info.com/rss2.php?integration=if&windowopen=1&rss=http%3A%2F%2Frss.news.yahoo.com%2Frss%2Finternet&number=10&width=300&ifbgcol=FFFFFF&bordercol=D0D0D0&textbgcol=F0F0F0&rssbgcol=F0F0F0&showrsstitle=1&showtext=1" frameborder=0></iframe>
What am I doing wrong? I'm sort of new to fckeditor. Thanks, Gene Thanks, Gene
Sun, 12/07/2008 - 20:00
#1
Re: Adding iframe code to phpmydirectory fckeditor
Re: Adding iframe code to phpmydirectory fckeditor
OK, I'm still trying to post an rss feed into fckeditor. I've added every single HTML tag I can find >
A,ABBR,ACRONYM,ADDRESS,APPLET,AREA,B,BASE,BASEFONT,BDO,BIG,BLOCKQUOTE,BODY,BR,BUTTON,CAPTION,CENTER,CITE,CODL,COLGROUP,DD,DEL,DFN,DIR,DIV,DL,DT,EM,FIELDSET,FONT,FORM,FRAME,FRAMESET,H1,H2,H3,H4,H5,H6,HEAD,HR,HTML,I,IFRAME,IMG,INPUT,INS,ISINDEX,KBD,LABEL,LEGEND,LI,LINK,MAP,MENU,META,NOFRAMES,NOSCRIPT,OBJECT,OL,OPTGROUP,OPTION,P,PARAM,PR,Q,S,SAMP,SCRIPT,SELECT,SMALL,SPAN,STRIKE,STRONG,STYLE,SUB,SUP,TABLE,TBODY,TD,TEXTAREA,TFOOT,TH,THEAD,TITLE,TR,TT,UL,VAR
I added attributes > src & frameborder & allowed "width" & "height" in the 2 config files. I can only find "windowopen" as an attribute as "window.open" . What about > "bordercol"? ("bordercolor" deprecated in xhtml?)> "bgcol"? > "textbgcol"? > "rssbgcol"? > "showrsstitle"? > "showtext"? >
When I click "Source" & add the code below I see my character count still at "999". When I just enter it it says "712". Should I post my fckeditor config files? Thanks
<iframe width="300" height="400" src="http://www.rss-info.com/rss2.php?integration=if&windowopen=1&rss=http%3A%2F%2Frss.news.yahoo.com%2Frss%2Finternet&number=10&width=300&ifbgcol=FFFFFF&bordercol=D0D0D0&textbgcol=F0F0F0&rssbgcol=F0F0F0&showrsstitle=1&showtext=1" frameborder=0></iframe>