You must specify a value for this required field.

10 posts, 0 answers
  1. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 25 Mar 2010 Link to this post

    Hi,

    I have a problem in my announcement in my MOSS 2007,  After I enabled RadeditorMoss. The page always validated the body even it is unempty and then the announcement cannot save anymore. Do you have any solution on my problem?

    Please see the attached files for you ready reference.

    Thank you.
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 26 Mar 2010 Link to this post

    Hi Napoleon,

    I was not able to reproduce the issue. Could you provide me with some additional information? Exactly which version of RadEditor for MOSS you are using? Also send me the ListConfigFile.xml and ListToolsFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.

    In addition make sure that there are no javascript errors on the page where you are using the editor.


    Sincerely yours,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

  3. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 26 Mar 2010 Link to this post

    Hi,

    Thank you for your immediate reply. Actually if I using Firefox browser, it's working. I have a problem if I using IE

    Nap
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 26 Mar 2010 Link to this post

    Hello Napoleon,

    Again I will need the following information:
    1. RadEditor for MOSS version.
    2. ListConfig.xml, ListToolsFile.xml files (the configuration files of the control in list scenario).
    3. Confirmation that there are no javascript errors on the page where you are using the control.

    Kind regards,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 05 Apr 2010 Link to this post

    Hi,

    1. RadEditor for MOSS version.
          -version  5.7.1.0
    2. ListConfig.xml, ListToolsFile.xml files (the configuration files of the control in list scenario).
          -ListConfig.xml
     
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- ==============================================================================================
     Config File valid structure:
     <configuration>
        <property>...</property>
        ...
      <property>
       <item>...</item>
       <item>...</item>
       ...
      </property>
      ...
     </configuration>
    =============================================================================================== -->
    <configuration>
     <property name="EditModes">Design,Html</property>
     <property name="Height">240px</property>
     <property name="Width">500px</property>
    </configuration>

    -ListToolsFile.xml

    <root>
      <tools name="EnhancedToolbar">
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C" />
        <tool name="Paste" shortcut="CTRL+V" />
        <tool name="FormatStripper" />
        <tool separator="true" />
        <tool name="Undo" shortcut="CTRL+Z"/>
        <tool name="Redo" shortcut="CTRL+Y"/>
        <tool separator="true" />
        <tool name="MOSSInsertTable" />
        <tool name="MOSSInsertTableElement">
          <tool name="InsertRowAbove" />
          <tool name="InsertRowBelow" />
          <tool name="InsertColumnLeft" />
          <tool name="InsertColumnRight" />
        </tool>
        <tool name="MOSSDeleteTableElement">
          <tool name="DeleteRow" />
          <tool name="DeleteColumn" />
        </tool>
        <tool name="SplitCell" />
        <tool name="MergeColumns" />
        <tool separator="true" />
        <tool name="MOSSLinkManager" />
        <tool name="ImageManager" />
      </tools>
      <tools name="BasicToolbar">
        <tool name="FontName" />
        <tool name="FontSize" />
        <tool separator="true" />
        <tool name="Bold" shortcut="CTRL+B" />
        <tool name="Italic" shortcut="CTRL+I" />
        <tool name="Underline" shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft" shortcut="CTRL+L" />
        <tool name="JustifyCenter" shortcut="CTRL+E" />
        <tool name="JustifyRight" shortcut="CTRL+R" />
        <tool separator="true" />
        <tool name="InsertOrderedList" />
        <tool name="InsertUnorderedList" />
        <tool name="Indent" />
        <tool name="Outdent" shortcut="CTRL+M" />
        <tool separator="true" />
        <tool name="ForeColor" />
        <tool name="BackColor" />
        <tool separator="true" />
        <tool name="MOSSLeftToRight" />
        <tool name="MOSSRightToLeft" />
      </tools>
      <contextMenus>
        <contextMenu forElement="*">
          <tool name="Cut"/>
          <tool name="Copy"/>
          <tool name="Paste"/>
        </contextMenu>
      </contextMenus>
    </root>


    3. Confirmation that there are no javascript errors on the page where you are using the control.
         I doubled checked and no javascript error. It goes well in the list page but the description still empty
         
  6. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 05 Apr 2010 Link to this post

    Additional info.. I tested it in clean web application. Once I click the submit button and field is empty as well. They have double message errors for Firefox and Safari Browser. Please find the attached file
  7. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 06 Apr 2010 Link to this post

    Hi Napoleon,

    They have double message errors for Firefox and Safari Browser. - We are aware of this behavior and it is logged in our bug-tracking system. Unfortunately since RadEditor has no control over the mentioned notifications at this point we have not been able to find a suitable workaround.

    Regarding the empty field problem I was not able to reproduce the issue. If you view the source code of the page where you are using the editor you will find java script code such as:
    function OnSubmit_ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1(sender, args)
    {
        var editor = sender;
        var editorContent = editor.get_html(true);
        if (editorContent.length >0)
        {
            var contentLength = 1+editorContent.length;
            while (editorContent.length<contentLength)
            {
                contentLength = editorContent.length;
                editorContent = editorContent.replace(/^[\s]*<div\s+class=[\"\']?ExternalClass\w*[\"\']?>([\s\S]*)<\/div>/ig, '$1');
            }
        }
        var contentTextBox = document.getElementById('ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_TextField');
        if($telerik.isSafari && typeof(contentTextBox.innerText) != 'undefined')
        {
            contentTextBox.innerText = editorContent;
        }
        else
        {
            contentTextBox.value = editorContent;
        }
    }
    Sys.Application.add_load(function() {var editor = $find('ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1');editor.add_submit(OnSubmit_ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1);});

    You need to make sure that this code is correctly executed.
    Here is how RadEditor for MOSS works in list scenario. The OOB editor gets hidden and RadEditor replaces it only visually. Wen the user submits the page the content of the editor is transferred to the content textbox of the OOB editor. If this javascript is not executed correctly, the content will not transfer and the content textbox of the OOB editor will always be empty.

    What you can do is check what is the actual code in the view source of your page and try to debug it by adding the same
    function OnSubmit_ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1(sender, args){}
     method in the end of your master page.
    _ctl00_m_g_9adcf9e1_218c_47f2_9bc0_af762cb4ccfd_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_ is the ID of the field, so it will be different in your page.


    Sincerely yours,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 07 Apr 2010 Link to this post

    Hi,

    Thank you for your reply, however I applied your suggestion but still not working. Since there are two controls need to validate, I think this javascript could solve only for one control. I'm not sure because if I remove the required validator in list setting then it will save but value remain empty.

    -Another one, if i'm going to edit the list without empty value. It will display and then if i click submit then the result value was still the same even I change the field value.

    Please see the attached file based on your suggestion.

    Your reply would be appreciated.

    Thank you.
    Nap 
  9. Napoleon Adame
    Napoleon Adame avatar
    8 posts
    Member since:
    Feb 2010

    Posted 07 Apr 2010 Link to this post

    Hi,

    Herewith is my analysis for empty field in list item for MOSS

     1. Below method  is not working in IE, I found out that textarea was handle by <IFrame> Html tag in Firefox.

    function OnSubmit_ctl00_SPWebPartManager1_g_f39aadf6_9dcd_4756_88f7_5274fd9bf2ab_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_RadTextField1(sender, args)
    {
    }

    2. That's why  the Radeditormoss is always empty. Please see the attached files as your ready reference

    Maybe we could raise this method before validition for all browser. 

    Thank you
    Nap

  10. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 09 Apr 2010 Link to this post

    Hi Napoleon,
    I made a small video with a test where you can see that the correct javascript methods are executed.

    Here is what I did in my test:
    1. I have a custom with 3 columns, two of which are rich text and enhanced rich text.
    2. Checked the source code or the page in edit mode and copied the javascript methods which are responsible for transferring the content for the both text fields.
    3. I created a script element in the bottom of the master page of the MOSS site (just before the closing </body> tag) and pasted both methods there.
    3. I added alert() statements which assure the execution of the javascript.

    Could you try making the same test in your environment?

    Sincerely yours,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top