Completed
Last Updated: 01 Jun 2021 13:39 by ADMIN
Release Q2 2014
ADMIN
Ianko
Created on: 19 Feb 2014 15:34
Category: Editor
Type: Bug Report
0
The Groupbox tool is inserting a fieldset that does not enlarge its height according to the text
When a groupbox is inserted and start typing text, the fieldset stays fixed in size.

You can use the following resolved command:

<telerik:RadEditor runat="server" ID="RadEditor1">
</telerik:RadEditor>

<script type="text/javascript">
	Telerik.Web.UI.Editor.CommandList.InsertGroupbox = function myfunction(commandName, editor, args) {
		var localizedTitle = editor.getLocalizedString("RadEditorGroupboxTitle", "Title");
		var localizedContent = editor.getLocalizedString("RadEditorGroupboxContent", "Content...");
		value = "<fieldset style='width: 200px; min-height: 76px'> <legend>" + localizedTitle + "</legend>" + localizedContent + " </fieldset> ";

		editor.pasteHtml(value, commandName);
	}
</script>
0 comments