VIew HTML popup

2 Answers 112 Views
Editor
Paweł Korczak
Top achievements
Rank 1
Iron
Paweł Korczak asked on 02 Mar 2023, 11:05 AM
But there are still a few little things.

When you press ENTER it still doesn't look great.
Oh and one more thing - how to set the width and height of the popup window..
And how to remember the last frame width and height.
Note I have three such editors in one frame

I have a recording:
https://watch.screencastify.com/v/lpBHsoWj1kuYKx5CgMiD

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 03 Mar 2023, 07:58 AM

Hi Paweł,

The current implementation of the Editor does not expose a configuration option or method that would allow you to change the size of the View HTML window. You can, however, handle the execute event and monitor for the execution of the "viewhtml" command. Once executed you can get a reference to the window and set its dimensions using jQuery:

execute:function(e){
          if(e.name == "viewhtml"){
            setTimeout(function(){
              $('.k-editor-dialog.k-popup-edit-form.k-viewhtml-dialog.k-window-content').parent().height(500);
              $('.k-editor-dialog.k-popup-edit-form.k-viewhtml-dialog.k-window-content').parent().width(800);
            })
          }
        }

Dojo demo: https://dojo.telerik.com/uTEBajIm

I hope this is what you are looking for.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Paweł Korczak
Top achievements
Rank 1
Iron
answered on 03 Mar 2023, 10:09 AM

Hello
Thanks for the help ...
I've built some for an app

http://dojo.telerik.com/ivIPUzAb

Post it on the forum for others


Regards

Paweł

Nikolay
Telerik team
commented on 06 Mar 2023, 07:18 AM

Hi Paweł,

I ma glad to hear this is what you were looking for.

This is now a public forum thread where anyone can see it and benefit from it.

Regards,

Nikolay

Tags
Editor
Asked by
Paweł Korczak
Top achievements
Rank 1
Iron
Answers by
Nikolay
Telerik team
Paweł Korczak
Top achievements
Rank 1
Iron
Share this question
or