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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 363
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 192
  • Total: 192

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

This website is proudly hosted on Crocweb Cloud Website Hosting.