這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

AddFunc IDs

外掛說明

Adds two convenient buttons to easily add/remove an id attribute to any element when editor a Post, Page or custom post type that uses a standard TinyMCE editor. Uses the text contained within the element, cleaned up, to formulate a URL-friendly id.

螢幕擷圖

  • Look! This heading now has an id attribute because I clicked the “#” button!… You get the idea.

安裝方式

  1. Upload the entire /addfunc-ids folder to the /wp-content/plugins/ directory or download it from the WordPress repository.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Use the Add ID and Remove ID buttons as needed.

常見問題集

What does the Add ID button do?

It adds an id attribute to the selected element (or the element with the cursor in it) using the text within. Note: not recommended for use on paragraphs.

What does the Remove ID button do?

It removes any id attributes from the selected element (or the element with the cursor in it). Note: recommended for removing ridiculously long id attributes.

Where can I see the ID/id attribute?

You can see it in Text view. Example:

This is rad

Will AddFunc work in Text view?

Nope. It’s a TinyMCE thang.

Does AddFunc IDs work on custom content types, the same as they do on Posts and Pages?

It works in any custom content type that has a standard TinyMCE editor.

Does it really require WordPress 3.0.1 or later?

I have not tested it on earlier versions. I suspect it depends on the version of TinyMCE included with your WordPress install. Feel free to try it out and let us know if it works! 🙂

Does AddFunc have a website?

Yes. addfunc.com

使用者評論

2017 年 6 月 28 日
I was unable to find a plugin that would enable me to effortlessly add an id attribute using the obviously appropriate inner text for its string, without introducing more JavaScript to my website’s frontend output. I felt this option would be most suitable as a WYSIWYG editor feature anyway, not an automatic “one size fits all” add-on. I’m very strategic about id attributes and I anticipate that the text might someday be changed. So, I can’t have the id attribute automatically updating to the new text on its own—I link stuff to it! #duh #sometimes-i-dont-want-the-entire-line-of-text-used-in-the-id-attribute-string-because-that-would-just-be-insane So I need to be able to manually edit it. #thats-better That’s why I built AddFunc IDs and I use it on all of my websites. #the-end
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈AddFunc IDs〉的開發相關工作。

參與者

將〈AddFunc IDs〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

27 Jun 2017

  • Released plugin on WordPress Repository

0.4

23 Jun 2017

  • Improves cleanup of string used for id attribute
    • Removes HTML tags
    • Removes instances of multiple consecutive hyphens
      _ Removes hyphens at beginning and end of string
  • Adds button highlighting (button is highlighted if the selected element has an id attribute)
  • Submitted plugin to WordPress repository as version 1.0

0.3

18 Jul 2016

  • Improves TinyMCE button icons, using font instead of SVGs

0.2

?? ??? 201?

  • Adds “Add ID” button to Tiny MCE
  • Adds “Remove ID” button to Tiny MCE

0.1

29 Sep 2015

  • Adds a button to TinyMCE