Skip to content

Commit 2e1e1ca

Browse files
committed
fixed paste and text paste input
1 parent c47b8e1 commit 2e1e1ca

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

β€Ždist/sceditor.min.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/sceditor.min.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žexample/example.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1>SCEditor example</h1>
6363
autoExpand: true,
6464
//locale: 'de',
6565
maxLength: 32767,
66-
plugins: 'emojis,undo,mentions',
66+
plugins: 'emojis,undo,mentions,dragdrop',
6767

6868
//emojis: ['😊', '❀️', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„', 'πŸ˜„'],
6969
styles: ['https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css', 'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css'],

β€Žsrc/lib/SCEditor.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ export default function SCEditor(original, userOptions) {
16481648
pluginManager.call('pasteHtml', paste);
16491649

16501650
const parent = rangeHelper.getFirstBlockParent();
1651-
base.wysiwygEditorInsertHtml(paste.val, null, true);
1651+
//base.wysiwygEditorInsertHtml(paste.val, null, true);
16521652
dom.merge(parent);
16531653
};
16541654

β€Žsrc/lib/templates.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var _templates = {
6565

6666
pastetext:
6767
'<form class="m-3"><div class="mb-3"><label for="txt" class="form-label">{label}</label> ' +
68-
'<textarea cols="20" rows="7" id="txt" class="form-control"></textarea></div>' +
68+
'<textarea cols="20" rows="7" id="txt" class="form-control textarea-input"></textarea></div>' +
6969
'<input type="button" class="btn btn-sm btn-primary button" value="{insert}" />' +
7070
'</div></form>',
7171

0 commit comments

Comments
Β (0)