#270 ie problem when using a lot smilies

Version 2.x
closed
Editor (144)
5
2006-09-08
2006-06-08
stuckhere
No

Hi

fckeditor 2.3 beta

I'm using something like 100+ smilies.

When inserting a smilie in ie it does not appear.

This situation happens only when i insert a smilie
before other smilies had time to load into smilie
dialog window.(ie actually still tries to download
them in the background despite the dialog window is
closed)

to fix this issue i came with following simple patch:
file: fck_smiley.html
function: InsertSmiley()

function InsertSmiley( url )
{
// start adding code
var img=document.images;
for(var j=0;j<img.length;j++)
img[j].src='#';
// end adding code

var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
oImg.src = url ;
oImg.setAttribute( '_fcksavedurl', url ) ;

window.parent.Cancel() ;
}

basicly i get all the images and set their src
attribute to # so ie stops loading them.

Discussion

  • stuckhere

    stuckhere - 2006-06-08

    Logged In: YES
    user_id=1126767

    sometimes changing src isn't enough.
    in this case try this line:

    document.getElementsByTagName('body')[0].innerHTML='';

     
  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
     
  • Frederico Caldeira Knabben

    • status: open --> closed
     
  • Frederico Caldeira Knabben

    Logged In: YES
    user_id=572424

    Hi,

    This patch, or a similar implementation, has been included in
    FCKeditor and has been committed in the SVN. It will be
    available in the next release.

    For more information about the FCKeditor SVN system, please use
    the following URL:
    http://wiki.fckeditor.net/SVN

    Best regards,
    FredCK
    http://www.fckeditor.net
    "Support Open Source Software... What about a donation today?"

    PS.: This is a canned response.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks