Skip to content

Commit

Permalink
FIX TinyMCE Insert link from Files
Browse files Browse the repository at this point in the history
  • Loading branch information
sabina-talipova committed Jan 25, 2024
1 parent 709e525 commit bb3894e
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
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 bb3894e

Please sign in to comment.