display share link in textarea
This commit is contained in:
parent
1ba03dee45
commit
ee35c1d151
@ -233,6 +233,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: hidden;
|
||||||
|
&[readonly] {
|
||||||
|
resize: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
span.cp-password-container {
|
span.cp-password-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@ -127,6 +127,18 @@ define([
|
|||||||
return input;
|
return input;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dialog.selectableArea = function (value, opt) {
|
||||||
|
var attrs = merge({
|
||||||
|
readonly: 'readonly',
|
||||||
|
}, opt);
|
||||||
|
|
||||||
|
var input = h('textarea', attrs);
|
||||||
|
$(input).val(value).click(function () {
|
||||||
|
input.select();
|
||||||
|
});
|
||||||
|
return input;
|
||||||
|
};
|
||||||
|
|
||||||
dialog.okButton = function (content, classString) {
|
dialog.okButton = function (content, classString) {
|
||||||
var sel = typeof(classString) === 'string'? 'button.ok.' + classString:'button.ok.primary';
|
var sel = typeof(classString) === 'string'? 'button.ok.' + classString:'button.ok.primary';
|
||||||
return h(sel, { tabindex: '2', }, content || Messages.okButton);
|
return h(sel, { tabindex: '2', }, content || Messages.okButton);
|
||||||
|
|||||||
@ -1088,7 +1088,7 @@ define([
|
|||||||
h('br'),
|
h('br'),
|
||||||
];
|
];
|
||||||
|
|
||||||
linkContent.push(UI.dialog.selectable('', { id: 'cp-share-link-preview', tabindex: 1 }));
|
linkContent.push(UI.dialog.selectableArea('', { id: 'cp-share-link-preview', tabindex: 1, rows:3}));
|
||||||
|
|
||||||
// Show alert if the pad is password protected
|
// Show alert if the pad is password protected
|
||||||
if (hasPassword) {
|
if (hasPassword) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user