'tinyMCE - disable source formatting completely
I want to turn off source formatting completely when inserting code (to Source code) into Tiny Mce
Right now title, meta, and link etc. tags are deleted
Example:
<meta name="page_type" content="np-template-header-footer-from-plugin">
<title>Main</title>
<link rel="stylesheet" href="http://test.com/page/page.css" media="screen">
Settings:
extended_valid_elements: "*[*]",
valid_elements: "*[*]",
valid_children: "*[*]",
verify_html: false,
image_advtab: true,
image_dimensions: false,
cleanup_on_startup: false,
cleanup: false,
trim_span_elements: false,
verify_html: false,
keep_styles: false,
visualblocks_default_state: false,
forced_root_block: false,
force_br_newlines: true,
force_p_newlines: false,
remove_linebreaks: false,
apply_source_formatting: false,
remove_trailing_brs: false,
Tiny MCE cloud demo with settings: https://fiddle.tiny.cloud/Baiaab/13
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
