Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: CTRL-V vs Paste Toolbar Button
Re: CTRL-V vs Paste Toolbar Button
06-13-2007, 2:15 PM
etpub
Joined on 08-30-2005
Posts 2
Re: CTRL-V vs Paste Toolbar Button
Reply
Quote
There are missing EditorOnPaste modes in the DNN editor provider:
if
(
Operators
.
CompareString
(
text2
,
"ConfirmWord"
,
false
) ==
0
)
{
this
.
cntlCE
.
EditorOnPaste
=
PasteBehavior
.
ConfirmWord
;
}
else
if
(
Operators
.
CompareString
(
text2
,
"PasteWord"
,
false
) ==
0
)
{
this
.
cntlCE
.
EditorOnPaste
=
PasteBehavior
.
PasteWord
;
}
else
if
(
Operators
.
CompareString
(
text2
,
"PasteText"
,
false
) ==
0
)
{
this
.
cntlCE
.
EditorOnPaste
=
PasteBehavior
.
PasteText
;
}
else
if
(
Operators
.
CompareString
(
text2
,
"Disabled"
,
false
) ==
0
)
{
this
.
cntlCE
.
EditorOnPaste
=
PasteBehavior
.
Disabled
;
}
else
{
this
.
cntlCE
.
EditorOnPaste
=
PasteBehavior
.
Default
;
}
I was specifying inside web.config EditorOnPaste="PastePureText". I have compiled a custom editor provider to fix my issue, but you'll probably want to take a look at this.
View Complete Thread