mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
e6c86089d2
commit
e11f93e9f1
3 changed files with 12 additions and 5 deletions
|
|
@ -36,7 +36,7 @@ export const abcRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (abcElements.length > 0) {
|
if (abcElements.length > 0) {
|
||||||
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.2.2`, "protyleAbcjsScript").then(() => {
|
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.5.0`, "protyleAbcjsScript").then(() => {
|
||||||
const wysiswgElement = hasClosestByClassName(element, "protyle-wysiwyg", true);
|
const wysiswgElement = hasClosestByClassName(element, "protyle-wysiwyg", true);
|
||||||
abcElements.forEach((e: HTMLDivElement) => {
|
abcElements.forEach((e: HTMLDivElement) => {
|
||||||
if (e.getAttribute("data-render") === "true") {
|
if (e.getAttribute("data-render") === "true") {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/**!
|
Copyright (c) 2009-2024 Paul Rosen and Gregory Dyke
|
||||||
Copyright (c) 2009-2023 Paul Rosen and Gregory Dyke
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -19,5 +18,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
**This text is from: http://opensource.org/licenses/MIT**
|
**This text is from: http://opensource.org/licenses/MIT**
|
||||||
!**/
|
|
||||||
9
app/stage/protyle/js/abcjs/abcjs-basic-min.min.js
vendored
Normal file
9
app/stage/protyle/js/abcjs/abcjs-basic-min.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue