ref: master
public/javascripts/tinymce/tests/manual/dragdrop.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
<!DOCTYPE html> <html> <head> <title>Drag/drop test</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /> <!-- <script type="text/javascript">less = {env: "development", async: false};</script> <link rel="stylesheet/less" type="text/css" href="../../js/tinymce/skins/lightgray/skin.dev.less"> <script src="../../node_modules/less/dist/less-1.4.2.min.js"></script> --> <script src="../../js/tinymce/tinymce.dev.js"></script> <script src="../../js/tinymce/plugins/table/plugin.dev.js"></script> <script src="../../js/tinymce/plugins/paste/plugin.dev.js"></script> <script src="../../js/tinymce/plugins/spellchecker/plugin.dev.js"></script> <script> tinymce.init({ selector: "textarea", plugins: [ "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "save table contextmenu directionality emoticons template paste textcolor importcss colorpicker textpattern" ], content_css: "css/development.css", add_unload_trigger: false, setup: function(ed) { /*ed.on( 'Init PreInit PostRender PreProcess PostProcess BeforeExecCommand ExecCommand Activate Deactivate ' + 'NodeChange SetAttrib Load Save BeforeSetContent SetContent BeforeGetContent GetContent Remove Show Hide' + 'Change Undo Redo AddUndo BeforeAddUndo', function(e) { console.log(e.type, e); });*/ } }); if (!window.console) { window.console = { log: function() { tinymce.$('<div></div>').text(tinymce.grep(arguments).join(' ')).appendTo(document.body); } }; } </script> </head> <body> <textarea rows="15" cols="80" style="width: 80%"> <p> text <img src="img/dogleft.jpg" width="50" height="50"> text <img src="img/dogleft.jpg" width="50" height="50" style="margin: 10px; border: 5px solid green;"> text </p> <p> text <img src="img/dogleft.jpg" width="50" height="50"> text <img src="img/dogleft.jpg" width="50" height="50" style="margin: 10px; border: 5px solid green;"> text </p> </textarea> <textarea rows="15" cols="80" style="width: 80%"> <p> text <img src="img/dogleft.jpg" width="50" height="50"> text <img src="img/dogleft.jpg" width="50" height="50" style="margin: 10px; border: 5px solid green;"> text </p> <p> text <img src="img/dogleft.jpg" width="50" height="50"> text <img src="img/dogleft.jpg" width="50" height="50" style="margin: 10px; border: 5px solid green;"> text </p> </textarea> </body> </html> |