Skip to content

Commit

Permalink
Merge pull request #1436 from creative-commoners/pulls/2.1/fix-insert…
Browse files Browse the repository at this point in the history
…-file-issue

FIX TinyMCE Insert link from Files
  • Loading branch information
GuySartorelli authored Jan 25, 2024
2 parents 03f7fd2 + bb3894e commit 8607246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_ssmedia.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/entwine/TinyMCE_ssmedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ jQuery.entwine('ss', ($) => {
properties: { id: data.ID },
}, true);

const selectionContent = this.getElement().getSelection();
const selectionContent = editor.getSelection();
let linkText = selectionContent || data.Text || data.filename;

// if link was highlighted, then we don't want to place more text inside that text
Expand Down Expand Up @@ -553,7 +553,7 @@ jQuery.entwine('ss', ($) => {
*/
statusMessage(text, type) {
const content = $('<div/>').text(text).html(); // Escape HTML entities in text
$.noticeAdd({
jQuery.noticeAdd({
text: content,
type,
stayTime: 5000,
Expand Down

0 comments on commit 8607246

Please sign in to comment.