Skip to content

Instantly share code, notes, and snippets.

@AwesomeZaidi
Created October 22, 2019 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AwesomeZaidi/82e20fc7a39ab9d86a31f22c84ce1fc4 to your computer and use it in GitHub Desktop.
Save AwesomeZaidi/82e20fc7a39ab9d86a31f22c84ce1fc4 to your computer and use it in GitHub Desktop.
Tiny Rich Text Editor Demo
<!DOCTYPE html>
<html>
<head>
<!-- <script src='https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js' referrerpolicy="origin"></script> -->
<script>
tinymce.init({
selector: '#mytextarea'
});
</script>
</head>
<body>
<h1>TinyMCE Quick Start Guide</h1>
<form id="myForm" action="/action_page.php">
<textarea id="mytextarea" name="mytextarea">Hello, World!</textarea>
<button type="button" onclick="myFunction()">Done</button>
</form>
</body>
<script>
function myFunction() {
document.getElementById("myForm").submit();
}
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment