• i was wandering if there was an hack or a plugin to add padding ability in post editor instead of vspace or hspace…
    something that can automatically add a style=”padding:Xpx Ypx Zpx Kpx” inside the post code maybe a modified image properties popup box

Viewing 4 replies - 16 through 19 (of 19 total)
  • I have found this file in the js folder:

    “wp-includes/js/tinymce/tiny_mce.js”

    There appears to be some stuff there that could be possibly changed to fix the editor, the weird thing is though when I edit the file the visual editor disappears when I reload the page. Then if I put the tiny_mce.js file back to the way it was it still comes up with errors. I have to delete the whole JS folder and replace to fix, any ideas why?

    Cheers

    Just a note to future people who find this…

    Just wanted to follow up this, I have tried to edit the Javascript file (wp-includes/js/quicktags.js) and it doesn’t change the buttons on the visual editor.

    quicktags.js has absolutely *nothing* to do with the Visual Editor. You can edit that file to hell and back, but nothing will come of it as long as you use the WYSIWYG – that file only affects the quicktags.

    Hi there,

    I have some thoughts and questions about images.

    First of all: Why do you need “display: inline;” for the left and right aligned images? Seem to show the same without it.

    Second: Why is the top margin set to 0px and why is there padding? Instead of just adjust all (top, right, bottom, left) only with margin? I have done this in my blog. You can see an example in this post:

    https://mickej.se/blogg/tallinnkryssningen

    In my CSS I have:

    img.alignright {
    margin: 10px 0px 7px 14px;
    float: right;
    }

    Third: If not touching the original wordpress style sheet at all. And using the ordinary align=”right”. Why does it show up like this

    https://bilder.mickej.se/wordpress.PNG

    instead of this

    https://bilder.mickej.se/orig.PNG

    Don’t care about the font beeing Times New Roman att the second one. Did’n care to change.

    No. I’m not good at CSS. ??

    Looking forward to answers and/or thoughts.


    Micke

    Hi mickej, I don’t have much time on my hands, so can’t take a good look, but there appears to be a problem with the HTML for both of your page examples. If you view the source, it comes up with a load of jumbled code, not HTML. Also, it appears neither of them are receiving and styling. Is this correct?

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘add padding to images in editor’ is closed to new replies.