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

3
bash - bash 特定のユーザーログインで何かをする
12
google-chrome - ブラウザで向きをエミュレートすることは可能ですか?
1
c++ - 32 ビット SetTimer Windows コールバックの 64 ビット互換性
3
android - Androidのカーソルから値を取得する
2
java - Struts 2 ファイルのアップロード - アクション中のファイル プロパティが null です
1
java - アニメーション付きの Android スライド イン/アウト レイアウト
3
types - 型が別の型を含む構造体である必要があるのはいつで、その型を単に「拡張」(?) する必要があるのはいつですか?
2
php - Joomla 2.5 カスタム検索ページ、表示モジュール
2
java - NetworkOnMainThread 例外
1
python - matplotlib のイベント接続とサブプロット

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