Skip to content

Commit

Permalink
Merge pull request #115 from WordPress/improve-tinymce-testing-config
Browse files Browse the repository at this point in the history
Add extra config settings so TinyMCE demoresembles pure contenteditab…
  • Loading branch information
ellatrix authored Feb 23, 2017
2 parents 5e0a3c1 + 043d0dd commit 2afaee5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tinymce/index.html
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>
14 changes: 14 additions & 0 deletions tinymce/tinymce-config.js
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
} );

0 comments on commit 2afaee5

Please sign in to comment.