• Why does the TinyMCE editor keep adding
    line breaks to textarea content…? That’s just wrong.

    If I enter this in the WYSIWYG editor, for example:

    <textarea cols="40" rows="7" name="textarea">
    line 1
    line 2
    line 3
    </textarea>

    once saved it comes out like this:

    <textarea cols="40" rows="7" name="textarea"><br />
    line 1<br />
    line 2<br />
    line 3<br />
    </textarea>

    What a heck?

    What if I want the content within the textarea to not have any added tags no matter what…? What am I, stuck in that case?

Viewing 13 replies - 1 through 13 (of 13 total)
  • There is something very wrong with 2.9.1 and the new TinyMCE.

    It seems to suffer from MS Word idiot style code and bloat. It needs fixing or removing now.

    See also: https://www.ads-software.com/support/topic/353182?replies=1#post-1354890

    and: https://www.ads-software.com/support/topic/352553?replies=3

    Thread Starter CrazySerb

    (@crazyserb)

    Well hopefully in WordPress 3 they take into consideration the last updated version of TinyMCE

    And yes, I’ve noticed all kinds of funky annoying “features” where <p align=”center”> is replaced with something totally different or removed completely… and <div> tags are being rewritten and moved around too.

    What a hell… can’t we have a wysiwyg editor with an option NOT to mess with the code placed in it? I mean, I see how valuable the feature to clean up the code and automatically add certain formatting to text can be be to some… but there’s a whole forest of people wanting an editor that won’t slap its own flavor of coding on top of our code.

    Right now, on one of the sites I can’t even directly edit the content inside that tinymce editor… I have to copy it to a text editor, edit it there and paste it back into wordpress in order to preserve all the changes in it and not have them lost by tinymce.

    It’s called HTML mode.. WYSYWIG is exactly that.. What You See Is What You Get. Almost all WYSYWIGS parse the textarea with some kind of nl2br() function. Learn to use the technology and stop blaming software for your idiocy.

    Try this in the great 2.9.2 ‘s great editor.. 2.8.x was ok.

    Switch to Visual mode
    Type: Centered Text
    Click center.

    Looks centered and fine. WYSYWIG

    Still in Visual mode, Do a select all on the text and cut it.
    Paste it back. (Still in Visual mode)

    Formatting is lost..

    This editor now borders on ludicrous. I really like WP and have been using it for 3-4 years now but TinyMCE is just too temperamental. I have been screwing around with one page for 2 days now.

    Robert

    (@robertjakobson)

    Clay, stop calling people idiots.

    The problem with the visual editor of WordPress is that most people do NOT – You hear me? – do NOT get what they see. So this is not What You See Is What You Get.

    Line breaks do not work. I mean line breaks in the year of 2010 Common Era do not work in WordPress, how awful and uncreative can it get?

    When I add linebreaks to text they are taken out after saving – worst of all – some are taken out, some are not, it is total chaos. WordPress then adds another div with a seperate class for paragraphs imported into it via paste.

    You see, now nothing is as it seems this is not what you see is what you get.

    Stop calling people idiots. Apologize.

    @Clay… come on man… not cool to call people names..

    Ok guys and gals, thanks to the good nature of Google (the search not the company, not that there is anything wrong with the company) I found a line of code that works instead of both CSS and HTML line breaks that WordPress TinyMCE can’t fathorm; like robertjakobson said I mean line breaks in the year of 2010, I digress. Anyway here it is: <br clear=”none” />

    Cool ocube!

    Only thing is that there are non-coders out there using these sites and they will know nothing of code.

    WordPress – is there a fix for this? It is a real and ongoing issue.

    @juliedc If you knew me, you will know I fall into the ‘none-coders’ category so I agree completely WP really need to sort this out, line break is so basic we shouldn’t even be talking about it. Its like not being able to make text bold…

    This will become more important as MU gains traction since it will be all sorts of people using the editor not just programmers.

    It would be great if someone from WordPress could weigh in on this!

    WP 3.0 cannot get a line break or paragraph return. Any help from WordPress on a fix would be great. Thanks!

    Is there another forum where we might get an answer on this? I’m in the same boat.

    Jordan

    (@wolf530)

    Ditto here – having the exact same problem. It occurs for even without the visual editor. WP still adds the linebreaks on every save.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘TinyMCE Editor adding line breaks to Textarea content – WHY?!’ is closed to new replies.