[wp-hackers] How set defaults on wpLink()
Frank Bueltge
frank at bueltge.de
Tue Jul 12 09:36:56 UTC 2011
With WP 3.2 has WordPress maybe a new function for add quicktags to
the editor. But i font an function to set defaults for the
link-button: wplink.js (Line 278
http://wpseek.com/source/wp/latest/nav.html?wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js.source.html)
setDefaultValues : function() {
// Set URL and description to defaults.
// Leave the new tab setting as-is.
inputs.url.val('http://');
inputs.title.val('');
// Update save prompt.
inputs.submit.val( wpLinkL10n.save );
},
How it is possible to set the values for a custom values? Thanks for
an answer from javascript-experts.
Thanks and best regards
More information about the wp-hackers
mailing list