[WordPress] 外掛分享: Line Break Shortcode

首頁外掛目錄 › Line Break Shortcode
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
400+
安裝啟用
★★★★★
5/5 分(1 則評價)
5502 天前
最後更新
100%
問題解決
WordPress 3.0+ v1.0.1 上架:2011-02-22

內容簡介

使用此外掛可在您的文章和頁面中強制插入斷行。該方法非常簡單,使用 [br] 即可插入一個斷行。插入的斷行不會被 TinyMCE 去除。

這個外掛沒有屬性,沒有太多其他的要點。我發現在任何地方都找不到類似的 WordPress 外掛,我覺得這很奇怪。

現在是演示的時間了!

如果您的文字編輯器內容是這樣的:

Hello this is my
[br]
example!

那麼 HTML 就會是:

<p>Hello this is my</p>
<p><br /></p>
<p>example!</p>

因為段落標籤的默認樣式在其下方添加了一個白色空間,這可能會造成比您想要的更大的斷開。解決方案如下:

Hello this is my [br] example!

這將導致以下 HTML:

<p>Hello this is my <br /> example!</p>

問題/評論:請去論壇或發送電子郵件至[email protected]聯繫我。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Line Break Shortcode」→ 直接安裝(推薦)

原文外掛簡介

Use this to force line breaks into your posts and pages. It is simple. [br] will add a line break. It won’t be filtered out by TinyMCE.
There are no attributes. Not much else to see here. I couldn’t find a plugin that did this anywhere. Thought that was odd.
Example time!
If your text editor content looks like this:
Hello this is my
[br]
example!

The HTML will end up:

Hello this is my

example!

Because the default styling of a paragraph tag adds an area of white space below it this may result in more of a break than you wanted. Solution:
Hello this is my [br] example!

Which results in the following HTML:

Hello this is my
example!

Question/Comments: Please hit up the forum or drop me a line at [email protected]

延伸相關外掛

文章
Filter
Mastodon