
內容簡介
如果你在 WordPress 頁面/文章編輯器中進行 HTML 程式碼輸入,但在「可視化」模式下重新格式化或甚至刪除它,那麼這個外掛就是你的解決方案。
Always Edit In HTML 是一個 WordPress 外掛,它會移除頁面/文章編輯器中的「可視化」選項卡,並以 HTML 模式打開你的頁面或文章,保留你的 HTML 程式碼。
為什麼你需要這個外掛呢?
WordPress 頁面/文章編輯器有兩個選項卡在右上角 -「可視化」和「文本」。
在「文本」選項卡中,你可以輸入 HTML 程式碼到頁面或文章中,當你保存或發布文章時,它會保留你輸入的程式碼。
「可視化」選項卡有所有的書寫風格工具,但當你保存或發布頁面或文章時,WordPress 會解析和格式化內容,這可能導致你的 HTML 程式碼無法工作,甚至被刪除。
WordPress 不會記憶每個頁面或文章的選項卡選擇。它會使用你最後使用的可視化或文本選項卡打開頁面或文章。
這意味著如果你在可視化選項卡中編輯了一篇文章,保存後編輯你輸入 HTML 程式碼的頁面,那頁面將在可視化模式下打開,你可能會遺失你的 HTML 程式碼。
如果只有一個外掛,可以讓你選擇始終以 HTML 模式打開頁面或文章。
咚咚!這就是那個外掛。
注意:對於 WordPress 5.x 用戶,只要安裝和啟用了經典編輯器外掛,這個外掛仍然可以工作。它不適用於 Gutenberg 塊編輯器。
外掛頁面
Always Edit In HTML
外掛標籤
開發者團隊
原文外掛簡介
If you find yourself entering HTML code into the WordPress page/post editor only to have it reformatted or worse removed when in Visual mode then here is the solution for you.
Always Edit In HTML is a WordPress plugin that removes the “Visual” tab in the page/post editor and opens up your page or post in HTML mode, preserving your HTML code.
Why would you need this plugin?
The WordPress page/post editor has two tabs at the top right – “Visual” and “Text”.
The Text tab allows you to enter HTML code onto the page or post and when saving or publishing the post it preserves your code just the way you entered it.
The Visual tab has all the fancy writing style tools but when you save or publish your page or post, WordPress parses and formats the content which may results in your HTML code not working or even being removed.
WordPress does not remember the tab option for each page or post. It will open up a page or post using whichever Visual or Text tab you last used.
This means that if you were editing a post using the Visual tab, saved it and then edited the page or post you had entered the HTML code into, that page would open in Visual mode and you could loose your HTML code.
If only there was a plugin that gave you the option to always open up a page or post in HTML
Ta da! Here’s one.
Note: For WordPress 5.x users, this plugin will still work when the Classic Editor plugin is installed and enabled. It does not work with the Gutenberg block editor.
Plugin Page
Always Edit In HTML
