Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX TinyMCE Insert link from Files #1436

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading