Stack Overflow
  1. トップページ
  2. 問題
  3. 教程
  1. トップページ
    1. ナビゲーション
    2. 問題
    3. タブ
    1. Teams
      Stack Overflow for Teams – Start collaborating and sharing organizational knowledge. Create a free Team Why Teams?
    2. Teams
    3. Create free Team
Collectives on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more

javascript - TinyMCE - リンクの代わりに onClick をどのように使用しますか?

翻译自:https://stackoverflow.com/questions/19640499 2013-10-28T16:47:15.053
4801 次
This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.

リンクを挿入すると、次のようにレンダリングされるように、TimyMCE のデフォルトの動作を変更する方法はありますか。

<span onclick="window.open('http://google.com', '_blank', 'location=yes');"></span>

それ以外の

<a href="http://www.google.com" target="_blank" location="yes"></a>

理想的には、これをリンク ボタンで実行したいのですが、onSubmit で実行することもできます。

追加: これを行う理由 (私が知っているように、それは悪い習慣のように思えます) は、ブラウザーでの使用を意図していないため、 ( InAppBrowserプラグインを使用して) PhoneGap に移植できるようにするためです。

javascripttinymce
4

2 に答える 2

Related

1
google-drive-api - Google ドライブ SDK: ドメイン スーパー管理者アクセス権を使用してユーザーから別のユーザーにファイルをコピーするには
0
rss - 1 行に複数の htmlspecialchars コード
3
google-app-engine - Go と App Engine の I18n 戦略
2
android - フラグメントからサービスをバインドする方法
2
jquery - jqueryを使用してテキストでアンカーのhrefリンクを変更します
1
c# - Juice-ui: コード ビハインドでメニューを動的に構築する
1
php - reCaptcha を使用した後に電子メール スパムを防止する
1
android - Android サービスが起動しない
3
android - 実際の製品で Android アプリ内購入をテストする
1
rabbitmq - セロリがRabbitMQへの接続を失う

Reference

php × 1429865
c/c++ × 756500
nginx × 49975
mongodb × 159057
mybatis × 3233
anaconda × 13410
pycharm × 14671
python × 1902243
vscode × 56040
docker × 110988
github × 49000
flask × 49129
ffmpeg × 24037
jmeter × 16910
matplotlib × 63493
bootstrap × 54641
Stack Overflow 日本語サイト

CC BY-SA知識共有ライセンス契約に従う。