GithubHelp home page GithubHelp logo

phantomeis / dokuwiki-copycode-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicolasprigent/dokuwiki-copycode-plugin

0.0 0.0 0.0 118 KB

Copycode plugin forked from nicolasspringent

License: GNU General Public License v2.0

JavaScript 43.40% PHP 50.79% CSS 5.81%

dokuwiki-copycode-plugin's Introduction

Dokuwiki-Copycode-plugin

Simple plugin for dokuwiki that adds a copy functionnality when clicking on a code block. https://www.dokuwiki.org/plugin:copycode

This plugin uses the global Navigator.clipboard property. It can only be used on a secured environment : https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

Change Log

2023-11-08

Thanks to @tvataire (https://github.com/tvataire) for the pull requests

  • Refactoring of the script.js file to make it easier to maintain
  • New feature : added an option to disable inline copy on right-click
  • New feature : added an option to disable auto-copy of highlighted text
  • File cleaning (useless whitespaces and writes to the console, unix file format conversion)

2023-09-21

  • Fix : added code to prevent copy after scrolling the code block.
  • New feature : added a list of cursor in configuration panel to choose the hover cursor on code blocks.

2023-05-28

  • Fix : copycode plugin now work under the .dokuwiki class instead of the mainpage id.

2022-09-12

  • Fix : commented an alert on unused mouse key clic (like previous or next buttons)

2022-03-02

  • Adds functionnality to remove extra non ascii character bug
  • Adds functionnality and code logic for new mouse actions
  • Adds inline copy on right click
  • Removing default contextmenu on right click on a code block
  • Better writing of jquery elements (using $ instead of repetitive jQuery function calls)

2021-05-09

  • Merged Pull Request from FootStark : "Add inline code-copying with option"

2021-04-22

  • Added german language file

2021-04-21

  • Added "code" html selector in jquery

2021-02-18

  • If for any reason, navigator.clipboard fails, it uses the hidden textarea hack instead
  • Added dutch language file

2020-09-21

  • Added code selection copy, with its own alert box
  • css and js cleaning

2020-09-08

Refactoring of copycode functions with navigator.clipboard function instead of hidden input hack. Fixing the jump to top bug on android systems. See https://developer.mozilla.org/en-US/docs/Web/API/Clipboard for compatible web browsers (everything but Internet Explorer).

2020-08-30

  • Fix <file> tag with no filename did not work when trying to copy the code block (nicolasprigent#4)

2020-07-01

  • Fix multi linebreaks when there is more than one code block

2020-06-25

  • Fix preventing jump to top while clicking the code block

2020-06-24

  • Fix of numbered lines issue
  • Updated date and link to github repository

2020-06-15

  • Initial release

dokuwiki-copycode-plugin's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.