cschiller / zhongwen

Official source code of the "Zhongwen" Chrome extension
https://chrome.google.com/webstore/detail/zhongwen-chinese-english/kkmlkkjojmombglmlpbpapmhcaljjkde
GNU General Public License v2.0
314 stars 52 forks source link

Can this work on body contenteditable? #52

Open CrashLaker opened 3 years ago

CrashLaker commented 3 years ago

I'm trying to make this work here data:text/html,<body contenteditable style=line-height:1.5;font-size:20px> link

Is it possible?

ref: https://github.com/zserge/awfice

CrashLaker commented 3 years ago

this actually works here image

but it doesn't here image

yringot commented 3 years ago

I am experiencing this as well. (Firefox 89.0.2 64-bit, Windows 10; extension v.5.11.0)

As I regularly use a pinned tab with data:text/html, <body contenteditable style="font: 2rem/1.15 monospace;max-width:60rem;margin:0 auto;padding:4rem;"> as a place to temporarily store text without clutter while keeping basic formatting, I reverted to the older Zhongwen extension by leezu in which the mouseover character dictionary works.

A big Thank You to the new maintainer and others working on the code!!