What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-09 05:39:24
chrome bookmarklet copy text
// This needs to be minified (and prefixed) to work // I just put the full function here to better show what the code is doing // Use the bottom line of code and replace "Text To Copy" with your own // text and you're good to go! (function (t... Add solution -
Javascript 2021-11-02 15:11:09
clear ckeditor textarea jquery
function CKupdate(){ for ( instance in CKEDITOR.instances ){ CKEDITOR.instances[instance].updateElement(); CKEDITOR.instances[instance].setData(''); } } $(document).ready(function(){ CKEDITOR.replace( 'comment-textarea' ); ... Add solution -
TypeScript 2021-10-09 00:04:07
css permit tabs on textarea react
document.querySelector('#textarea').addEventListener('keydown', e => { if ( e.key === 'Tab' && !e.shiftKey ) { // execCommand operations are "Cmd|Ctrl+Z"-able // note: execCommand is deprecated and may not work in the future... Add solution -
Javascript 2021-09-25 16:05:04
convert pdf to base64 javascript
// Check for the File API support. if (window.File && window.FileReader && window.FileList && window.Blob) { document.getElementById('files').addEventListener('change', handleFileSelect, false); } else { alert('The File APIs ar... Add solution