DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:cellbg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:cellbg [2014-05-06 12:26] – compatible with Binky 89.28.12.13plugin:cellbg [2024-01-01 20:50] (current) – screenshots Aleksandr
Line 1: Line 1:
-====== Cell Background plugin ======+====== Cell Background Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 7: Line 7:
 type       : syntax type       : syntax
 lastupdate : 2013-10-09 lastupdate : 2013-10-09
-compatible : rincewindanguaadora bellebinky+compatible : Frusterick MannersElenor Of TsortDetritusRincewind, Angua, Adora Belle, Binky, 2014-09-29d, Greebo, !Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  : sortablejs, block, note conflicts  : sortablejs, block, note
Line 18: Line 18:
 donationurl:  donationurl: 
 ---- ----
 +
 +:!: To be uninstalled before updating to the latest **Hogfather** release (if not you get a blank page) but surprisingly by reinstalling it afterwards, it works well (tested on 2 wikis) with no more error log on web server.
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Syntax and Usage ===== ===== Syntax and Usage =====
  
-A background color is introduced by ''@'' and ended by '':''.\\  +A background color is introduced by ''@'' and ended by '':''. You can use all names and color codes from HTML. If you don't specify a color, yellow is used. See examples below:
-You can use all names and color codes from HTML.\\  +
-If you don't specify a color, yellow is used.\\  +
-See examples below:+
  
 ===== Examples ===== ===== Examples =====
  
-This code :+This code:
 <code> <code>
 ^  Header 1          Header 2  ^  Header 3        ^ ^  Header 1          Header 2  ^  Header 3        ^
Line 38: Line 37:
 |  @#6495ed:Ligne 1 |  Oui        Oui, à valider  | |  @#6495ed:Ligne 1 |  Oui        Oui, à valider  |
 |  Ligne 2          |  Oui        @orange: Oui    | |  Ligne 2          |  Oui        @orange: Oui    |
-|  @:Ligne 3        |  Oui       | @red:Non         |+|  @:Ligne 3        |  Oui        @red:Non        |
 </code> </code>
-looks like : \\  +looks like: \\  
-{{http://img25.imageshack.us/img25/3891/cellbgex1.png|exemple 1 preview}}+{{https://trello.com/1/cards/65931669e4a1f19d55a6e343/attachments/659316ef7676575985608e0a/download/cellbg-plugin-example-1.png?recache|example 1 preview}}
  
-This one :+This one:
 <code> <code>
 |  @palegreen:Validé  |  @orange:À valider  |  @red:Non fonctionnel  | |  @palegreen:Validé  |  @orange:À valider  |  @red:Non fonctionnel  |
 </code> </code>
-looks like : \\  +looks like: \\  
-{{http://img132.imageshack.us/img132/6033/cellbgex2.png|exemple 2 preview}}+{{https://trello.com/1/cards/65931669e4a1f19d55a6e343/attachments/659316f0103dead10de222e1/download/cellbg-plugin-example-2.png?recache|exemple 2 preview}}
  
 ==== Wikis using cellbg ==== ==== Wikis using cellbg ====
-[[http://www.markjayalcoholdetox.co.uk/guide/doku.php/start|Coloured table of contents]] (also uses [[http://www.dokuwiki.org/plugin:tablewidth|tablewidth plugin]] and [[http://www.dokuwiki.org/plugin:columns|columns plugin]].) (added by [[mailto:mark@markjay.co.uk|MJ]]) 
  
 +[[http://www.markjayalcoholdetox.co.uk/guide/doku.php/start|Coloured table of contents]] (also uses [[tablewidth|tablewidth plugin]] and [[columns|columns plugin]].) (added by [[mailto:mark@markjay.co.uk|MJ]])
  
 ===== Features ===== ===== Features =====
 +
   * Uses HTML color codes and names [[http://html-color-codes.info/|HTML Color Code Chart]]   * Uses HTML color codes and names [[http://html-color-codes.info/|HTML Color Code Chart]]
   * Works with other table formatting (alignment, bold, ...)   * Works with other table formatting (alignment, bold, ...)
 +
 ===== Limitations ===== ===== Limitations =====
 +
   * Doesn't work with header lines (^ character), so just don't use them if you want a specific color for these lines   * Doesn't work with header lines (^ character), so just don't use them if you want a specific color for these lines
   * May not work with plugins introducing a different syntax than the DokuWiki one for tables   * May not work with plugins introducing a different syntax than the DokuWiki one for tables
Line 63: Line 65:
  
 ===== How it works ===== ===== How it works =====
 +
 It's a hack that edit previously formatted text : It's a hack that edit previously formatted text :
   * detect if in a table by looking for a ''<td...>'' markup in the previously formatted text (''$renderer->doc'') ;   * detect if in a table by looking for a ''<td...>'' markup in the previously formatted text (''$renderer->doc'') ;
Line 73: Line 76:
  
 ===== Bugs ===== ===== Bugs =====
 +
 +==== Plugin fails with wrap-Plugin ====
 +
 +Problem description and solution: [[https://github.com/dr4Ke/cellbg/pull/17]]
  
 ==== @: syntax ==== ==== @: syntax ====
Line 85: Line 92:
 Manual installation works fine. Manual installation works fine.
 Bug : [[https://github.com/dr4Ke/cellbg/issues/issue/2]] Bug : [[https://github.com/dr4Ke/cellbg/issues/issue/2]]
 +
  
  
 ===== Compatibility Issues ===== ===== Compatibility Issues =====
-Please apply the patch from Richard MICHALOWICZ below. Otherwise the plugin [[bureaucracy]] will be broken under 2013-12-08 „Binky“. -- Alois Hockenschlohe (2014/01/16)+--  ''**No conflict**'' with **[[plugin:sortablejs|Sortablejs]]** plugin v. 2016-05-26. (php 5.3.5, Windows, DW Release 2016-06-26a “Elenor of Tsort” --- [[user>florious|Florin C.]] //2019-03-23 19:30// 
 + 
 +-- Please apply the patch from Richard MICHALOWICZ below. Otherwise the plugin [[bureaucracy]] will be broken under 2013-12-08 „Binky“. -- Alois Hockenschlohe (2014/01/16)
  
 In order to solve the problem related with the 2013-05-10a "Weatherwax" (ReferenceError: addInitEvent is not defined) you must change in the file **<dokuwiki_install_dir>/lib/plugins/cellbg/script.js** the last line as this: \\ In order to solve the problem related with the 2013-05-10a "Weatherwax" (ReferenceError: addInitEvent is not defined) you must change in the file **<dokuwiki_install_dir>/lib/plugins/cellbg/script.js** the last line as this: \\
plugin/cellbg.1399371980.txt.gz · Last modified: 2014-05-06 12:26 by 89.28.12.13

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki