|
Home > Archive > Microsoft Content Management Server > October 2004 > Tables in placeholder...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Tables in placeholder...
|
|
| Mei Ying [MVP] 2004-10-18, 2: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
>
>
>.
>
| |
| Stefan [MSFT] 2004-10-18, 7:47 am |
| 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...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
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
>
>
>.
>
| |
| Cédric Dardenne 2004-10-19, 2: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/...5F-B47D4C58230F[vbcol=seagreen]
>
> Cheers,
> Stefan.
>
>
|
|
|
|
|