Preserved HTML Editor Markup
This plugin preserves the user-generated HTML markup in the TinyMCE editor. Unlike other plugins this one allows developers to work in the HTML tab AND end-users to work in the WYSIWYG Visual tab at the same time! No longer will your HTML markup be completely munged into an unrecognizable form when you switch between those tabs. And you don’t have to hang your users/editors out to dry when you hand off the project with a disabled Visual tab. IMPORTANT: Please read the installation instructions carefully. If you have existing content it will not render properly after activating this plugin until you use the Fix It Tools. (One user didn’t read or follow these steps and panicked thinking I ruined their website.) It also supports HTML5 Block Anchor tags in addition to other HTML5 elements, something that is currently not supported in WordPress via any existing plugins. Version 1.5 will probably be the last version I release for a while since my daughter will be born soon. I’ve added support for full JavaScript code blocks in the HTML tab. They are compatible and preserved when switching to Visual mode. This rounds out the support for almost complete html preservation, with full use of the WYSIWYG editor. And you don’t need to wrap comment codes around it per the recommendations located here: https://codex.wordpress.org/Using_Javascript but you can leave them in if you want. Version 1.4 was just a minor patch release. User @denl noticed a problem with the plugin CataBlog which implements its own administrative management features by disabling the ‘show_ui’ flag for its custom post type. I was ignoring any custom post type that didn’t have a GUI, but it was an unecessary filter that probably limited other plugins. This fix allows any post type that supports the TinyMCE editor to be “fixed” using the tools under Admin > Settings > Writing. Since version 1.3 you can now use inline CSS and JavaScript in the HTML editor and everything should be preserved. To be clear, this applies to tags only, like onclick events and style definitions – not script blocks themselves. To enable this feature you must disable the wptexturize and convert_chars filters by adding the following code to your theme’s functions.php: remove_filter("the_content", "wptexturize"); remove_filter("the_content", "convert_chars"); This new feature is pretty experimental at the moment. I tried to make it compatible with wptexturize but that proved close to impossible without duplicating a lot of core code in my plugin. It’s also not compatible with TinyMCE Advanced when the “stop removing p and br tags” setting is enabled. I’ve tested it on a variety of code samples and I’m pleased with the results but if you find any content that isn’t preserved just open a support ticket and I should be able to fix it. Since version 1.2, you now have a little more control over how content is created. And most of the previous caveats to using this plugin are now resolved. You can now choose whether to use BR tags OR P tags for newlines. Even better you can use both, where one return key press injects a BR tag, and two return key presses will wrap a Paragraph tag. This is great for being able to wrap headers at specific break points all while enjoying the semantic perks of paragraphs. In addition to choosing what type of tags to use, you can also change the behavior depending on the type of post, including custom post types. So Pages can default to BR tags, and Blog Posts can default to Paragraph tags. If you have existing content that was created before activating this plugin, you can now use the Fixit feature to convert your existing content in a way that makes it render the same as before. Only use this feature (located under Admin > Settings > Writing: Fixing Existing Content) if you are installing this plugin for the first time, otherwise it will remove all of the formatted white space in your posts. Multi-line HTML comments are now supported (Thanks to @cwlee_klagroup for suggesting the working fix!) The Format drop down in the TinyMCE editor had a bug which is now fixed. It will now select “Format” if you place the cursor on a section of bare text. Currently the editor just leaves the previously selected format option in place. It’s minor but it’s good to know when you have bare text in your content. There was a fairly problematic bug in the old version where in some browsers you couldn’t change the formatting of a single line in the Visual editor if you started from scratch. Choosing a different Format option would change the entire document, with the only work around being to edit the document in HTML mode. That was bad, and somehow went unnoticed for far too long. Anyway, that is fixed now. The caveats that still remains are: With script blocks added to your HTML markup, the right arrow key does not pass over them in the Visual Tab. You can down arrow over them however so this will likely never be addressed. If you use the Paragraph tag setting for newlines there is a minor bug where it will only wrap your content in Paragraph tags if you specify Paragraph in the Format drop down or if you enter more than one paragraph of text. So if you just type one sentence and click save it will not wrap the content in Paragraph tags. I tried to fix this but ran out of my allotted time working on other core issues. Should be fixed in the next release. For performance reasons, it will only preserve spaces if 4 spaces are used consecutively – i.e. an expanded tab in developer terms. It will not preserve intra-tag white space like . If you do add 4 or more spaces inside of an element tag it will corrupt the markup and mangle the output. But as this is intended for developer edits, this should be an extreme rarity given the habit is virtually non-existent in development communities. PRE tags are not affected and behave as you would expect, however due to how browsers parse tags, the first newline in the content of a PRE tag will be wiped out unless it is padded with either another new line or multiple spaces. CODE tags are not preserving white space at all, and when wrapped with PRE tags white space is still removed. I’m working to resolve this problem. Arbitrary section
Top keywords
- tags14×1.26%
- content12×1.08%
- html9×0.81%
- now9×0.81%
- editor7×0.63%
- paragraph7×0.63%
- tab6×0.54%
- type6×0.54%
- version6×0.54%
- code5×0.45%
- existing5×0.45%
- fix5×0.45%
Rental Goods Manager
Rental Goods Manager WordPress plugin allows you to manage rental orders. The main use case is to use this plugin to manage device lending in in-house. Users can make rental order. Managers can edit orders and can reserve ordered goods, and can print order. WARNING: This plugin is basically intended for internal use(in-house). Only users logged in can be made order. ●日本語 Rental Goods Managerプラグインは、商品のレンタル注文の管理ができます。 主に社内でデモなどのため別部署に商品の貸出しをする場合に使うことを想定していて、面倒な貸出し履歴などを管理するのが目的です。 Wordpressのユーザはレンタルの注文など、以下のことができます。 注意)この機能は基本的に社内利用を想定しています。ログインしたユーザのみがレンタル注文できます。 WordPress users can do below. Ordering a rental goods. Viewing and canceling your rented orders. WordPress users can order rentals. WordPress Administrators can do below. (It is called “operator”, which has the Role “rental_mng_operator”.) View all information ordered by the user. Determining the equipment to rent for an order. Manage the status of the rented device. You can also manage the returned items. Print the enclosed loan document when sending the device to the user. View past order history. Changing the text displayed in WordPress by customizing the message file. Customizing the format of printed order documents. Ussage: 1. Go to the “RentalGoodsManger”-“Settings” menu item and change as you like. If you want to give operator authority to other than the administrator, please add the Role “rental_mng_operator” with using such as the “User Role Editor” plugin. 2. To register the product master, go to “GoodsMaster” in “RentalGoodsManagemer”. It can be edited like Excel. 3. Please write the short code “[rental_goods_user_page]” on the page for ordering rental , such as a fixed page of WordPress. You can order a rental by opening the URL after creating the screen. 4. To view the contents of user’s order, go to “RentalGoodsManagemer”-“Order”. Please find order, and press the edit button, and change the status to “confirmed”, select the goods device to rent and press the save button. 5. Press the Print button to print out the delivery slip of the rented device and send it with the device. 6. When the device is returned, you should find the order and press edit button in “RentalGoodsManager” – “Order”, change the status to “completed” and press the save button. 7. If you want to check the past orders or future orders, please press the history button to confirm. How to change the display message: 1. Copy one of file under “wp-content/plugins/rental-goods-manager/langs” directory to wordpress theme directory “wp-content/themes/’theme name’/rental-goods-manager/langs”. 2. Change the name of the copied file to the locale you want to use. Add “custome_” before locale string. Example: “meassages_custom_en.php” for English. 3. Open the file and change the text to the right of “=>” for the desired item. Any changes will be reflected immediately. Example: If you want to change the display of the “new order” button to “Rent”, ‘BTN.NEW_ORER’ => ‘Rent’, #Please note that some HTML have a fixed display width. How to change the validation message: 1. Copy one of file under “wp-content/plugins/rental-goods-manager/Valitron/lang” directory to wordpress theme directory “wp-content/themes/’theme name’/rental-goods-manager/Valitron/lang”. 2. Change the name of the copied file to the locale you want to use. Add “custom_” before locale string. Example: “custom_en.php” for English. 3. Open the file and change the text to the right of “=>” for the desired item. Any changes will be reflected immediately. How to change the print screen: 1. Save the files under “wp-content/plugins/rental-goods-manager/custom_sample/template” Copy it under your theme folder “wp-content/themes/’theme name’/rental-goods-manager/template”. 2. Rename the copied file to “tab_print_area_custom.hbs”. 3. Open the file and edit the HTML. Since we are using handlebars, dynamic items will be replaced with {{ITEM NAME}}. ●日本語 Wordpressのユーザは以下のことができます。 レンタルの貸出し注文すること 自分がレンタルした注文を閲覧、取消すること WordPressのユーザであればレンタルの注文ができます。 WordPressの管理者は以下のことができます。 ユーザが注文した情報をすべて閲覧すること 注文に対して貸出す機器を決定すること 貸出した機器のステータスを管理すること。返却されたことも管理できます。 機器をユーザに送るときに同封する貸出書を印刷すること。 過去の注文履歴を閲覧すること messageファイルをカスタマイズすることでWordpressに表示される文言を変更すること 印刷する貸出書のフォーマットをカスタマイズすること 使い方: 1.管理画面の「貸出機器管理」の「設定」へ行き、変更したい設定を変更してください。 管理権限を管理者以外にも与えたい場合、「User Role Editor」プラグインなどでロール「rental_mng_operator」を付与してください。 2.商品マスタを登録するには、「貸出機器管理」の「貸出機器マスタ」へ遷移して行ってください。 Excelのように編集できます。 3.商品レンタルをする画面は、Wordpressの固定ページで、ショートコード[rental_goods_user_page]を記述してください。 画面作成後にURLを開くとレンタルの注文をすることができます。 4.注文した内容を見るには、「貸出機器管理」の「予約注文管理」へ遷移して行ってください。 検索し、編集ボタンを押し、ステータスを「注文確定」に変更して、貸出す商品機器を選択して保存ボタンを押してください。 5.貸出す機器の送付票を印刷ボタンを押して、印刷して機器と一緒に送ります。 6.機器が返ってきたら、「貸出機器管理」の「予約注文管理」で検索、編集ボタンを押し、ステータスを「完了」に変更して保存ボタンを押して下さい。 7.もし、過去の注文履歴や、未来の注文を確認したい場合は、注文履歴ボタンを押して確認してください。 表示メッセージを変更する方法: 1.”/wp-content/plugins/rental-goods-manager/langs”の配下のファイルの1つを 使用しているテーマフォルダ”/wp-content/themes/テーマ名/rental-goods-manager/langs”の下にコピーする。 2.コピーしたファイルの名前を使用したいロケールに変更する。ロケールの前に”custom_”を名前に付ける必要がある。 例:英語の場合は”meassages_custom_en.php”。 3.ファイルを開き、目的の項目の”=>”の右側のテキストを変更する。変更するとすぐに反映されます。 例:「新規注文」ボタンの表示を「レンタルする」に変更したい場合、’BTN.NEW_ORER’ => ‘レンタルする’, ※HTMLで表示幅が決まっているものもあるので注意すること。 妥当性チェックのメッセージを変更する方法: 1.”/wp-content/plugins/rental-goods-manager/Valitron/lang”の配下のファイルの1つを 使用しているテーマフォルダ”/wp-content/themes/テーマ名/rental-goods-manager/Valitron/lang”の下にコピーする。 2.コピーしたファイルの名前を使用したいロケールに変更する。ロケールの前に”custom_”を名前に付ける必要がある。 例:英語の場合は”custom_en.php”。 3.ファイルを開き、目的の項目の”=>”の右側のテキストを変更する。変更するとすぐに反映されます。 印刷画面を変更する方法: 1.”/wp-content/plugins/rental-goods-manager/custom_sample/template”の配下のファイルを 使用しているテーマフォルダ”/wp-content/themes/テーマ名/rental-goods-manager/template”の下にコピーする。 2.コピーしたファイルの名前を”tab_print_area_custom.hbs”に変更する。 3.ファイルを開き、HTML編集をする。handlebarsを使用しているので、動的項目は{{項目名}}で置換される。 Arbitrary section use Handsontable 6.2.2. Library(MIT License). use flatpickr.js Library. use handlebars.js Library. use just-handlebars-helpers.js Library.