plugin:divalign2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:divalign2 [2021-01-31 10:04] – jaddawyn | plugin:divalign2 [2023-06-09 14:51] – urs | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== DivAlign2 Plugin ====== | ||
- | |||
- | ---- plugin ---- | ||
- | description: | ||
- | author | ||
- | email : lambalicious [at] tuta [dot] io | ||
- | type : syntax | ||
- | lastupdate : 2020-06-11 | ||
- | compatible : " | ||
- | depends | ||
- | conflicts | ||
- | similar | ||
- | tags : style, typography, odt, toolbar | ||
- | |||
- | downloadurl: | ||
- | bugtracker : https:// | ||
- | sourcerepo : https:// | ||
- | donationurl: | ||
- | demourl: | ||
- | ---- | ||
- | |||
- | The **divalign2 plugin** provides a means to specify [[wp> | ||
- | |||
- | Some years ago, Jason Byrne contributed with his first plugin, [[plugin: | ||
- | |||
- | Feel free to use and comment (see => | ||
- | |||
- | ===== Usage ===== | ||
- | Simple syntax used to align text or images. | ||
- | |||
- | :!: Note that you can achieve the same results by using the [[: | ||
- | |||
- | ==== Download and Installation ==== | ||
- | |||
- | Search and install the plugin using the [[plugin: | ||
- | |||
- | The link above will always point to the < | ||
- | |||
- | :!: **Note**: As of June 2020, plugin is in release candidate stages to check compatibility with Hogfather. If you can test the plugin and report back, feedback is welcome! | ||
- | |||
- | :!: **Note**: Versions of Dokuwiki previous to // | ||
- | |||
- | |||
- | ==== Syntax ==== | ||
- | |||
- | Align Left: | ||
- | |||
- | #;; | ||
- | This is aligned left. | ||
- | #;; | ||
- | |||
- | Align Right: | ||
- | |||
- | ;;# | ||
- | This is aligned right. | ||
- | ;;# | ||
- | |||
- | Align Center: | ||
- | |||
- | ;#; | ||
- | This is aligned center. | ||
- | ;#; | ||
- | |||
- | Align Justify: | ||
- | |||
- | ### | ||
- | This text is justified. | ||
- | ### | ||
- | |||
- | |||
- | |||
- | :!: Previous versions of this plugin had a " | ||
- | |||
- | |||
- | |||
- | Not working as expected, Example : | ||
- | ;#; | ||
- | Nothing Happens, this text is not centralize!! | ||
- | ;#; | ||
- | |||
- | Also when trying to align headers | ||
#;; | #;; | ||
- | == Will you marry me .. Tuli :-) == | + | This is aligned left. |
#;; | #;; | ||
- | |||
- | - The markup has to be on separate lines | ||
- | - You cannot have markup in headers | ||
- | ==== Demo ==== | ||
- | |||
- | **Want to see the plugin in action?** http:// | ||
- | |||
- | |||
- | =====Other Details===== | ||
- | |||
- | ====Edit Toolbar==== | ||
- | |||
- | The plugin now incorporates a Toolbar Picker Button for the alignment mode. You click it, and are presented with four buttons to set left, center, right or justified alignment. Thanks to //faraday// for new, sleeker icons integarted in the divalign-2.3 versions and above. | ||
- | |||
- | === script.js === | ||
- | The '' | ||
- | <file javascript script.js> | ||
- | |||
- | if(window.toolbar!=undefined){ | ||
- | var align_da2_arr={ | ||
- | '#;; | ||
- | ';#; | ||
- | ';;# | ||
- | '### | ||
- | toolbar[toolbar.length] = { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | /* In some configurations, | ||
- | " | ||
- | */ | ||
- | }; | ||
- | } | ||
- | |||
- | /* end of divalign2/ | ||
- | </ | ||
- | In addition, you should probably remove ''/ | ||
- | --- [[user> | ||
- | ====Browser Support==== | ||
- | |||
- | Any browser that supports CSS will align the content correctly. Not much of an issue here. | ||
- | |||
- | ODT export should render with the correct alignment. | ||
- | |||
- | Text renderers and devices happily ignore this plugin. | ||
- | |||
- | ====Syntax details==== | ||
- | |||
- | Because it uses the same syntax, this plugin is marked as both **similar** and **conflicting** with the original Divalign. All tags are the same and have similar requirements except where noted below. | ||
- | |||
- | Unlike the original plugin, '' | ||
- | |||
- | ;;# | ||
- | This text will not be aligned right. ;;# | ||
- | |||
- | |||
- | This plugin may interfere with other plugins that float content (such as // | ||
- | |||
- | ====Changelog==== | ||
- | |||
- | See the repository page or [[https:// | ||
- | |||
- | |||
- | ==== Source Code ==== | ||
- | |||
- | Unzipping the file from the download link above will give you the source code, as will do checking the source repo. It is free, in the GPL definition of the word. | ||
- | |||
- | ===== Discussion ===== | ||
- | |||
- | :?: [[plugin: | ||
- | |||
- |
plugin/divalign2.txt · Last modified: 2023-10-30 22:36 by Klap-in