在插件代码中找到防止插入新单词的部分并将其删除。以下是示例代码:
// Autolink plugin function autolink(text) { // Code for autolinking }
// Remove the following code to allow inserting new words after autolink function preventInsertion() { $('a.autolink').keydown(function(e) { if (e.which === 32 && !e.shiftKey) { return false; } }); }
// Call the functions autolink(text); preventInsertion();