Tool buttons missing in full screen mode

5 posts, 0 answers
  1. jo
    jo avatar
    7 posts
    Member since:
    Feb 2006

    Posted 08 Mar 2013 Link to this post

    I have added extra buttons to the editor toolbar server side.
    e.g.
     EditorTool PasteFromWord = new EditorTool();
                        PasteFromWord.Name = "PasteFromWord";                   
                        mainGroup.Tools.Add(PasteFromWord);

    The tool buttons appear on the editor as expected.
    However when i press the full screen button the full screen editor does not have the buttons i created, but only a limited set.

    i.e. bold,italic, underline,numbered,copy,cut,paste,undo,full screen,spell check
  2. Rumen
    Admin
    Rumen avatar
    14080 posts

    Posted 08 Mar 2013 Link to this post

    Hi,

    Are all buttons visible in standard view mode? Does the problem happen only in full screen mode?

    Have you fired the EnsureToolsFileLoaded() method before adding the custom buttons to the RadEditor1.Tools collection?

    If the problem happens in full screen mode, make sure that the ContentAreaMode property is set to Iframe, because currently there is a problem with the full screen mode in the Div mode.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. jo
    jo avatar
    7 posts
    Member since:
    Feb 2006

    Posted 08 Mar 2013 Link to this post

    Buttons are visible in standard mode but not in full screen mode.

    EnsureToolsFileLoaded()  i don't know what this is, is it client or server side ?

    This script is triggered when the full screen button is pressed. (it is created server side )
     script.Append(@"Telerik.Web.UI.Editor.CommandList['ToggleScreenMode'] = function(commandName, editor, args) {
                            {

                                var editorWindow = $find(AdvancedEditorWindow);
                                if (editorWindow.isVisible()) {

                                    SetEditorContent(editor.get_html(true));
                                    editorWindow.close();

                                }
                                else {
                                    sourceEditor = editor;
                                    editorContent = editor.get_html(true); //get RadEditor content
                                    editorWindow.show(); //open RadWindow
                                }
                            }
                        };");

    IFrame mode is selected.
  4. jo
    jo avatar
    7 posts
    Member since:
    Feb 2006

    Posted 13 Mar 2013 Link to this post

    Hello,

    The reason they are missing is that there are two rad editors, one for normal and one for fullscreen mode.
    The tool buttons were not added to the full screen one. It works now.

    The javacript snippet seems to copy the content from one editor to the other and vice versa when the full screen button is pressed.

    I am slightly amused as to why it is done this way and I cannot consult the developer who implemented this.

    Can anyone explain why there would be a need for the two editors?
  5. Rumen
    Admin
    Rumen avatar
    14080 posts

    Posted 13 Mar 2013 Link to this post

    Hello,

    There are sometimes problems with the full screen mode and if there is no workaround I personally suggest to try the solution in this KB article Different Set Of Tools When Switching To Full Screen Mode. It could be the same case in your project.

    Best regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top