Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
Line 160:
templateTools[buttonId] = {
type: 'element',
element: $(
'padding': '4px
'margin':
function() { $(this).css('background', '#eaecf0'); }
function() {
return function(e)
e.
// Get the
const textarea =
if
const start =
textarea.value = text.substring(0, start)
// Move cursor to
textarea.selectionStart = textarea.selectionEnd =
}
};
}
|