Smiley Dialog box

Smiley Dialog box

by Stephanie D'Silva -
Number of replies: 4

Hi,

I've got a quick question about the HTML editor and the smilies.

I've got icons that are bigger than the little popup allows. Is it possible to edit the file to either

  • make the box expandable by the user (drag out the corner)
  • allow the user to maximise or
  • change the dimensions of the box in the corresponding file

??

I've tried editing the file (dlg_ins_smile.php) within the lib/editor/htmlarea/popups but nothing makes the box bigger...

I possibly haven't tried enough things...but if anyone knows which codes need to be changed, it would be much appreciated!

Thanks,

Stephanie

Average of ratings: -
In reply to Stephanie D'Silva

Re: Smiley Dialog box

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Elsewhere in the editor code is a switch statement where the sizes of these dialog boxes is set. Seach every file in that folder for the text 'dlg_ins_smile' and you should find it.
In reply to Tim Hunt

Re: Smiley Dialog box

by Stephanie D'Silva -
Thanks for replying Tim!
I've been editing the 'dlg_ins_smile.php' without any luck.
The only things I've able to change and see an effect was the cell padding - which has helped a little bit, but not greatly.
I've also tried editing the width and height, but this doesn't enlarge the box.
Is there a particular line of code which needs to be altered?

Thanks again!

In reply to Stephanie D'Silva

Re: Smiley Dialog box

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
So, are you editing

case "dlg_ins_smile": x = 330; y = 320; break;

That is, line 35 of lib/editor/htmlarea/dialog.js?

As far as I can see that should work, but I don't know. I just saw that code in passing the other day. I have never tried changing it.
In reply to Tim Hunt

Re: Smiley Dialog box

by Stephanie D'Silva -
I was only editing the php file! No wonder I didn't see it!
However, editing x & y does nothing...

Thanks anyway Tim!