This commit is contained in:
@@ -237,7 +237,7 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
></v-select>
|
||||
<!--
|
||||
<!--
|
||||
<v-file-input
|
||||
:label="$ay.t('AttachFile')"
|
||||
prepend-icon="fa-paperclip"
|
||||
@@ -712,6 +712,9 @@ export default {
|
||||
{
|
||||
this.linkMenu = false;
|
||||
let url = this.linkUrl;
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
//force it to a full url so it doesn't attempt to open it as a SPA window
|
||||
if (!url.includes(":")) {
|
||||
url = "https://" + url;
|
||||
@@ -722,10 +725,31 @@ export default {
|
||||
}
|
||||
break;
|
||||
case "image":
|
||||
throw "IMAGE LINK NOT IMPLEMENTED";
|
||||
//")
|
||||
{
|
||||
//todo: ATTACHEDFILEMODE
|
||||
this.imageMenu = false;
|
||||
let url = this.imageUrl;
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
let txt = this.imageText;
|
||||
//force it to a full url so it doesn't attempt to open it as a SPA window
|
||||
if (!url.includes(":")) {
|
||||
url = "https://" + url;
|
||||
}
|
||||
|
||||
if (txt) {
|
||||
this.replaceSelectedText(
|
||||
" \n' + txt //keep original selected text otherwise it will vanish
|
||||
);
|
||||
} else {
|
||||
this.replaceSelectedText("");
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw "NOT IMPLEMENTED";
|
||||
throw editType + " NOT IMPLEMENTED";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user