Both Ctrl-V and the Paste toolbar button respect the PasteMode setting, but the IE context menu (right-click) does not. After many fruitless attempts I have finally got the right mouse button disabled to stop people pasting in text from Word and bypassing PasteMode=Text.
The way I have done it, you need to edit the javascript of the control so make sure JavaScriptLocation = ExternalFile and SupportFolder is set to the location of your javascript files.
Edit FTB-FreeTextBox.js, function FTB_FreeTextBox is the first one in there.
Scan down to where it says,
if (FTB_Browser.isIE) {
this.designEditor.document.execCommand("2D-Position", true, true);
this.designEditor.document.execCommand("MultipleSelection", true, true);
}
and add my line at the bottom of the IF code,
if (FTB_Browser.isIE) {
this.designEditor.document.execCommand("2D-Position", true, true);
this.designEditor.document.execCommand("MultipleSelection", true, true);
//Added by D Torrens
//Disable right-click in the editor to prevent pasting from the right-click menu
this.designEditor.document.oncontextmenu = function(){return false;};
}
Right click is now disabled within the design view of the control.