AJAX :: Can't Make Editor's Height Smaller Than 200px
Mar 19, 2010
Ive downloaded AspNetAjaxLibraryBeta0911 and have added both System.Web.Ajax.dll and AjaxControlToolkit.dll from the webforms/debug folder to my [ASP.NET web app] project. I have also added the latter dll to my toolbox. Ive dragged a ToolkitScriptManager onto my aspx page too, and it has created these two reference:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="System.Web.Ajax" Namespace="System.Web.UI" TagPrefix="asp" %>
Is that right so far? Now I want to have a custom HTMLEditor, so I created a new folder "App_Code" and created a class calles CustomEditor.cs which has this content:
using AjaxControlToolkit.HTMLEditor;
namespace TestProj.App_Code
{
public class CustomEditor : Editor
{
protected override void FillTopToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Underline());
}
}
and then I added this to the aspx page:
<%@ Register namespace="TestProj.App_Code" tagprefix="custom" %>
and
<custom:CustomEditor ID="editorMsg" runat="server" />
Firstly, it works. But I have a few problems.
1) In CustomEditor.cs there is no intellisense, and pressing Ctrl + Space bring up no things like "TopToolbar" etc.
2) In the aspx page's designer code I had to add this manually: protected global::AjaxControlToolkit.HTMLEditor.Editor editorMsg; else it wouldnt come up in my code behind. Why isnt it automatically doing that? And is that correct?
3) No matter what I do I cannot make the editor's height smaller than 200px. I set it both inline and in code behind but it still overflows its container and goes to 200. I can however make it more than 200 and also width is fine. Heres a screenshot: [URL]
View 6 Replies
Similar Messages:
Feb 26, 2015
this is my css for the mobile version I was just wondering how I can change the size of the textboxes for the mobile version to make them smaller but don't change on the computer version? if you go here on the mobile version youll see what I mean URL... the code for the form is inside this class tag.
<section class="left-col">
</secion>
PHP Code:
/*--------MEDIA!!!-----------*/@media screen and (max-width: 478px){   body{   Â
font-size: 13px;    }}@media screen and (max-width: 740px){          nav {       Â
width: 100%;        margin-bottom: 10px;    }    nav ul{        list-style: none;       Â
margin: 0 auto;        padding-left: 0px;    }    nav ul li{        text-align:  center;       Â
margin-left: 0 auto;        width: 100%;        border-top: 1px solid #878E63; Â
[Code]......
View 6 Replies
Sep 20, 2015
i have add the Tiny MCE Rich TextBox on my webpage using articleÂ
[URL]
but i am unable to set height and width.Â
View 1 Replies
Jul 24, 2010
The asp.net chart control (pie) is becoming smaller and smaller as I add more and more legend items. How can I prevent this? If I set the maximum space that the legend can take, items are getting truncated. Therefore, I want to find a way to dynamically set the size of the chart.
View 1 Replies
Jan 26, 2010
I have an Editor control on my page and the user can go in use it hit save and that all works.
In another part of the page I have a simple dropdown to select a note and view it. When you push view it loads the text which was entered in via the editor control.
If the user used an order or unordered list. The text shows up but not the list part.
So if they did this:
Example
ThisAnd this
What is displaying is
Example
This
And This
Without the bullets. Same for the numbers.
I have it going to a literal control which should render the html, but it doesn't.
View 3 Replies
May 13, 2010
How can I make linkbutton for two line height. check the below website:
[URL]
push chemical, you will find that some linkbutton is two line (more letters) some is one line (few letters). This make the pictures chaos. How can I make one line linkbutton have more height which equal to two line linkbutton height?
View 1 Replies
Dec 2, 2010
I wish to make sure the contents of a div is always centered on the page. Currently using margin-left:200px;
BUt that is not great when browser changes size or shape. what can I use in sytle to center contents with in a div
View 2 Replies
Sep 15, 2010
i want make FCK editor drag able in my asp.net application. drag FCK editor with mouse pointer movement.
View 1 Replies
Jul 16, 2010
I went through the documentation and looked at the asp.net/webmatrix pages but could not find a RichTextEditor.
Is there one built into WebMatrix or can I just use the AjaxToolkit Html Editor or another 3rd party editor?
View 4 Replies
Jan 3, 2011
i need to use a ediotr in my asp.net web application which has few additional featuresi have checked with almos all online editors avaliable . one of them has the features i need but its not a free editori need to make such a editor for using in my application.
View 3 Replies
Nov 12, 2010
i want to make a notepad like editor in my asp.net using c#. i am using a note pad and some buttons to create coding for cut copy paste bold italics etc...
i dont want to have a menubar for that.
i want to create a small replying form as you are seeing it while replying to me.
i want exactly the same format.
want a toolbar on the top and a message body below. where we can type as i am currently doing. and can edit any formatting through that toolbar as it is here just above this message space.
View 3 Replies
Mar 29, 2011
I have an ASP.NET website. This site is fairly complex in the sense that it has all sorts of blurs, gradients and rounded corners. The content of the website is always going to be in the same area, an area within some rounded corners. The content is going to be of a dynamic height. And, I can't show any scrollbars, other than those displayed by the browser window.
The banner is a Flash movie. I want to prevent the page from flickering. Because of this, I want to only update the url of the content portion. My question is, is there a way to do this without significant re-working? I thought an iframe would be suitable, but I can't figure out:
How to make the iframe's height dynamically grow/shrink based on the size of the content Get rid of the borders / scrollbars across the major browsers.
Is what I'm trying possible? Is there a better way to do it?
View 1 Replies
Jun 22, 2010
I was wondering if there was an easy way to change the output generation properties of the HTML editor.
I need to change it from the current XHTML standard (spans, etc) to legacy styles; <b>, <u>, <i>, etc.
View 2 Replies
Jul 16, 2013
How can I ensure there are proper icons available, like Bold, Italic, Underline, and etc, to the Edit area on the page?
<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="App13._Default" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>TinyMCE_Test1</title>
<style type="text/css">
[Code]...
View 1 Replies
May 18, 2010
I have the folllowig css:
div.ListDiv {
width: 750px; /* Table width will be 99% of this */
height: 320px; /* Must be greater than tbody */
overflow: auto;
}
table {
width: 99%; /* 100% of container produces horizontal scroll in Mozilla */
border: none;
}
table>tbody { /* Child selector syntax which IE6 and older do not support */
overflow: auto;
height: 215px;
overflow-x: hidden;
}
thead tr {
position:relative;
top: expression(offsetParent.scrollTop); /* For IE5+ only */
}
thead td {
background-color: #CCCCCC;
font-weight: bold;
}
td {
color: #000000;
text-align: left;
}
table tfoot tr {
position: relative;
overflow-x: hidden;
top: expression(parentNode.parentNode.offsetHeight >= offsetParent.offsetHeight ? 0 - parentNode.parentNode.offsetHeight + offsetParent.offsetHeight + offsetParent.scrollTop : 0);
}
tfoot td {
background-color: #CCCCCC;
}
td:last-child { /* Prevent Mozilla scrollbar from hiding cell content */
padding-right: 20px;
}
When I have a list with 1 or 2, rows the row height automaticaly expand to fill the heigt of the table.
How can I avoid this happening, and have fixed height colimns.
View 2 Replies
Jul 7, 2010
I have a HyperLink inside a panel.
I wonder if the the HyperLinks height can follow along ´automatically´ as the Panels height is changing as the HyperLinks is nested inside the Panel.
Is there a function for this?
[Code]....
View 3 Replies
Nov 2, 2010
If we have more no.of items(suppose 250) in dropdownlist, how to show a minimum extent of height instead of dropdownlist taking complete page height. I have searched all the forums but i didn't get exact answer,
View 2 Replies
Feb 9, 2010
I think this may be to simple of a question for these forums, but I guess I'll risk a little tarnish on my armor. In my web application, some of the pages I create don't have enough content to fill up the whole page. So it extends to the bottom (or beyond) of the browser window.
Where could I find an example, or, does someone have an example of how to make the content area of an individual page expand so the footer of my page is indeed at the bottom of the window? Kind of an auto-growing/shrinking thing.
View 1 Replies
Jan 27, 2011
I set p { height: 25px ; min-height 25px;} to get the same line height in a form. I works in fine in most browsers. But when I invisible html tags inside p, the p will keep the blank space (25px) is there an alternative css for min-height, to make it work in IE and other browsers? since p always contains html inputs (label, textbox).
View 1 Replies
Jan 15, 2010
I have a database that I just migrated data to. It has grown to 769MB from 13MB when I shrink it, it does not get any smaller. I don't think the amount of data should have made it grow that much. Could I be doing something wrong?
View 3 Replies
Dec 1, 2010
i have used ajax control toolkit masked editor extender.i want to remove "_" from masking pattern and want to replace it with space. for ex. want " - - " instead of this
<
asp:MaskedEditExtender
ID="MEETxbPhone"
TargetControlID="txbPhone"
Mask="999-999-9999"
[code]...
View 2 Replies
Jan 20, 2010
I have the a test harness detailed below. This has two labels on the page that are set within the page_load which is hit every second due to the updatepanel and timer.
Label1 is set to a datetime value that is stored in the Cache. Label2 is set to the current datetime.
The cache is set with an absolute expiry of 5 seconds from now and there is an update callback on the cache to re-set the datetime and make it valid for another 5 seconds.
The problem I have is that I'm seeing the cache update every 20 seconds, not every 5 seconds like I would expect. If I set the time to 30 seconds then it updates every 40.
This appears to indicate that the cache will only expire every 20 seconds. Does anyone know of a way of reducing this time? If I just insert into the cache with an expiry of 5 seconds and no Callback then it works as I would expect and is removed every 5 seconds.
ASPX:
[Code]....
View 1 Replies
Jan 8, 2010
I have three panels like so:
___ _________ ___
| | | | | |
| | | | | |
| | | | | |
| | | | | |
|___| |_________| |___|
But if I shorten the window a little bit, the middle panel goes below the two side panels:
___ ___
| | | |
| | | |
| | | |
| | | |
|___| |___|
_________
| |
| |
| |
| |
|_________|
Here is my code
<style>
.SidePanel {
background-color:#9999CC;[code]....
View 3 Replies
Nov 30, 2013
I have two textbox as naming : txtInitiateDt and txtDisposalDt.
When user give 2nd textbox value from datepicker it should chk whether the given value shouldn't more than to date and also less that 1st textbox value.
I did it & also works good...bt there's an error arise when i host the site on client machine where only framework and database is present.
And the error is "String Value is not in correct dateformat" and fr this exception other events are blocked.
View 1 Replies
Jul 9, 2010
In ajax Editor control how to delete the bottom toolbar..
where should we get the Editor.css file ?
View 1 Replies