Paste handling improvements (#534)

* Make on paste callback non-static method

* Add docs

* change tools.md header levels

* some docs improvements

* upd docs

* Types improvements

* add image tool for testing

* Fix file drag'n'drop

* improve log on paste

* Update submodules

* Update bundle

* Update paragraph submodule

* Fix some bugs with blocks replacement
Remove tag from HTMLPasteEvent

* Use production webpack mode

* minimize: true

* Update docs

* Update submodules

* Update bundle
This commit is contained in:
George Berezhnoy 2018-11-29 12:16:06 +03:00 committed by GitHub
commit 669c11eaa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 385 additions and 10691 deletions

View file

@ -27,7 +27,7 @@
<pre class="ce-example__output-content" id="output"></pre>
<div class="ce-example__output-footer">
<a href="https://ifmo.su" style="font-weight: bold">Made by CodeX</a>
<a href="https://ifmo.su" style="font-weight: bold;">Made by CodeX</a>
</div>
</div>
</div>
@ -42,6 +42,7 @@
https://github.com/codex-editor/header#installation
-->
<script src="./tools/header/dist/bundle.js"></script><!-- Header -->
<script src="./tools/simple-image/dist/bundle.js"></script><!-- Image -->
<script src="./tools/image/dist/bundle.js"></script><!-- Image -->
<script src="./tools/delimiter/dist/bundle.js"></script><!-- Delimiter -->
<script src="./tools/list/dist/bundle.js"></script><!-- List -->
@ -94,7 +95,10 @@
image: {
class: ImageTool,
config: {
url: 'http://localhost:8008',
endpoints: {
byFile: 'http://localhost:8008/uploadFile',
byUrl: 'http://localhost:8008/fetchUrl',
},
},
inlineToolbar: ['link'],
},
@ -232,7 +236,7 @@
type: 'image',
data: {
file: {
url : 'https://ifmo.su/upload/redactor_images/o_e48549d1855c7fc1807308dd14990126.jpg',
url: 'https://ifmo.su/upload/redactor_images/o_e48549d1855c7fc1807308dd14990126.jpg',
},
caption: '',
stretched: false,

@ -1 +1 @@
Subproject commit d0874d51fabb8f8881926306038079457f0db114
Subproject commit 860d3046d0483046b9389d27e3a9c1ab51cf6b87

@ -1 +1 @@
Subproject commit f64378a2f18ee69c66860a3e45d1e392417a4ca7
Subproject commit af3d6545056ef07498363c9b160ad3e0df15bb0f

@ -1 +1 @@
Subproject commit da319d4757f1909d049f0f205be62ac08ef377f5
Subproject commit a25681245f0fdbee1b4a01108e8384bff363a80f

@ -1 +1 @@
Subproject commit 24a5fe205d55ab481233e60a8263f1433c316852
Subproject commit e45da06890c453cb79c8aa88cf657ad988fcc1ca

@ -1 +1 @@
Subproject commit f14f258b3d993e3b58db76f668d956134fcd813e
Subproject commit c6b832e5e4801f531011923a6c7340fb9a0067fa

@ -1 +1 @@
Subproject commit 7642bb2b541e417307281849d24bc0cce6ff25e2
Subproject commit 99c37eb07f9ed93551dd8ca2678f2ff740c6a15f

@ -1 +1 @@
Subproject commit e970963af843ac1b6131503545f0581325b33f37
Subproject commit d026d7d36f1b20e24ea7990b4f629b5b3abb8791

@ -1 +1 @@
Subproject commit cfde1bc77e32ca884756f11832da282ba73b16b2
Subproject commit 169bff33ddec03396f9b193de11b2adf03df7511