Questions tagged [designmode]
133 questions
16
votes
5 answers
Automatic scrolling when contentEditable/designMode in a UIWebView
I am attempting a rich-text editor (with HTML export capability) for an iPhone application I am working on, and decided to use iOS 5's WebKit support for contentEditable/designMode.
I have hit a wall with one issue which is breaking for what I…

Léo Natan
- 56,823
- 9
- 150
- 195
14
votes
6 answers
Firefox - designMode: disable image resizing handles
How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked)

dEEf
- 165
- 1
- 1
- 6
13
votes
3 answers
Create properties that only apply on design time
I am using visual studio dark theme. As a result when designing my views I cannot see the font if its black. A fix will be to set the background of the view to white. But our application has different themes so I cannot hard code that.
There are to…

Tono Nam
- 34,064
- 78
- 298
- 470
9
votes
4 answers
How to set a value to display for bound properties in WPF design mode?
My bound contents are showed as empty string in the UI design-mode. I want to display some faked value for those contents but I don't know how to.
Please share if you know how to. Thank you!

Nam G VU
- 33,193
- 69
- 233
- 372
8
votes
7 answers
Removing resize handlers on contentEditable div
I created a contentEditable div to use as a rich textarea. It has resize handlers around it that I'd like to get rid of. Any idea how I'd do this?
Edit: This appears to be happening because I am absolutely positioning the div, so Firefox adds an…

Ben McCann
- 18,548
- 25
- 83
- 101
7
votes
4 answers
C# typed usercontrol in design mode gives error
I've got a custom class, which derives from UserControl.
The code:
public partial class Gallery : UserControl where T : class, IElement, new()
This classworks like it's supposed to work. But, when I try to enter design mode of the form which…

MysticEarth
- 2,646
- 4
- 33
- 53
6
votes
1 answer
How to enable design mode in flashbuilder
I am trying to enable the design mode on my trial flashbuilder but could not find any option to do so,
I have checked out Windows menu but there is no enable design mode,
and Preferences but there is no Flex in preferences dialog to enable its…

Eme Emertana
- 561
- 8
- 14
- 29
6
votes
1 answer
Detecting Design Mode using WPF in a Static Method
I am using WPF. I have a static class that performs some setup not available during design mode. This constructor gets called by a window in design mode, which results in an exception being thrown.
How do I detect design mode in a static method, so…

Mashmagar
- 2,556
- 2
- 29
- 38
5
votes
18 answers
How often do ASP.NET developers NOT use Visual Studio design mode?
We are developing an ASP.NET application. We retained an outside UI design firm, and for the most part have been very pleased with their work. Their "deliverable" to us was clickable screens -- Visual Studio solutions with ASPX files, images,…

rowrow
- 137
- 2
- 8
5
votes
2 answers
What's the best method for creating a simple Rich-Text WYSIWYG editor?
I need to create a simple rich-text editor that saves its contents to an XML file using arbitrary markup to indicate special text styles (e.g: [b]...[/b] for bold and [i]...[/i] for italic). All the backend PHP stuff seems fairly straightforward,…

Aaron
- 5,137
- 1
- 18
- 20
5
votes
3 answers
Activate / deativate design mode on worksheet selection
Really struggling with this one. I am trying to take a workbook out of design mode when a user leaves a particular sheet.
I have the co which will run from buttons taking the sheet in and out of design mode.
Now I want to fire these on worksheet…

David Wilson
- 51
- 1
- 3
5
votes
1 answer
Visual Studio 2013 Browser Link - Enable CTRL to Edit in Browser
How do you enable CTRL key for the Visual Studio Browser Link integration?
Scott Hanselman discusses it here around 1:06:00 during the VS 2013 Launch Event. I'm not sure how to activate or enable the realtime HTML Edit feature so I can edit in the…

SliverNinja - MSFT
- 31,051
- 11
- 110
- 173
4
votes
2 answers
designMode iFrame Get Cursor Position
I want to get the cursor position of an editable iFrame (using designMode). Here is the code I have so far:
document.getElementById('iframe_id').contentWindow.document.getSelection().getRangeAt(0)
From there, getting the property startOffset gets…

Kincaid
- 145
- 4
- 14
4
votes
4 answers
Set focus on iframe in Chrome
I have an iframe (id: 'chat') with designMode='on' in Chrome.
On Enter keypress event I call the function send(), which takes the iframe contents and writes it to a socket. My problem is that when clearing the iframe, I lose focus.
How to do I set…

ANisus
- 74,460
- 29
- 162
- 158
4
votes
2 answers
DIV Contenteditable expand problem
I have a div with contenteditable set to true to act as a text input.
Now usually, it expands as some text reaches the end of the div, but if I resize the div, this stops happening. The browser no more does this. I tried to set the height after…

Michael S.
- 305
- 4
- 17