[WordPress] 外掛分享: Save Me

前言介紹

  • 這款 WordPress 外掛「Save Me」是 2011-03-17 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2011-03-21,距離現在已有 5158 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

davidfcarr |

外掛標籤

code | shortcode | javascript | shortcodes | rich text editor |

內容簡介

Save Me 外掛能夠防止 WordPress 網頁編輯器使 JavaScript 與其它行內嵌入代碼失真。您可以在編輯器的「視覺效果」模式中,將您的代碼用短碼 [saveme][/saveme] 框起來以加入比較可控制的方式。

儘管您可以不使用外掛而直接在 HTML 編輯模式下貼上 JavaScript 代碼,但反覆在 HTML 與視覺效果模式下切換時,該代碼常常會被扭曲。例如,TinyMCE 編輯器會刪除其無法解讀的元素,像是那些需要 JavaScript 或 AJAX 小工具來插入內容的空 div。因為 JavaScript 代碼在視覺效果編輯器中沒有顯示,所以很容易不小心刪除它。

在使用 Save Me 網頁小工具時,編輯器會將您的代碼當成是一個您正在撰寫的程式碼範例,而不是會執行的腳本。您可能會看到一些變形,例如雙引號被轉換成弯引號,但至少您可以更容易地追蹤您的代碼插入位置。Save Me 短碼函數可逆轉 HTML 實體轉換,而將您的 JavaScript 小工具轉換回可執行代碼。

Save Me 短碼已經通過 Facebook 社交工具與 Google Adsense JavaScript 區塊的測試。如果您的 JavaScript 經過此函數傳遞後仍然無法正常運行,請透過 Carr Communications Inc. 與我聯繫,我會嘗試找出原因。

這是 Facebook Tab Manager for WordPress 的類似函數的衍生品。

尊榮標誌
Facebook Tab Manager
Copyright (C) 2011 David F. Carr

本程式是自由軟體,您可以重新分發或自行修改它
根據自由軟體基金會發佈的 GNU 通用公眾授權條款
無論任何時間您都可以選擇使用的版本。

此程式同時遵循使用上的一般原則
但不提供任何明示或暗示的保證
包括但不限於適售性或用於特定用途之保證
更多請參閱 GNU 通用公眾授權條款。

參見 的 GNU 通用公眾授權條款。

原文外掛簡介

The Save Me plugin saves JavaScript and other inline code from distortion by the WordPress rich text editor. Add code in the editor’s VISUAL mode, bracketing it with the shortcode [saveme][/saveme].
While it is possible without a plugin to switch to HTML editing mode and paste JavaScript into a post, often the code will be scrambled if you toggle back and forth between the HTML and Visual modes. For example, the TinyMCE editor sometimes eliminates what it doesn’t understand — like empty divs into which your JavaScript or AJAX widget needs to inject content. And since JavaScript code is not displayed with any representation in the visual editor, it’s easy to accidentally delete.
In rich tech mode, the editor will treat your code as if it were a code sample you were writing about, rather than a script to be executed. You may see distortions, like quotation marks being turned into curly quotes, but at least you can keep track of where you inserted the code. The saveme shortcode function reverses HTML entity transformations and turns your JavaScript widget back into executable code.
The saveme shortcode has been tested with Facebook social widgets and Google Adsense JavaScript blocks. If you encounter JavaScript that does not work after being passed through this function, contact me through Carr Communications Inc. and I will try to determine why not.
This is a spinoff of a similar function in Facebook Tab Manager for WordPress
Credits
Facebook Tab Manager
Copyright (C) 2011 David F. Carr

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

See the GNU General Public License at .

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Save Me」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
  • MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
  • Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
  • Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
  • Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
  • amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
  • Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
  • Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
  • Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
  • Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。

文章
Filter
Apply Filters
Mastodon