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

Polish TinyMCE microprototype. #254

Merged
merged 2 commits into from
Mar 13, 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
6 changes: 4 additions & 2 deletions tinymce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TinyMCE Formatting Demo</title>
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i" rel="stylesheet">
<link href="style.css" rel="stylesheet" type="text/css" media="all">
<link rel="stylesheet" type="text/css" href="../shared/index.css">
</head>
<body>
<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 id="editor">
<p>Many entrepreneurs idolize Steve Jobs. He’s such a <a href="https://wordpress.org">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="https://fiddle.azurewebsites.net/tinymce/nightly/tinymce.min.js"></script>
<script src="../shared/tinymce/logger.js"></script>
Expand Down
13 changes: 8 additions & 5 deletions tinymce/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ body {
}

body {
font-family: Georgia, serif;
font-size: 16px;
max-width: 720px;
margin: 60px auto;
color: #12181e;
color: #191e23;
}

*[contenteditable] {
outline: none;
}

body #editor a {
color: #009fd4;
padding: 0 2px;
}

a[data-mce-selected] {
background: #bfe6ff;
background: #dcf2f8;
border-radius: 1px;
box-shadow: 0 0 0 1px #bfe6ff;
box-shadow: 0 0 0 1px #dcf2f8;
}