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
c# - リスト アイテムの管理の難しさ
3
c++ - C++ 文字列が大きすぎます。末尾の文字が切り捨てられました
2
r - 1 つのプロット内のさまざまなデータに対して適切な事前定義された色のシーケンスはありますか?
1
c# - 将来の検証を回避する目的で String の周りにラッパーを返すことは理にかなっていますか?
3
python - ネストされたリストの for ループ
1
objective-c - NSImageView の mouseDown でビットマップの座標を取得する
2
c++ - 構造体のエラー
3
python - 配列を不均等なグループに分割する
1
javascript - 距離を並べ替えた後、より多くのアイテムをロードします
1
vim - vim-cmake-project エラー: perl が見つかりません

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