Prevent wp_editor to alter initial content

Xaver

I'm trying to load a complete HTML page (including doctype, head and style section)

When I switch to visual tinyMCE removes all "invalid" tags like the body tag, meta tags etc.

It even wraps the title tag into p tags

How can I prevent this?

This is how I insert the wp_editor:

wp_editor('', 'my-editor', array('wpautop' => false, 'media_buttons' => false, 'textarea_rows' => 88,'teeny' => true, 'quicktags' => true) ); 
Thariama

This is due to the fact that most rte editor use a contenteditable iframe and the content goes into the body. No browser will allow this, becasue it is not valid html. It gets then kicked out by the browser.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Javascript tabs initial content

From Dev

Using javascript to alter content of a <div>

From Dev

Copy node and alter its content

From Dev

prevent initial delay in ajax autoreload

From Dev

load wordpress wp_editor dynamically (ajax)

From Dev

Replacing a textarea with WordPress TinyMCE wp_editor()

From Dev

wordpress how to add wp_editor in an array

From Dev

Include TinyMCE plugins with Wordpress wp_editor?

From Dev

Using wp_editor output correctly

From Dev

Replacing a textarea with WordPress TinyMCE wp_editor()

From Dev

Error in buddypress when using wp_editor

From Dev

How to detect changes in wp_editor?

From Dev

WP Editor - wp_editor() is not showing properly on ajax call

From Dev

wp_editor: How to load wp_editor on demand using jQuery?

From Dev

Array with initial content that is determined by function

From Dev

How to alter content generated by Veiws module?

From Dev

Prevent div content to wrap

From Dev

Prevent initial select option being blank in Angular

From Dev

WordPress wp_editor removes html tags - how to stop it?

From Dev

<p></p> missing with wp_editor( get_option() );

From Dev

using wp_editor to edit post title on the front end

From Dev

How to properly use wp_editor() from frontend

From Dev

WP 8.1 Universal: Prevent ScrollViewer from automatically moving scrolled content to left edge

From Dev

Prevent rowversion (timestamp) column from changing ALTER TABLE COLUMN

From Dev

How to prevent tinymce editor content from users modifying. user should not edit the content. How to do using angularjs

From Dev

What is the convention for the content of an initial/first git commit?

From Dev

Prevent appending duplicated content in jQuery

From Dev

Prevent overflow by scaling content smaller

From Dev

Prevent fixed header to overlapp content

Related Related

  1. 1

    Javascript tabs initial content

  2. 2

    Using javascript to alter content of a <div>

  3. 3

    Copy node and alter its content

  4. 4

    prevent initial delay in ajax autoreload

  5. 5

    load wordpress wp_editor dynamically (ajax)

  6. 6

    Replacing a textarea with WordPress TinyMCE wp_editor()

  7. 7

    wordpress how to add wp_editor in an array

  8. 8

    Include TinyMCE plugins with Wordpress wp_editor?

  9. 9

    Using wp_editor output correctly

  10. 10

    Replacing a textarea with WordPress TinyMCE wp_editor()

  11. 11

    Error in buddypress when using wp_editor

  12. 12

    How to detect changes in wp_editor?

  13. 13

    WP Editor - wp_editor() is not showing properly on ajax call

  14. 14

    wp_editor: How to load wp_editor on demand using jQuery?

  15. 15

    Array with initial content that is determined by function

  16. 16

    How to alter content generated by Veiws module?

  17. 17

    Prevent div content to wrap

  18. 18

    Prevent initial select option being blank in Angular

  19. 19

    WordPress wp_editor removes html tags - how to stop it?

  20. 20

    <p></p> missing with wp_editor( get_option() );

  21. 21

    using wp_editor to edit post title on the front end

  22. 22

    How to properly use wp_editor() from frontend

  23. 23

    WP 8.1 Universal: Prevent ScrollViewer from automatically moving scrolled content to left edge

  24. 24

    Prevent rowversion (timestamp) column from changing ALTER TABLE COLUMN

  25. 25

    How to prevent tinymce editor content from users modifying. user should not edit the content. How to do using angularjs

  26. 26

    What is the convention for the content of an initial/first git commit?

  27. 27

    Prevent appending duplicated content in jQuery

  28. 28

    Prevent overflow by scaling content smaller

  29. 29

    Prevent fixed header to overlapp content

HotTag

Archive