Skip to content

Commit

Permalink
Update simditor to v2.3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlwqq committed Jul 13, 2019
1 parent b636516 commit 6f0c545
Show file tree
Hide file tree
Showing 8 changed files with 1,063 additions and 26 deletions.
4 changes: 0 additions & 4 deletions resources/assets/simditor-2.3.20/styles/simditor.scss

This file was deleted.

1,017 changes: 1,017 additions & 0 deletions resources/assets/simditor-2.3.25/scripts/dompurify.js

Large diffs are not rendered by default.

49 changes: 35 additions & 14 deletions ...ssets/simditor-2.3.20/scripts/simditor.js → ...ssets/simditor-2.3.25/scripts/simditor.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
/*!
* Simditor v2.3.25
* http://simditor.tower.im/
* 2019-05-01
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define('simditor', ["jquery","simple-module","simple-hotkeys","simple-uploader"], function ($, SimpleModule, simpleHotkeys, simpleUploader) {
return (root['Simditor'] = factory($, SimpleModule, simpleHotkeys, simpleUploader));
define('simditor', ["jquery","simple-module","simple-hotkeys","simple-uploader","dompurify"], function ($, SimpleModule, simpleHotkeys, simpleUploader, DOMPurify) {
return (root['Simditor'] = factory($, SimpleModule, simpleHotkeys, simpleUploader, DOMPurify));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory(require("jquery"),require("simple-module"),require("simple-hotkeys"),require("simple-uploader"));
module.exports = factory(require("jquery"),require("simple-module"),require("simple-hotkeys"),require("simple-uploader"),require("dompurify"));
} else {
root['Simditor'] = factory(jQuery,SimpleModule,simple.hotkeys,simple.uploader);
root['Simditor'] = factory(jQuery,SimpleModule,simple.hotkeys,simple.uploader,window.DOMPurify);
}
}(this, function ($, SimpleModule, simpleHotkeys, simpleUploader) {
}(this, function ($, SimpleModule, simpleHotkeys, simpleUploader, DOMPurify) {

var AlignmentButton, BlockquoteButton, BoldButton, Button, Clipboard, CodeButton, CodePopover, ColorButton, FontScaleButton, Formatter, HrButton, ImageButton, ImagePopover, IndentButton, Indentation, InputManager, ItalicButton, Keystroke, LinkButton, LinkPopover, ListButton, OrderListButton, OutdentButton, Popover, Selection, Simditor, StrikethroughButton, TableButton, TitleButton, Toolbar, UnderlineButton, UndoManager, UnorderListButton, Util,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
Expand Down Expand Up @@ -1611,8 +1616,8 @@ UndoManager = (function(superClass) {
}
if (!startContainer || !endContainer) {
if (typeof console !== "undefined" && console !== null) {
if (typeof console.warn === "function") {
console.warn('simditor: invalid caret state');
if (typeof console.info === "function") {
console.info('simditor: invalid caret state');
}
}
return;
Expand Down Expand Up @@ -2262,7 +2267,7 @@ Clipboard = (function(superClass) {
}
return this.editor.body.on('paste', (function(_this) {
return function(e) {
var range;
var pasteBinAnchor, range;
if (_this.pasting || _this._pasteBin) {
return;
}
Expand All @@ -2277,10 +2282,17 @@ Clipboard = (function(superClass) {
} else {
_this.editor.formatter.format();
_this.editor.selection.setRangeAtStartOf(_this.editor.body.find('p:first'));
range = _this.editor.selection._range;
}
if (_this._processPasteByClipboardApi(e)) {
return false;
}
pasteBinAnchor = $('<span>');
range.insertNode(pasteBinAnchor[0]);
_this._createPasteBin(pasteBinAnchor);
pasteBinAnchor.remove();
range.collapse(true);
_this.editor.selection.range(range);
_this.editor.inputManager.throttledValueChanged.clear();
_this.editor.inputManager.throttledSelectionChanged.clear();
_this.editor.undoManager.throttledPushState.clear();
Expand Down Expand Up @@ -2325,9 +2337,18 @@ Clipboard = (function(superClass) {
}
};

Clipboard.prototype._createPasteBin = function(anchorNode) {
var anchorOffset, editorOffset;
anchorOffset = anchorNode.offset();
editorOffset = this.editor.el.offset();
return this._pasteBin = $('<div contenteditable="true" />').addClass('simditor-paste-bin').attr('tabIndex', '-1').css({
top: anchorOffset.top - editorOffset.top,
left: anchorOffset.left - editorOffset.left
}).appendTo(this.editor.el);
};

Clipboard.prototype._getPasteContent = function(callback) {
var state;
this._pasteBin = $('<div contenteditable="true" />').addClass('simditor-paste-bin').attr('tabIndex', '-1').appendTo(this.editor.el);
state = {
html: this.editor.body.html(),
caret: this.editor.undoManager.caretPosition()
Expand All @@ -2337,7 +2358,7 @@ Clipboard = (function(superClass) {
return function() {
var pasteContent;
_this.editor.hidePopover();
_this.editor.body.get(0).innerHTML = state.html;
_this.editor.body.get(0).innerHTML = DOMPurify ? DOMPurify.sanitize(state.html) : state.html;
_this.editor.undoManager.caretPosition(state.caret);
_this.editor.body.focus();
_this.editor.selection.reset();
Expand Down Expand Up @@ -2644,7 +2665,7 @@ Simditor = (function(superClass) {
Simditor.prototype.setValue = function(val) {
this.hidePopover();
this.textarea.val(val);
this.body.get(0).innerHTML = val;
this.body.get(0).innerHTML = DOMPurify ? DOMPurify.sanitize(val) : val;
this.formatter.format();
this.formatter.decorate();
this.util.reflow(this.body);
Expand Down Expand Up @@ -3152,7 +3173,7 @@ Popover = (function(superClass) {
}
this.el.siblings('.simditor-popover').each(function(i, popover) {
popover = $(popover).data('popover');
if (popover.active) {
if (popover && popover.active) {
return popover.hide();
}
});
Expand Down Expand Up @@ -4484,7 +4505,7 @@ ImageButton = (function(superClass) {
return;
}
$img = $mask.data('img');
if (!($img.hasClass('uploading') && $img.parent().length > 0)) {
if (!($img && $img.hasClass('uploading') && $img.parent().length > 0)) {
$mask.remove();
return;
}
Expand Down Expand Up @@ -4648,7 +4669,7 @@ ImageButton = (function(superClass) {
$mask.remove();
return $img.removeData('mask').removeClass('loading');
};
return img.src = src;
return img.setAttribute('src', src);
};

ImageButton.prototype.createImage = function(name) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*!
* Simditor v2.3.25
* http://simditor.tower.im/
* 2019-05-01
*/
@font-face {
font-family: 'Simditor';
src: url(data:application/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2ObUs1lkz2C6S+bNzWl7XNMnHfRHNgJ2cjykoC7rBzjRdakVNwZM/m9LDKi+N+I3AunrYJhagsCVMiuRdi/0t20Vg0IXOxRJQxs26U1FdFbpNpZBf23FowTsJ5mETx7OKEa+ldyedcO9GpRzcF67yqnS9tLHUvVfgDz/ZF8gAAAHjabc25DgFhGIXh/53B2Pd9J9HPN/bSWolC4iI0OjfgxhFO6SQnT/k6z333errI/dvkc5yHh+98YsRJEJAkRZoMWXLkKVCkRJkKVWrUadCkRZsOXXr0GTBkxDh2vp5O3u4SPO63YxiG0mQkp3Im53Ihl3Il13Ijt3In9/Igjz9NfVPf1Df1TX1T39Q39U19U9/UN/VNfVPfDm8tR0peAAB42mNgYGBkAIKLcceVwfQJ+XIoXQEARe8GegAA) format("woff");
Expand Down Expand Up @@ -237,9 +242,7 @@
box-shadow: 0 0 0 4px #cccccc;
}
.simditor .simditor-paste-bin {
position: fixed;
bottom: 10px;
right: 10px;
position: absolute;
width: 1px;
height: 20px;
font-size: 1px;
Expand Down
10 changes: 5 additions & 5 deletions src/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ class Editor extends Field
protected $view = 'laravel-admin-simditor::editor';

protected static $css = [
'vendor/laravel-admin-ext/simditor/simditor-2.3.20/styles/simditor.css',
'vendor/laravel-admin-ext/simditor/simditor-2.3.25/styles/simditor.css',
];

protected static $js = [
'vendor/laravel-admin-ext/simditor/simditor-2.3.20/scripts/module.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.20/scripts/hotkeys.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.20/scripts/uploader.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.20/scripts/simditor.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.25/scripts/module.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.25/scripts/hotkeys.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.25/scripts/uploader.js',
'vendor/laravel-admin-ext/simditor/simditor-2.3.25/scripts/simditor.js',
];

public function render()
Expand Down

0 comments on commit 6f0c545

Please sign in to comment.