This is a migrated thread and some comments may be shown as answers.

Tool buttons missing in full screen mode

4 Answers 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
jo
Top achievements
Rank 1
jo asked on 08 Mar 2013, 12:19 PM
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

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Mar 2013, 02:41 PM
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.
0
jo
Top achievements
Rank 1
answered on 08 Mar 2013, 04:50 PM
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.
0
jo
Top achievements
Rank 1
answered on 13 Mar 2013, 10:20 AM
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?
0
Rumen
Telerik team
answered on 13 Mar 2013, 12:07 PM
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.
Tags
Editor
Asked by
jo
Top achievements
Rank 1
Answers by
Rumen
Telerik team
jo
Top achievements
Rank 1
Share this question
or