Cute soft editor - English and Hebrow

Last post 11-04-2009, 3:39 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  11-03-2009, 6:45 AM 56861

    Cute soft editor - English and Hebrow

    We are using your cute soft editor product.
    We used the editor for writing Hebrew and English together.
    When saving to database the Hebrew and English switch positions and it is saved
    in the wrong order.
    We wrote for the property:EditorBodyStyle="direction:rtl;text-align:right"
    Are we missing somting?
    This is very urgent!!!!
    Thanks
  •  11-03-2009, 10:12 AM 56866 in reply to 56861

    Re: Cute soft editor - English and Hebrow

    Do you mean the text direction is not saved in html code?
     
    If so, the answer is yes.
     
    Cute Editor creates html code without text direction.
     
    For example:
     
    <b>Hello World</b>
     
    When you display the content from your database in a hebrew web page, you should change the text direction of the page instead of changing each paragraph.
     
    Hope it helps.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-03-2009, 11:38 PM 56897 in reply to 56866

    Re: Cute soft editor - English and Hebrow

    Thanks for the replay.
     
    The problem is that after we save it to the database we show the text in reporting services.
     
    In the report the text is displayed not in the correct order do you have a solution for this problem?
  •  11-04-2009, 3:39 AM 56904 in reply to 56897

    Re: Cute soft editor - English and Hebrow

    Hi Kuimov,
     
    Two ways
     
    1.  
    1. <%@ Page Language="C#" AutoEventWireup="True" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    5.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8. </head>   
    9.   
    10. <script runat="server">   
    11.     protected override void OnLoad(EventArgs e)   
    12.     {   
    13.         if (!IsPostBack)   
    14.         {   
    15.             editor1.Text = "<style>body{direction:rtl;text-align:right}</style>";   
    16.         }   
    17.   
    18.         base.OnLoad(e);   
    19.     }   
    20.   
    21. </script>   
    22. <body>   
    23.     <form id="Form1" runat="server">   
    24.         <CE:Editor ID="editor1" runat="server" EditCompleteDocument="true" EnableStripStyleTagsCodeInjection="false">   
    25.         </CE:Editor>   
    26.     </form>   
    27. </body>   
    28. </html>  

    2.
    1. <%@ Page Language="C#" AutoEventWireup="True" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    5.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8. </head>   
    9. <body>   
    10.     <form id="Form1" runat="server">   
    11.         <CE:Editor ID="editor1" runat="server" EditCompleteDocument="true" EnableStripStyleTagsCodeInjection="false">   
    12.         </CE:Editor>   
    13.     </form>   
    14. </body>   
    15. </html>   
    16. <script>   
    17. function CuteEditor_FilterHTML(editor,code)   
    18. {   
    19.  return code.replace(/(<body[^\>]*\>)/i, '<body style="direction:rtl;text-align:right">');   
    20. }   
    21. function CuteEditor_FilterCode(editor,code)   
    22. {   
    23.  return code.replace(/(<body[^\>]*\>)/i, '<body style="direction:rtl;text-align:right">');   
    24. }   
    25. function CuteEditor_OnInitialized(editor)   
    26. {   
    27.  editor.ExecCommand("TabCode");   
    28.   editor.ExecCommand("TabEdit");   
    29. }   
    30. </script>  
    Regards,
     
    Ken
View as RSS news feed in XML