2012/09/27

Disable Products.TinyMCE URL Conversions

有時候,你會想輸入 /some_folder/some_item 這樣的網址,但 Products.TinyMCE 預設會雞婆地改成 ../some_folder/some_item 相對網址。想要取消這樣的行為,可以修改 Products.TinyMCE/skins/tinymce/tiny_mce_init.js 檔案,加上幾個設定值:

  fix_list_elements : false,
+ convert_urls: false,
+ relative_urls: false,
+ remove_script_host: false,
  // allow embed tag if user removes it from
  // list of nasty tags - see #10681
  media_strict: false

No comments: