DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:editonlink

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:editonlink [2018-12-12 06:10] – [Development] sancayaplugin:editonlink [2020-09-26 11:29] (current) – lastupdate Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Adds a popover button "Edit" to inner wiki links, so you can go edit that page in one click.+description: Adds a popover button "Edit" to inner wiki links, so you can go edit that page in one click
 author     : Constant Illumination (Chang Zhao) author     : Constant Illumination (Chang Zhao)
 email      : alex@obschy.ru email      : alex@obschy.ru
 type       : action type       : action
-lastupdate : 2018-12-12+lastupdate : 2019-02-16
 compatible : Greebo, "Frusterick Manners", "Elenor Of Tsort", Detritus compatible : Greebo, "Frusterick Manners", "Elenor Of Tsort", Detritus
 tags       : button, css, editing, links, shortcut, tooltip tags       : button, css, editing, links, shortcut, tooltip
Line 67: Line 67:
 === Change Log === === Change Log ===
  
-  * **2018-12-12** //v1.2//. Some tweaks for compliance and against the bug in some browsers which would make links with "position: relative" invisible in some cases.+  * **2019-02-16** //v1.3.4//. Split by character instead of regex. 
 +  * **2019-02-16** //v1.3.3//. Final polishing & Version up. 
 +  * **2019-02-15** //v1.3.2//. Search narrowed. 
 +  * **2019-02-15** //v1.3.1//. In case there could be other 'do=' parameter in wikilink, let's add search/replace. 
 +  * **2019-02-15** //v1.3//. Bug corrected: when nice URL rewriting is off, link parameters shouldn't be removed. 
 +  * **2018-12-12** //v1.2//. Some workarounds for Firefox invisibility bug.
   * **2018-11-17** //v1.1//. Support for multiline links, ctrl-click, right-click.   * **2018-11-17** //v1.1//. Support for multiline links, ctrl-click, right-click.
     * In case of multiline link, clientBoundingRect top-right might not give the correct position of the button; so I use adding another element with the same positioning on the link click, to learn the actual coordinates of the ":after" element (the button).     * In case of multiline link, clientBoundingRect top-right might not give the correct position of the button; so I use adding another element with the same positioning on the link click, to learn the actual coordinates of the ":after" element (the button).
Line 82: Line 87:
 To discuss bugs or issues, please use the github [[https://github.com/chang-zhao/dokuwiki-editonlink/issues|tracker]]. To discuss bugs or issues, please use the github [[https://github.com/chang-zhao/dokuwiki-editonlink/issues|tracker]].
  
-:!: Due to some FF bug (?), in some templates, elements with "position: relative" (and manipulated visibility/opacity of pseudo-elementscan remain invisible when scrolled into the window. In that casetry to set "z-index: 1" or something. +Due to bug (at least, in some versions of modern Firefox & clones), in rare casessome elements can become (intermittently) invisible in the browser window. Apparentlythis has nothing to do with this plugin.
- +
-Maybe I should add z-index to wikilink style, but I'm not sure what exactly is that bug and wouldn't that be excessive for usual templates.+
  
 === ToDo/Wish List === === ToDo/Wish List ===
Line 106: Line 109:
 ===== Discussion ===== ===== Discussion =====
  
-If the link contains a parameter -- like "this:page?do=something", then the button click replaces that parameter with "?do=edit" (for the moment of clicking; then the link gets restored to its original URL). The point is, by this button you go to edit an address with any additional parameters stripped. I believe it's how the editing works anyway.+If the link contains a parameter -- like "this:page?do=something", then the button click replaces that parameter with "?do=edit" (for the moment of clicking; then the link gets restored to its original URL). The point is, by this button you go to edit a "core" addresswith any additional parameters stripped. I believe it's how the editing works anyway.
  
 An interesting development could be to show a little popup menu when clicking that button. (It would be painted by JS, only by the click, thus having no influence on the speed of the page). An interesting development could be to show a little popup menu when clicking that button. (It would be painted by JS, only by the click, thus having no influence on the speed of the page).
plugin/editonlink.1544591408.txt.gz · Last modified: 2018-12-12 06:10 by sancaya

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