Skip to content

這是一個可以讓DICE程式教學平台開啟複製貼上的程式碼。

Notifications You must be signed in to change notification settings

zc-0120/DICE-Copy-Freedom-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DICE-Copy-Freedom

這是一個可以讓DICE程式教學平台開啟複製貼上的功能,程式碼請看index.js

How to use

  1. 登入DICE,開啟Dev tool。
  2. 貼上程式碼
    const editor = ace.edit(document.querySelector(".ace_editor"));
    editor.commands.addCommand({
       name: "forcePaste",
       bindKey: { win: "Ctrl-V", mac: "Command-V" },
       exec: function (editor) {
          navigator.clipboard.readText().then((text) => {
             editor.insert(text);
          });
       },
    });

About

這是一個可以讓DICE程式教學平台開啟複製貼上的程式碼。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors