PageRenderTime 73ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/widgets/TextBox/edit.ascx

#
ASP.NET | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | 85e11b30231efee306fc74ef4e7f82ee MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="edit.ascx.cs" Inherits="Widgets.TextBox.Edit" %>
  2. <%@ Import Namespace="BlogEngine.Core" %>
  3. <script type="text/javascript" src="<%=Utils.RelativeWebRoot %>editors/tiny_mce_3_4_3_1/tiny_mce.js"></script>
  4. <script type="text/javascript">
  5. tinyMCE.init({
  6. // General options
  7. mode: "exact",
  8. elements : "<%=txtText.ClientID %>",
  9. theme: "advanced",
  10. plugins: "inlinepopups,fullscreen,contextmenu,emotions,table,iespell",
  11. convert_urls: false,
  12. // Theme options
  13. theme_advanced_buttons1: "fullscreen,code,|,cut,copy,paste,|,undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent,|,iespell,link,unlink,sub,sup,removeformat,cleanup,charmap,emotions",
  14. theme_advanced_buttons2: "",
  15. theme_advanced_toolbar_location: "top",
  16. theme_advanced_toolbar_align: "left",
  17. theme_advanced_statusbar_location: "bottom",
  18. theme_advanced_resizing: true,
  19. theme_advanced_source_editor_height: 425,
  20. gecko_spellcheck : true,
  21. tab_focus : ":prev,:next"
  22. });
  23. </script>
  24. <asp:TextBox runat="server" ID="txtText" TextMode="multiLine" Columns="100" Rows="10" style="width:700px;height:372px" /><br />