Thank you, this is very helpful! My followup question now is how can I style that textbox short of
a) removing my global style
b) redefining the padding and line height with a global <style>...</style> right above the editor declaration?
I tried adding a style="" attribute to the editor tag and that didn't pass through to the textarea field. Moreover there doesn't seem to be a name, id, or class associated with that textarea that would allow me to write css to target that field specifically. There is the <cssfiles> attribute for the editor, but this is only passed into the WYSIWYG view. Likewise the tablelayoutcssfile and contentareacssfile attributes are only added into the WYSIWYG view.
My current workaround is to do something like this:
<
style
>
textarea {
line-height: inherit;
padding: inherit;
}
</
style
>
<
telerik:RadEditor
ID
=
"EMailContentEditor"
runat
=
"server"
Width
=
"95%"
ContentFilters
=
"RemoveScripts,IndentHTMLContent"
NewLineMode
=
"Br"
ConvertToXhtml
=
"false"
ConvertFontToSpan
=
"false"
ExternalDialogsPath
=
"/EditorDialogs"
EditModes
=
"Design,Html"
Height
=
"600px"
OnClientCommandExecuting
=
"OnClientCommandExecuting"
OnClientLoad
=
"OnClientLoad"
>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"/EditorBody.css?4"
/>
</
CssFiles
>...
This not only requires a change to every page where i use an editor, but it also requires that a developer remember to add this extra css, and remember what it's there for, since it's not actually contained anywhere in the definition. It also redefines the textarea for anything else futher down on the page. Fortunately i don't use a lot of textarea fields, but you can see how this is not an idea workaround.
Any assistance you can provide to make this easier is much appreciated.
Thanks!
-Mark