• Resolved chrisdivyak

    (@chrisdivyak)


    I am having trouble with my paragraph tags disappearing when I go between HTML and Visual modes in WordPress. It works fine until I switch to the Visual editor which shows the paragraph styling and then when I go to update (or back to HTML mode) it strips all of my paragraph tags. I feel that this is an easy fix but I haven’t found one that worked.

    I have also tried toggling on and off the “Disable wpautop” which doesn’t make a difference either way. Any help would be greatly appreciated.

    http://wordpress.org/extend/plugins/ultimate-tinymce/

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Josh

    (@josh401)

    I have added the P and BR tags buttons into both the visual and the text modes of the editor.

    I’m gonna mark this as Resolved. If anyone feels differently… I’ll change it back.

    Also.. I’m open to any feedback with the buttons.

    Thanks!!

    Dear Josh,

    Does your plugin “force” WordPress to display the p and br tags in the “visual” mode? or just make it easy for users to insert them?

    I know I have these tags in my posts but as you know wordpress strips them out.

    Basically I want to be able to “SEE” all of my code.

    Plugin Author Josh

    (@josh401)

    Well.. it doesn’t really “force” the tags to be allowed. What it does is add a class of “none” to the tag… rendering it a valid tag.

    So yes, you will be able to “see” them when switching between views. You won’t see them in the visual mode.. as this would defeat the purpose. However, if you switch back and forth all day long.. you will still be able to see the tags in the “text” view.

    I don’t know of any plugin which would show those tags in the visual editor.

    I mispoke, I meant to say Text View (which I think of as the Visual).

    Is there problem or conflict if I have already added custom functions to prevent stripping of BR and P tags? (In other words Everything is working fine, but I can’t see them which makes it hard to edit.

    Plugin Author Josh

    (@josh401)

    I mean.. it’s certainly possible. Have you added custom functions? Are you using a child theme?

    It shows them in my test sites content editors.. so I would think they would show in all themes… unless you have something telling it not to??

    Yes, custom functions added
    Yes, child theme.

    I just thought I’d ask before I tried it.

    SO, I tried, it still don’t see any P or BR tags in Text View. Perhaps my custom functions are interefering…

    Plugin Author Josh

    (@josh401)

    Can you post them on pastebin.com? Then, post here the link they give you after you submit your code. That way, I can take a look at it and see if anything jumps out.

    Plugin Author Josh

    (@josh401)

    Yea, that first function is altering the output of the content variable, which is the content of your post/page.

    You can test it by commenting out that first function, refreshing your browser cache, and looking at a post/page to see if those tags show up.

    Here is a pastebin, which shows the top function commented out:
    http://pastebin.com/PfZgGR2X

    Interesting, I did that and it took care of it but it reveals another problem with the gallery, There two br tags at end of the gallery (clear both), These seem totally unnecessary – Not your problem but interesting.
    I think 1 br tag is reasonable, 2 seems silly. If I want more space I will hit return to add a P tag.

    This page has an interesting solution which I’m going to try.

    Tried it but it caused other problems, Thanks for your help anyway. I truly appreciate it.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘paragraph tags disappear between html and visual’ is closed to new replies.