Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra config settings so TinyMCE demoresembles pure contenteditab… #115

Merged
merged 1 commit into from
Feb 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
} );