WordPress.org

Forums

Visual Editor Rewriting And Mangling Code...How About A Useful WYSIWYG Editor? (2 posts)

  1. dainismichel
    Member
    Posted 4 years ago #

    Well, this post is 2 years old and closed (for some reason)

    http://wordpress.org/support/topic/156276

    and even with

    http://www.engfers.com/plugins/tinymce-valid-elements/

    enabled, the Visual Editor is taking this

    <div class="flashunit">
    <h2 style="color: rgb(0, 0, 153); font-weight: bold;">Is Tinnitus
    Curable?</h2>
    
    <object class="flashvideo" type="application/x-shockwave-flash"
    data="http://www.youtube.com/v/q2uLI4HrzCo&rel=0"> <param name="movie"
    value="http://www.youtube.com/v/q2uLI4HrzCo&rel=0"> </object>
    <p>Dainis W. Michel of CureTinnitus.org interviews Kevin Hogan,
    Julian
    Cowan Hill, Paul Tobey and Dr. Hans Greuel about the curability of
    tinnitus.</p>
    </div>

    and turning it in to this:

    <div class="flashunit">
    <h2 style="color: #000099; font-weight: bold;">Is Tinnitus Curable?</h2>
    <p><object><param name="data" value="http://www.youtube.com/v/q2uLI4HrzCo&rel=0" /><param name="src" value="http://www.youtube.com/v/q2uLI4HrzCo&rel=0" /><embed type="application/x-shockwave-flash" width="100" height="100" src="http://www.youtube.com/v/q2uLI4HrzCo&rel=0" data="http://www.youtube.com/v/q2uLI4HrzCo&rel=0"></embed></object></p>
    <p>Dainis W. Michel of CureTinnitus.org interviews Kevin Hogan, Julian Cowan Hill, Paul Tobey and Dr. Hans Greuel about the curability of tinnitus.</p>
    </div>
    • Is there a visual editor that is just a visual editor and not a "code fixer?"
    • Why has this issue persisted this long?
    • Do I really have to copy and paste my code into an external non-code-damaging visual/code editor and then copy and paste into WordPress?
  2. dainismichel
    Member
    Posted 4 years ago #

    the parameters i set within tinymce-valid-elements are object, embed, param, and div

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.