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
css - [type=""] セレクターの複数の値を選択するにはどうすればよいですか
1
c - C プログラミング: 動的に割り当てられたファイルの内容をどのように出力しますか?
3
math - C ++での算術式入力計算
2
c# - Webアプリケーションで画像の配列を取得しますか?
1
java - Javaでモニターを操作する際の混乱
1
algorithm - 混合左加算乗数、符号付き乗算の教科書アルゴリズム
3
wpf - ビューモデルのメソッドがMVVMで呼び出されていない/到達していない - (フィールドの値をフェッチできません)
2
algorithm - Scala関数型クイックソート
2
codeigniter - CodeIgniter:サイクルなしで複数のレコードを挿入
2
c++ - ブースト正規表現分割ミスの最後の単語

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知識共有ライセンス契約に従う。