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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:51:10 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 208
  • Total: 209
  • illori

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