TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 25, 2024, 10:34:36 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 194
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 179
  • Total: 179

Modification on rte_image.php

Started by feline, November 22, 2005, 11:46:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

feline

Hi Bloc and all ..

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

insert before
    if ( isIE )
    {

this
    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
    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