打开admin/write-post.php
,找到
<p><input id="tags" name="tags" type="text" value="<?php $post->tags(',', false); ?>" class="w-100 text" /></p>
在下面添加
<p>
<?php
$stack = Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->stack;
$i = 0;
while (isset($stack[$i])) {
echo "<a style=\"cursor:pointer\" onclick=\"t=document.getElementById('tags').value;c=t?',':'';document.getElementById('tags').value=t+c+'", $stack[$i]['slug'], "'\">", $stack[$i]['slug'], "</a>";
$i++;
if (isset($stack[$i])) echo ", ";
}
?>
</p>