Questions tagged [designmode]
133 questions
0
votes
2 answers
iframe content editable that is within a jqueryUI sortable list item
I am having an issue where when I have a rich text field that has design mode on that is within a sortable LI. The problem is that designMode changes to 'Off' if the LI is dragged to a new position. And even though I am able to target the correct…

RON2015
- 443
- 3
- 16
0
votes
2 answers
assign selected text to a variable in designMode
I have a piece of code that sets the document to designMode and then operates on pieces of selected text using the document.execCommand() function.
It provides various functionality - for example it allows the user to turn a selected line of text to…

Sam Redway
- 7,605
- 2
- 27
- 41
0
votes
2 answers
HTML designMode, move cursor programmatically using default keypress handlers
Although I already got an answer, I'll start a small bounty on this one. As the answer is that it is impossible, I'm searching for an alternative solution or some other suggestion.
I'm making a very customized editor using the HTML designMode. In…

Johan
- 5,003
- 3
- 36
- 50
0
votes
1 answer
Make specific elements in designMode iframe read-only?
I have an iframe which has designMode set to 'on'. In it, I have a div which the user should be able to type in, and also in the iframe, I have another div which the user should NOT be able to type in.
Is there a way to do this? Using…

Chad Johnson
- 21,215
- 34
- 109
- 207
0
votes
0 answers
How do I continue text from one Iframe with design mode enabled to another.
http://kusoma.org.uk/write.html
Me and a friend are making a book community where users come together and write and share there book idea.
I am currently creating the text editor for them to create/edit there books.
What I want to do is when the…

Kyle Somerset
- 21
- 4
0
votes
1 answer
IsInDesignMode not working for 1 ViewModel, but the other
I do have my DataContext for DesignMode set like this:
d:DataContext="{d:DesignInstance vm:ViewModelName, IsDesignTimeCreatable=True}"
In total I have lets say 2 ViewModels in both I have defined IsInDesignModeStatic in the Constructor and am…

CodeFanatic
- 11,434
- 1
- 20
- 38
0
votes
7 answers
Problem using WebBrowser control as editor
I am currently working on a project where I am using a WebBrowser control as an editor. I have design mode turned on and it seems to be working. The issue im having is when I try to save the Document and load another it pops up the "This document…

thecaptain0220
- 2,098
- 5
- 30
- 51
0
votes
0 answers
How to replace words in an iframe in designMode?
I want to replace some words like "php", because when I put PHP code in HTML tags the codes are hiding.
$('#editor').contents().find('

Mohsen TOA
- 759
- 10
- 17
0
votes
0 answers
How to avoid Visual Studio 2013 firing UserControl's constructor when editing Windows Form in Design Mode?
My project is a Windows Application, targeting .NET Framework 4.5., referencing EntityFramework 6.1.1.
My main form has a UserControl, which has a second usercontrol within. The nested UserControl constructor has something similar to:
public…

Junior Mayhé
- 16,144
- 26
- 115
- 161
0
votes
1 answer
How to Disable Context menu of the Web Browser control in WPF?
I have a web browser control which show a html local document (EPUB Files) , i would like to turn off right clicks and turn off context menu to unable "Cut" & "Paste" because my web browser is in Design Mode ...

Youssef Messaoudi
- 111
- 1
- 17
0
votes
1 answer
How to programatically modify web browser content in design mode?
here's my dependency property declared :
public static void IsDesignModePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
{
WebBrowser browser = obj as WebBrowser;
if (browser != null)
…

Youssef Messaoudi
- 111
- 1
- 17
0
votes
0 answers
Howto disable iPad menus in iFrame in design mode?
I am implementing an web based editor which uses an iframe in design mode for its content. On usual desktop browsers everything works fine but not on the iPad. Reasons include the standard menus of the ipad: spell checking and…

Werzi2001
- 2,035
- 1
- 18
- 41
0
votes
1 answer
IE issue - Inserting html in an editable frame
I am trying out some basic WYSIWYG like features on my jsfiddle here - http://jsfiddle.net/Q6Jp9/28/
For now, all I am trying to do is take the user input from the "Markup" box and insert it into the "Visual" box when the Visual button is clicked.…

Apeksha
- 485
- 6
- 23
0
votes
1 answer
Html rich text editor and read-only content?
I'm looking for a way to make specific elements in a HTML rich text editor read-only and not possible to modify by the user. Is there any way to achieve this behavior?
An example of the rich text editor I'm refering to would be this code snippet:
…

magix
- 224
- 4
- 12
0
votes
2 answers
how to add a user control from a dll(already referenced) to ui in design mode?
If i first add it to the toolbox, an exception will be thrown, saying the dll is already referenced.
and i hate to add it to ui programmatically.
any idea? i have to add it programmatically?

Benny
- 8,547
- 9
- 60
- 93