Movable Type中insert一个链接时添加 target="_blank"

| No Comments | No TrackBacks

通过Toolbar insert一个链接时默认是新窗口打开的修改: 模式的修改:
Toolbar.js:137:                var html = "<a id='" + id + "'  href='" + dataBag.url + "' target='_blank'>" + dataBag.linkedText + "</a>";


 

之需要修改 Toolbar.js

另外 Textarea.js是在 HTML Mod模式下使用的,也可以仿照修改。

 

非常郁闷的是,昨天本想解决在WYSIWYG模式中输入URL连接后,自动变成可点击的link后的地方加入新开窗口的设置,可惜水平有限,硬是没能找到修改的地方,后续再努力看看js源代码了。

--EOF--

No TrackBacks

TrackBack URL: http://www.guduo.net/cgi-bin/mt/mt-tb.cgi/32

Leave a comment

Pages

May 2016

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by 谷多 published on March 3, 2008 1:22 PM.

xampp-win32-perl-addon-5.8.8-2.2.8使用MT4的引用的bug was the previous entry in this blog.

something about html WYSIWYG rich editor is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.