Tables in placeholder...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Tables in placeholder...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Tables in placeholder...  
Mei Ying [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 07:50 AM

Hi

One way to get around this is to allow fullformatting, but=20
restrict the formatting types available on the Placeholder=20
control. The Telerik control provides an easy way to=20
hide/show buttons on the toolbar by amending=20
ToolsFile.xml. If you are concerned about authors copying=20
and pasting formatted text into the placeholder control,=20
it has a CleanFormattingOnPaste property that you can=20
consider using.

The more complicated way would be to write your own custom=20
placeholder definition - placeholder - placeholder control=20
set that allows only the HTML tags that you require.=20
There's some sample code in the "Custom Placeholder and=20
Placeholder Definitions Classes" of the MCMS SDK.

HTH
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---

>-----Original Message-----
> Hi
>
>I have a small question regarding tables in an=20
HtmlPlaceholder. Is there a
>way to authorize tables without having to authorize=20
Fullformating & HTML
>editing?
>
>And, as I guess it is not the placeholder control but the=20
placeholder itself
>that "cleans" unwanted tags, if the answer is no to the=20
previous question,
>it won't work with Telerik rad editor either... Will it?
>
>Thanks,
>
>C=E9dric
>
>--=20
>Programming today is a race between software engineers
>striving to build bigger and better idiot-proof programs,
>and the Universe trying to produce bigger and better=20
idiots.
>So far, the Universe is winning.
>-- Rich Cook
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Tables in placeholder...  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 12:47 PM

And also on GotDotNet:
http://www.gotdotnet.com/Community/...5F-B47D4C58230F

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Mei Ying [MVP]" <anonymous@discussions.microsoft.com> wrote in message
news:0ae901c4b4da$884c52b0$a501280a@phx.gbl...
Hi

One way to get around this is to allow fullformatting, but
restrict the formatting types available on the Placeholder
control. The Telerik control provides an easy way to
hide/show buttons on the toolbar by amending
ToolsFile.xml. If you are concerned about authors copying
and pasting formatted text into the placeholder control,
it has a CleanFormattingOnPaste property that you can
consider using.

The more complicated way would be to write your own custom
placeholder definition - placeholder - placeholder control
set that allows only the HTML tags that you require.
There's some sample code in the "Custom Placeholder and
Placeholder Definitions Classes" of the MCMS SDK.

HTH
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---

>-----Original Message-----
> Hi
>
>I have a small question regarding tables in an
HtmlPlaceholder. Is there a
>way to authorize tables without having to authorize
Fullformating & HTML
>editing?
>
>And, as I guess it is not the placeholder control but the
placeholder itself
>that "cleans" unwanted tags, if the answer is no to the
previous question,
>it won't work with Telerik rad editor either... Will it?
>
>Thanks,
>
>Cédric
>
>--
>Programming today is a race between software engineers
>striving to build bigger and better idiot-proof programs,
>and the Universe trying to produce bigger and better
idiots.
>So far, the Universe is winning.
>-- Rich Cook
>
>
>.
>







[ Post a follow-up to this message ]



    Re: Tables in placeholder...  
Cédric Dardenne


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 07:47 AM

Hi,

But... Stefan... Didn't you mix up Placeholder and Placeholder control?
;-)... just teasing.

Thanks both for your answers. At the stage of our projet, replacing every
Html Placeholder Control by rad, or every HtmlPlaceholder by a custom one
would had required too much testing, and too many changes.

So the solution I chose was the following (please, don't slap me...):
I tricked the placeholder by transforming at each save table tags (and sub
tags) in allowed tags, and on load, do the transformation back. And then my
tables are allowed...

Thanks,

Cédric

--
Programming today is a race between software engineers
striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
-- Rich Cook


Stefan [MSFT] wrote:
> And also on GotDotNet:
>
http://www.gotdotnet.com/Community/...r />
D4C58230F[vbcol=seagreen]
>
> Cheers,
> Stefan.
>
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:36 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register