Menu

Is there a way to resize the html textbox?

0 votes

When I use the subtype Html, the textbox gets very small. Is there any way I can change the size of it?

The database field is a nvarchar(500).

in How To by (720 points)
retagged by

1 Answer

0 votes

The database field size is the easiest way to affect the size of the Html fields but it does not always work out as expected.

Another option is to use custom CSS. For instructions on where to add the custom CSS see the links below.

The CSS below will remove the height restriction on all Html editors.

.cleditorMain, .cleditorMain iframe {
	height:unset !important;
}

If removing the height restriction does not work then you can replace the keyword "unset" with a specific height.

To target a specific form you can set a css class name on the table preferences and use that class name in the css. .e.g 'SampleFormClass'.

.SampleFormClass.cleditorMain, .SampleFormClass.cleditorMain iframe {
	height:unset !important;
}

On dbFront versions after 1.1.2.1304, you can target a specific field by setting a css classname. .e.g. 'SampleFieldClass'

.SampleFieldClass.cleditorMain {
	height:unset !important;
}
.SampleFieldClassiframe.cleditorMain {
	height:200px !important;
}

Custom CSS Instructions

by (65.1k points)
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...