Last active
November 20, 2019 02:35
-
-
Save branflake2267/3522f3bd1071909aff3040bc988e82ca to your computer and use it in GitHub Desktop.
Froala editor example using requirejs.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Froala Editor JavaScript Demo</title> | |
<!-- 1. Include Froala Editor style --> | |
<link href='https://cdn.jsdelivr.net/npm/[email protected]/css/froala_editor.pkgd.min.css' rel='stylesheet' | |
type='text/css' /> | |
<!-- 1. Include Froala Editor --> | |
<script src='https://cdn.jsdelivr.net/npm/[email protected]/js/froala_editor.pkgd.min.js'></script> | |
</head> | |
<body> | |
<style> | |
#editor { | |
margin: 50px; | |
} | |
</style> | |
<script> | |
window.addEventListener('DOMContentLoaded', (event) => { | |
// 3. Render the editor when the DOM is ready | |
new FroalaEditor('#editor'); | |
}); | |
</script> | |
<!-- 2. Declare where the editor will render --> | |
<div id='editor'></div> | |
</body> | |
</html> |
Author
branflake2267
commented
Nov 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment