1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-05-05 07:53:34 +02:00

优化后台js加载位置

This commit is contained in:
云落 2021-10-07 23:27:40 +08:00
parent 503395f7d7
commit d02abdb658

View file

@ -51,7 +51,7 @@ function gdk_admin_script()
<script>
jQuery(function($) {
/* bengin */
if ($("#ed_toolbar").length > 0) {
if ($("#wp-content-editor-tools").length > 0) {
/***文章编辑器 */
QTags.addButton('h2', 'H2标题', '<h2>', '</h2>');
QTags.addButton('ipre', '代码高亮', '<pre class="prettyprint linenums" >\n\n</pre>', "");