Forums

Editing the img quicktag (5 posts)

  1. shadow
    Moderator
    Posted 4 years ago #

    Hi,

    I did this ages ago but have since forgotten how. I would like to edit the img quicktag so that it reads http://mysite.com/image directory instead of just http:// as it is now.

    Can anyone remember where you do that? I thought it would be in the quicktag.js file but it doesn't appear to work when I edit that.

  2. macmanx
    Member
    Posted 4 years ago #

  3. shadow
    Moderator
    Posted 4 years ago #

    Thanks for the suggestion macmanx, but it's not what I am after exactly. I have edited quite a few of my quicktags and added new ones but the img one is confusing me.

    I cannot see how to add the above.

    Thanks though :)

  4. Kafkaesqui
    Moderator
    Posted 4 years ago #

    In the function edInsertImage(myField) in quicktags.js (usually the last one), change this:

    var myValue = prompt('Enter the URL of the image', 'http://');

    to:

    var myValue = prompt('Enter the URL of the image', 'http://mysite.com/image-dir/');

  5. shadow
    Moderator
    Posted 4 years ago #

    @Kafkaesqui

    So there it was under my nose the whole time. I feel stupid now.

    Thanks for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.