Changeset 1131083
- Timestamp:
- 04/09/2015 10:18:05 AM (11 years ago)
- File:
-
- 1 edited
-
html-post-editor-new/trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
html-post-editor-new/trunk/readme.txt
r1131040 r1131083 15 15 The plugin adds HTML editor to the default post editor. The editor is accessible through a new HTML tab. When opening the tab the editor loads the raw HTML source of the post, formats it and applies Ace Editor to the input area. So the edit area has main features from this web editor: syntax highlight, line numbers, highlight of matching tags and brackets, keyboard shortcuts. 16 16 17 The plugin is based on the ACE Editor for WP [https://wordpress.org/plugins/ace-editor-for-wp/]plugin. It's updated for Wordpress 4.1 and Ace editor 1.1.8.17 The plugin is based on the [ACE Editor for WP](https://wordpress.org/plugins/ace-editor-for-wp/) plugin. It's updated for Wordpress 4.1 and Ace editor 1.1.8. 18 18 19 19 … … 37 37 38 38 = Usage = 39 39 40 40 1. To open the HTML tab first make sure you are on the Visual tab because the script loads the data from the TinyMCE editor which is loaded only when the Visual tab activates. 41 41 2. When you are on the Text tab the HTML tab is disabled and has a light red background so you won't be able to switch to it until you activate the Visual tab. … … 45 45 46 46 = Working with features = 47 47 48 48 1. Multicursor lets you edit multiple regions at the same time. You can use default shortcuts to add remove regions or select multiple blocks with mouse holding Ctrl key. 49 2. Default keyboard shortcuts for the Ace editor can be found on the Ace GitHub Wiki page [https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts] or on the Ace Editor Shortcuts page I created for the Wordpress version of this editor [http://pcadvice.co.nf/blog/ace-editor-shortcuts/]. Here I selected some shortcuts and organized them by categories.49 2. Default keyboard shortcuts for the Ace editor can be found on the [Ace GitHub Wiki](https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts) page or on the [Ace Editor Shortcuts](http://pcadvice.co.nf/blog/ace-editor-shortcuts/) page I created for the Wordpress version of this editor. Here I selected some shortcuts and organized them by categories. 50 50 3. The Search box gives additional functions: 51 51 - Search All instances … … 53 53 - Whole word search 54 54 - Replace content 55 - Replace All 56 It is calledwith Ctrl+F and Ctrl+H combinations.55 - Replace All 56 It shows with Ctrl+F and Ctrl+H combinations. 57 57 4. The editor area can be resized using the bottom (southern) handle but doesn't remember its size after switching 58 58 5. Emmet snippets are used to improve code typing. The documentation: 59 - Basic Usage [http://docs.emmet.io/abbreviations/]60 - Full list of HTML and CSS snippets [http://docs.emmet.io/cheat-sheet]61 6. Full screen mode is not a default Ace Editor feature. I've taken the idea from a demo page in the Ace build package [https://github.com/ajaxorg/ace-builds/tree/master/demo]. The page is named scrollable-page.html. It adds a new custom shortcut to the editor which toggles the full/normal mode. So I set this function to the F11 key. The function extends the editor container to the Wordpess admin boundaries but doesn't hide top and left menus. It also works with if the windows size is changed or the left menu is collapsed. But to fill the available space the F11 key must be pressed two times when the editor is in the full screen mode.59 - [Basic Usage](http://docs.emmet.io/abbreviations/) 60 - [Full list](http://docs.emmet.io/cheat-sheet) of HTML and CSS snippets 61 6. Full screen mode is not a default Ace Editor feature. I've taken the idea from a demo page in the [Ace build package](https://github.com/ajaxorg/ace-builds/tree/master/demo). The page is named scrollable-page.html. It adds a new custom shortcut to the editor which toggles the full/normal mode. So I set this function to the F11 key. The function extends the editor container to the Wordpess admin boundaries but doesn't hide top and left menus. It also works with if the windows size is changed or the left menu is collapsed. But to fill the available space the F11 key must be pressed two times when the editor is in the full screen mode. 62 62 If you need to change this F11 key to other write me a request and I'll add an option to the options page. 63 63 7. The top Word Wrap checkbox appears when the HTML tab is switched to. By default the editor has word wrapping enabled. You can toggle this option with the checkbox. But it only remembers its state in the current editor session. … … 68 68 69 69 = The Options Page = 70 70 71 71 1. Font size of the editor may be set in any CSS units (px, pt, em) 72 72 2. Editor theme is chosen of default Ace Editor themes plus my custom theme Sublime which is the default theme for the plugin … … 76 76 = Other Notes = 77 77 78 1. Emmet plugin works on the specially built package for the Ace Editor. Its source is here [https://github.com/cloud9ide/emmet-core]. And I reduced its size by removing the Underscore.js part and CSS snippets. So the final package is here [https://github.com/mortalis13/emmet-for-ace-css].79 2. When the HTML tab is loaded the source code is first represented as one long line. So I used the JS Beautifier [https://github.com/beautify-web/js-beautify/tree/master/js] tool and exactly its beautify-html.js subscript to format that line so it has some readable structure. Additionally I applied my own function to have some blank lines before <p> and <pre>tags.80 3. I've put only the minified version of the Ace Editor scripts to the plugin package. To get the full uncompressed files go to its GitHub repository [https://github.com/ajaxorg/ace-builds]78 1. Emmet plugin works on the specially built package for the Ace Editor. Its source is [here](https://github.com/cloud9ide/emmet-core). And I reduced its size by removing the Underscore.js part and CSS snippets. So the final package is [here](https://github.com/mortalis13/emmet-for-ace-css). 79 2. When the HTML tab is loaded the source code is first represented as one long line. So I used the [JS Beautifier](https://github.com/beautify-web/js-beautify/tree/master/js) tool and exactly its beautify-html.js subscript to format that line so it has some readable structure. Additionally I applied my own function to have some blank lines before `<p>` and `<pre>` tags. 80 3. I've put only the minified version of the Ace Editor scripts to the plugin package. To get the full uncompressed files go to its [GitHub repository](https://github.com/ajaxorg/ace-builds) 81 81 82 82 = Resource Links = 83 83 84 1. Ace Editor Main Site [http://ace.c9.io] and GitHub repository [https://github.com/ajaxorg/ace]85 2. Ace Builds GitHub repository [https://github.com/ajaxorg/ace-builds]with sources86 3. Ace Editor Demo Pages [https://github.com/ajaxorg/ace-builds/tree/master/demo]87 4. Ace Editor Keyboard Shortcuts [https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts] and my edition [http://pcadvice.co.nf/blog/ace-editor-shortcuts]88 5. Emmet plugin Main Site [http://emmet.io], Documentation [http://docs.emmet.io], List of Abbreviations [http://docs.emmet.io/cheat-sheet]89 6. Special Emmet package [https://github.com/mortalis13/emmet-for-ace-css]for the Ace Editor90 7. JS Beautifier [https://github.com/beautify-web/js-beautify/tree/master/js]84 1. [Ace Editor Main Site](http://ace.c9.io) and [GitHub repository](https://github.com/ajaxorg/ace) 85 2. [Ace Builds GitHub repository](https://github.com/ajaxorg/ace-builds) with sources 86 3. [Ace Editor Demo Pages](https://github.com/ajaxorg/ace-builds/tree/master/demo) 87 4. [Ace Editor Keyboard Shortcuts](https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts) and [my edition](http://pcadvice.co.nf/blog/ace-editor-shortcuts) 88 5. Emmet plugin [Main Site](http://emmet.io), [Documentation](http://docs.emmet.io), [List of Abbreviations](http://docs.emmet.io/cheat-sheet) 89 6. [Special Emmet package](https://github.com/mortalis13/emmet-for-ace-css) for the Ace Editor 90 7. [JS Beautifier](https://github.com/beautify-web/js-beautify/tree/master/js) 91 91 92 92
Note: See TracChangeset
for help on using the changeset viewer.