UNPKG

knockout-froala

Version:

Knockout.js binding for Froala WYSIWYG HTML Rich Text Editor

103 lines (86 loc) 6.53 kB
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Knockout Froala Demo</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Froala files --> <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/froala_editor.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/froala_style.min.css" /> <!-- Froala plugin stylesheets, remove what you don't need --> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/char_counter.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/code_view.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/colors.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/draggable.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/emoticons.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/file.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/files_manager.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/fullscreen.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/image.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/image_manager.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/line_breaker.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/quick_insert.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/table.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/video.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/plugins/markdown.min.css" /> <link rel="stylesheet" href="../bower_components/froala-wysiwyg-editor/css/themes/gray.min.css" /> <!-- Include TUI CSS. --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tui-image-editor@3.2.2/dist/tui-image-editor.css"> <link rel="stylesheet" href="https://uicdn.toast.com/tui-color-picker/latest/tui-color-picker.css"> </head> <body> <div id="app"> <h3> Editor </h3> <textarea data-bind="value: html, froala: html, froalaOptions: options"></textarea> <br> <h3> Preview Output </h3> <hr> <pre data-bind="html: html"></pre> <hr> <br> </div> <script src="../bower_components/froala-wysiwyg-editor/js/froala_editor.min.js"></script> <!-- Froala plugins, remove what you don't need --> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/align.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/char_counter.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/code_beautifier.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/code_view.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/colors.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/draggable.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/emoticons.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/entities.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/file.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/files_manager.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/font_family.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/font_size.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/fullscreen.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/image.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/image_manager.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/inline_style.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/line_breaker.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/link.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/lists.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/paragraph_format.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/paragraph_style.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/quick_insert.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/quote.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/table.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/save.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/url.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/video.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/markdown.min.js"></script> <script src="../bower_components/froala-wysiwyg-editor/js/plugins/track_changes.min.js"></script> <script src="../bower_components/knockout/dist/knockout.debug.js"></script> <!-- Include TUI JS. --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.6.7/fabric.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/tui-code-snippet@1.4.0/dist/tui-code-snippet.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/tui-image-editor@3.2.2/dist/tui-image-editor.min.js"></script> <!-- Include TUI plugin. --> <script type="text/javascript" src="../bower_components/froala-wysiwyg-editor/js/third_party/image_tui.min.js"></script> <script src="../src/knockout-froala.js"></script> <script src="app.js"></script> </body> </html>