內容簡介
使用此外掛可在您的文章和頁面中強制插入斷行。該方法非常簡單,使用 [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]聯繫我。
外掛標籤
開發者團隊
原文外掛簡介
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]
