-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from WordPress/improve-tinymce-testing-config
Add extra config settings so TinyMCE demoresembles pure contenteditab…
- Loading branch information
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>TinyMCE Formatting Demo</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link href="style.css" rel="stylesheet" type="text/css" media="all"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.5.3/tinymce.min.js"></script> | ||
<script>tinymce.init( { selector: 'section' } );</script> | ||
</head> | ||
<body> | ||
<section class="editor" contenteditable="true"> | ||
<section> | ||
<p>Many entrepreneurs idolize Steve Jobs. He’s such a <a href="">perfectionist</a>, they say. Nothing leaves the doors of 1 Infinite Loop in Cupertino without a polish and finish that makes geeks everywhere drool. No compromise!</p> | ||
</section> | ||
<script src="http://fiddle.tinymce.com/tinymce/nightly/tinymce.js"></script> | ||
<script src="tinymce-config.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
window.tinymce.init( { | ||
browser_spellcheck: true, | ||
// Enter twice in a nested block creates a fresh paragraph. | ||
end_container_on_empty_block: true, | ||
inline: true, | ||
// Enter creates a fresh paragraph. | ||
keep_styles: false, | ||
menubar: false, | ||
object_resizing: false, | ||
schema: 'html5-strict', | ||
selector: 'section', | ||
theme: false, | ||
toolbar: false | ||
} ); |