| <script type='text/javascript'> |
| function OnClientLoad(editor, args) |
| { |
| var style = editor.get_contentArea().style; |
| style.fontFamily= 'Arial'; |
| style.fontSize= 12 + 'px'; |
| var tool = editor.getToolByName("FontName"); |
| if (tool) |
| { |
| tool.set_value("Arial"); |
| } |
| var tool2 = editor.getToolByName("RealFontSize"); |
| if (tool2) |
| { |
| tool2.set_value("12px"); |
| } |
| } |
| </script> |
| <telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server"> |
| </telerik:RadEditor> |
Thứ Sáu, 13 tháng 6, 2014
Thiết lập font-name mặc định cho trình soạn thảo của control telrik
Đăng ký:
Đăng Nhận xét (Atom)
Không có nhận xét nào:
Đăng nhận xét