WordPress.org

Ready to get started?Download WordPress

Forums

text editor - remove align (11 posts)

  1. scotty666
    Member
    Posted 8 years ago #

    anyone know if its possible to replace the ALIGN option in the image with a CLASS option instead?
    also, can anyone point in the direction of any info for adding an extra button to the text editor, Im looking to add a h1 button.

  2. ladydelaluna
    Member
    Posted 8 years ago #

    http://wordpress.org/support/topic/74130?replies=10 - there's some info here... but apparantly it's easier if you're not using the rich text editor...

    as far as the replacing of the align to class, i've always just clicked the HTML button and done it manually.

  3. scotty666
    Member
    Posted 8 years ago #

    thanks for the link, Ill have a read :)
    I need to swap the ALIGN for CLASS without using HTML as Im developing the site for someone and dont want them to have to modify any code.

  4. maerk
    Member
    Posted 8 years ago #

    You could try finding the tinyMCE JS file itself, and modifying the HTML it inserts. Careful with this approach, though, it can be tricky.

    I don't know much about javascript, so I couldn't tell you how to do it, but the file ought to be in wp-includes/js/.

  5. Robert
    Member
    Posted 8 years ago #

    I've got the same problem.
    I'm looking forward to a plugin which adds some buttons and functions to the tinymce.
    At least h1, h2, h3 and a extra float-button for imgaes.

    That would be great.

  6. scotty666
    Member
    Posted 8 years ago #

    STILL trying to swap the image ALIGN for CLASS on the tinymce editor. tried about 100 different approaches, been everywhere I can think of and still no joy :(
    someones gotta know where the image dialogue box defines the alignment stuff. I just need to change 'align=right/left' to 'class=my_align_class'...

    very close to going postal with this one!!!

    anyone.......... my head hurts...........

  7. yosemite
    Member
    Posted 8 years ago #

    As mentioned, I too just click on HTML button and find the <img> tag and add at the beginning class="alignright" (removing any align=) so it looks like:
    <img class="alignright" src= and blah-blah-blah.

    This doesn't work for you?

  8. scotty666
    Member
    Posted 8 years ago #

    yeah m8 that would work (and does) but the site isnt for me and I need to avoid editing the html, unfortunatley.

  9. yosemite
    Member
    Posted 8 years ago #

    Maybe ImageManager would help then. Allows user to enter a class/title/etc. from it's upload panel/window.

  10. Robert
    Member
    Posted 7 years ago #

    I've described the solution (in German, but easy to understand with images and code) on TinyMCE anpassen

  11. keasone
    Member
    Posted 7 years ago #

    Hy! since 2.1 we all have this nice new tinymce version, most things are way better, but one GIANT things drives me crazy:

    what do i have to change to let my clients choose the image behaviour class="right" etc. for the align="right" thingie in the tinymce editor? - without doing it manually in the code!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags