1
vote
0answers
141 views

Wordpress editor strips out anchor tags when they appear on their own line

In the text below, when I toggle the WYSIWYG view from Visual to Text, the anchors are left intact. However, when I switch back to Visual, the anchors are replaced with   elements. This is ...
1
vote
0answers
73 views

TinyMCE strips breaks inside editor

the posts are shown correctly in the frontend. But when i go to edit, the content inside tinyMCE is without breaks ?! So i have to copy my content from frontend and paste it to the editor every time i ...
12
votes
2answers
1k views

Switch between Visual and HTML tab freely

So this question has been raised many times under different flags, however I'd like to present a unified thread for an ultimate solution to this issue. In WordPress, by default, when switching back ...
0
votes
2answers
173 views

Wordpress stripping out BR tags, need assistance

Im having a problem where WP for some odd reason is stripping out my BR tags. Ive looked online and have read a few solutions that people offered including the installation of TinyMCE advanced plugin ...
1
vote
1answer
1k views

Removing unneccessary p-tags (Not every p)

I removed wpautop from my theme: function disable_linebreaks($content) { remove_filter ('the_content','wpautop'); return $content; } add_filter('the_content','disable_linebreaks',1); ...
4
votes
1answer
165 views

Numbering sections and block-level elements in wpautop(); Wordpress as CMS for long-form writing;

I am starting to learn how to write plugins for Wordpress. I'm interested in using WP as a CMS for long essays (6000-9000 words or more). My problem is what I call the Kindle problem, which is how do ...
0
votes
1answer
858 views

Removing <p> tags around <div> tags

I’d like to stop WP from wrapping <p> tags around <div> tags in the TineMCE editor … Here’s what I’ve got: function filter_ptags_on_images($content) { return ...
2
votes
3answers
6k views

Stop editor from removing <p> tags and replacing them with nbsp

When I enter content in posts/pages' WYSIWYG editor, I do not get <p> when ending paragraphs, just &nbsps. If I manually place <p></p> in the HTML mode, they are stripped as ...
0
votes
2answers
893 views

Cannot get <p> tags working from a WPAlchemy metabox with wp_editor()

I'm using WPAlchemy on a project. For a template, I need to use a custom metabox which is working fine with a tinyMCE editor. Code to insert the meta box on the template (this is a piece of code ...
5
votes
4answers
2k views

No filter of code on switch from html to visual editor, how?

Yes, i have found other questions to this topic, but no have the same topic exactly and no solution for my problem. If you include code inside the html-tab and you switch to the visual mode, then ...
0
votes
2answers
499 views

TinyMCE - no auto formatting using the_editor()?

I'm embedding the_editor on a admin page: <?php the_editor(get_option('options_name'),'options_name'); ?> And everything works fine, at least in back-end: BUT on the front-end side I'm ...