Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 12, 2022, 08:51:01 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 50
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 40
Total: 40

Author Topic: Modification on rte_image.php  (Read 1794 times)

0 Members and 1 Guest are viewing this topic.

feline

  • Guest
Modification on rte_image.php
« on: November 22, 2005, 04:46:49 PM »
Hi Bloc and all ..

a smal modifikation on rte_image.php gives a margin between pictures and text ...

insert before
Code: [Select]
    if ( isIE )
    {
this
Code: [Select]
    if (img_align.value == 'right')
    {
      var Border = 'style="margin:0px 0px 0px 4pxpx; border:' + img_border.value + 'px solid #000000;"';
    }
    else
    {
      var Border = 'style="margin:0px 4px 0px 0px; border:' + img_border.value + 'px solid #000000;"';
    }
and replace
Code: [Select]
    if ( isIE )
    {
        var img = imagePath + file + '" alt="' + file + '" title="' + file + '"' + align + Border + '>';
        window.opener.document.getElementById( rte ).contentWindow.document.execCommand( 'insertImage', false, img );
    }
    else
    {
        var img = '<img src="' + imagePath + file + '" alt="' + file +'" title="' + file + '"' + align + Border + '>';
        window.opener.document.getElementById( rte ).contentWindow.document.execCommand( 'insertHTML', false, img );
    }

Fel