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

Set All properties to InsertImage Editor Tools

5 Answers 233 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 24 Nov 2017, 01:05 PM

How to set <telerik:EditorTool Name="InsertImage" Text="Insert Image Dialog"></telerik:EditorTool> to show all properties by default ?

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Nov 2017, 03:14 PM
Hi,

Check this article: https://www.telerik.com/support/kb/aspnet-ajax/editor/details/inserting-images-from-a-remote-server.

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Leo
Top achievements
Rank 1
answered on 27 Nov 2017, 02:46 AM

I send the attachment .

There is picture with Label A and Label B. I want when I click Insert Image button, just Show Like Picture B without click All Properties in Picture A.

How to do that ?

Thanks,

 

0
Accepted
Rumen
Telerik team
answered on 27 Nov 2017, 08:35 AM
Hello Leo,

You can programmatically click the All Properties button when the InsertImage dialog is open:

<script>
    function OnClientCommandExecuted(editor, args) {
        if(args.get_commandName() =="InsertImage") {
            $get(editor.get_id()+"_iplAllProperties").click();
        }
    }
</script>
<telerik:radeditor runat="server" ID="RadEditor1" OnClientCommandExecuted="OnClientCommandExecuted" Height="400px"
    <Tools>  
        <telerik:EditorToolGroup>  
                <telerik:EditorTool Name="InsertImage" Text="Insert Image Dialog"></telerik:EditorTool>
        </telerik:EditorToolGroup>                 
    </Tools>                       
</telerik:radeditor>




Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Leo
Top achievements
Rank 1
answered on 27 Dec 2017, 06:57 AM

I have another problem when call InsertImage Tools. How to set height of the popup InsertImage, because in firefox need to scroll.

I attached picture.

0
Marin Bratanov
Telerik team
answered on 01 Jan 2018, 12:28 PM

Hello,

Can you reproduce this behavior with this demo: https://demos.telerik.com/aspnet-ajax/editor/examples/built-in-dialogs/defaultcs.aspx? I am attaching screenshots of what I get, which is the expected behavior.

What I can suggest at this point is the following:

To answer the concrete question on how to change the size - this is done with CSS: https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/changes-and-backwards-compatibility/the-autosize-feature-of-the-built-in-dialogs-is-enabled#how-to-set-a-custom-size-for-a-built-in-dialog. With the simple InsertImage tool you can just add a simple CSS rule to the page since this dialog is not loaded in an iframe:

<style>
    .reInsertImageWrapper {
        width: 600px !important;
        height: 600px !important;
    }
</style>
<telerik:RadEditor runat="server" ID="re1">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="InsertImage" Text="Insert Image Dialog"></telerik:EditorTool>
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>


Regards,

Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Leo
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Leo
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or