• When clicking on the IMG quicktag, you are asked for the url and to add some alt text. I’d like to edit this to it asks you where you’d like to position it. So it’l add align=”” to the code, and all i have to do is enter “left” or “right” etc..
    Where is this file located? When editing quicktags.js, it only referenced “special case” or something..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cynikalsam

    (@cynikalsam)

    OK i found it. It was at the bottom of the quicktags.js file. I edited it so that the url to my images directory was inserted by default, leaving me only to type in the filename and not the full url. I also added the align=” to the code, allowing for quick and easy positioning.
    Just thought some of you would find that usefull.

    OK , i think i found the “solution”. if you are using the Wp2.0.x then look at the file “tiny_mce.js” in wp-includes\js\tinymce\ .

    open it with text editor and go to line 2647:
    ————–
    tinyMCE.setAttrib(this.imgElement, 'algin', align);
    ————–

    change align to class like this:
    ——–
    tinyMCE.setAttrib(this.imgElement, 'class', align);
    ——–

    now go to the Rich text editor in wordpress admin page and write something and put an image. check the html source and u will see the align=left is now class=left. It’s up to you the “design” the float thing in css.

    backup your file before hacking, work for me but maybe not for you.

    / https://www.vietzon.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IMG Quicktag’ is closed to new replies.