• Resolved 21stproject

    (@21stproject)


    Before anyone jumps down my throat and tells me that I shouldn’t be using the WYSIWYG editor for HTML posts, I’m not, at least, I really, really don’t think so.

    I searched the forms and saw instructions for switching the rich text off and having the text editor on, I did this by logging on as admin, going under users and checking off the box that said “Use the visual rich editor when writing”

    My WordPress blog is all valid HTML until I start posting. The posts themselves are written in an editor (outside WP) and validated as XHTML 1.0 Transitional -same as my WP blog.

    But every time I post the page is no longer valid! I get all these tags from the post still. It’s driving me crazy.

    Admittedly though, the shorter the post, the less chance I have of this happening.

    But there’s no reason at all for this to happen, what should I do?

    If there is no solution, how do I directly upload the post to the SQL database without using WordPress’s posting ap?

    Oh and I downloaded and installed WordPress this week, not sure what version that would be, but its the latest I’m sure.

Viewing 15 replies - 16 through 30 (of 41 total)
  • Thread Starter 21stproject

    (@21stproject)

    I’m looking…still can’t find it!

    Also, would older posts help at all if I have a newer version of wordpress?

    What kind of keywords am I looking for? Just autop?

    I can’t believe this, all the posts I come across have someone telling the poster that they should search for posts that resolve the issue since it’s been brought up so many times. I still can’t find it!

    *ouch*

    Ok, well I’d search for “autop” or “auto format” or such things. If I get time to sit and focus tonight I’ll search as well.

    [edit added: but dangit, I know I saw something here within the last few months that was useful!]

    Thread Starter 21stproject

    (@21stproject)

    Thanks for your help!

    I’ll post again if I find it, still hunting for it.

    Hello –

    I just found this thread, and it starts out with the same problem I’ve been having for a couple of days now.

    I HATE “WYSIWYG” editors. I just spent over an hour trying to put up a post that contains sections of coding, and trying to enclose that section with a ‘pre’ tag. Finally, I went into the database itself, and was able to do it in spite of the built-in editor, but it’s STILL not the way I want it exactly.

    I want to be able to design a post using a simple text editor like Notepad, and be able to post it WITHOUT having the coding changed. I’ve already checked on available plugins, and none of them allow an experienced HTML programmer to do what they want to do.

    Please, somebody, point me to a plugin that allows COMPLETE coding to be entered, without modification, into a post.

    I love thread-drift.

    @prof611: I’ll assume you’ve figured out how to turn off the wysiwyg editor(noted several posts up in this same thread).

    I tend to use this plugin for code samples in blog posts. https://blog.igeek.info/wp-plugins/igsyntax-hiliter/

    Your searching on the topic might have uncovered this older thread that has a handful of other options mentioned: https://www.ads-software.com/support/topic/55087?replies=22

    Hi. Fast reply.

    Yes, I read the whole thread, and I did uncheck everything in Writing Options before posting here. It doesn’t eliminate the WYSIWYG editor, however. My coding is still changed before it gets submitted.

    I also just read all of the stuff in the older thread that you mentioned above.

    None of this helps with my major problem: I don’t want WordPress messing with my coding at all! I just want to be able to design a post the way I want it to appear, using a simple text editor like Notepad.

    Styling “sample code” in the post is not the only problem I’ve experienced. Every HTML tag I put in gets changed by the editor to something I didn’t want! Then I have to figure out a work-around to get the post to look like I wanted it to look.

    I have spent far less time designing a whole XHTML page for one of my websites than it took me to write one post for my blog! Either I’m going to give up this blogging idea, or I’ll have to spend a lot of time writing my own plugin in order to do what I want to do. I just hope that there’s a way to avoid both alternatives.

    […]I did uncheck everything in Writing Options before posting here. It doesn’t eliminate the WYSIWYG editor, however

    Right. That won’t.

    Users -> Your Profile. Scroll down to the bottom of the page. Uncheck the option to use the visual rich editor.

    Thread Starter 21stproject

    (@21stproject)

    @prof611:
    I’m looking to do exactly what you’re trying to do, no luck so far!

    @handysolo:
    Thanks for those links, the igsyntax-hiliter plugin is going to come in useful if I can figure out how to style it, can’t seem to find proper documentation on the kind of code it generates around my code, need to style the width: https://21stproject.com/blog/

    I still can’t find that autop thing, meh. And if I did find a plugin that corrects the stuff, is it going to be compatible with igsyntax-hiliter?

    Don’t you get any of these problems?

    Re the igsyntax-hiliter width: In the ig_syntax_hilite plugin directory, it has its own CSS sheets. Width can be found in syntax_hilite_css.css. I modified mine to suit.

    The autop thing may become a personal quest… I know there’s an answer out there if we can just hit the right search terms.

    I don’t really get problems like this, no. But I don’t have much call for tabular data either. :-/ And the validation bug you’re hitting is, you have to admit, a bit obscure!

    Which reminds me: It wouldn’t hurt to put this issue in trac so that the devs know about it (or even search there). A bit of code pre and post in the trac article would be pretty helpful I bet (or even a link back to this thread).

    FWIW, I’m also aggreived by what appears to be an “autop problem”. i’ve turned off rich editor in my user profile, etc, and I generally don’t have a problem, except when I add the
    <!--more-->
    Tag in a post, it then automatically wraps it in a , which is behaviour I really do NOT want to see, as it throws an extra empty paragraph in my post. If I include the more link within the tag immediately before where I want to break, then, it really messes up validation as my paragraphs are unfinished when viewing pages that are NOT single.php.

    Any solution to this would be greatly appreciated.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    If you want to disable the wpautop functionality, add this to your theme’s functions.php file (create a new functions.php in your theme directory if you haven’t got one):
    <?php remove_filter('the_content','wpautop'); ?>

    Note that wpautop is applied when the content is *displayed*, not when you’re saving the content.

    Thread Starter 21stproject

    (@21stproject)

    The bug is very vague, I do admit, I’m going to give it another few tries till I report it in trac, I want to have enough examples so people can see what I’m talking about, maybe recreate it even. I still don’t know exactly what triggers it because shorter posts do validate.

    As far as tabular data goes, like I said, that’s not the first time I’ve encountered bougus additions, it does it when tags have attributes. But thats seemingly random as well, meh.

    And thanks for showing me where the css file is!

    Edit: didn’t see your post Otto42, I’ll give your solution a shot right now

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    There are two filters that are applied to posts after you submit them but before they are saved to the database.

    The first is “balanceTags”, and this is disabled by turning off “WordPress should correct invalidly nested XHTML automatically”.

    The second is “wp_filter_kses”, and this is disabled if the user in question has the “unfiltered_html” capability (using the Role Manager plugin). Users should have this capability by default, I believe, unless you change it.

    So the real key to this is to work out where the actual change to the post is happening. Is it happening before the post goes into the database or afterwards, when the post is displayed on the page?

    Thread Starter 21stproject

    (@21stproject)

    @otto42

    It works, when I post something the post is validated (even the post that was refusing to at the beginning), but for some reason it screws with wordpress, the post gets saved and what not, but I’m not redirected and I get this error;

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/5/d97685745/htdocs/21stproject/blog/wp-content/themes/default/functions.php:3) in /homepages/5/d97685745/htdocs/21stproject/blog/wp-admin/inline-uploading.php on line 5

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/5/d97685745/htdocs/21stproject/blog/wp-content/themes/default/functions.php:3) in /homepages/5/d97685745/htdocs/21stproject/blog/wp-admin/inline-uploading.php on line 144

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    21stproject: Make sure that your new functions.php file doesn’t do any actual output. It cannot have any spaces or before or after your new line of code! That would cause the error you’re getting.

    In other words, the very beginning of the file must be <?php and the very end of the file must be ?> with nothing else outside of those. No spaces, no blank lines, nothing.

Viewing 15 replies - 16 through 30 (of 41 total)
  • The topic ‘WordPress Editor Driving Me Insane’ is closed to new replies.