You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the issue be reproduced with the default theme (daylight/midnight)?
I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
I've ruled out the possibility that the extension is causing the problem.
Describe the problem
Recently, I was testing the HTML widget of SiYuan and I noticed that some CSS code doesn't work at all. For example, in this video, you can see that when I hover over the numbers, they don't show up, even though I've tested this in an .html file and it worked flawlessly. Also, I noticed that JavaScript <script> tags don't work either.
Expected result
When integrating custom HTML and CSS into the SiYuan HTML widget, the following behaviors are expected:
CSS Hover Effects: CSS code, especially hover effects, should be fully functional within the widget. For instance, when a user hovers over elements (such as numbers or links), any specified CSS hover effects should be triggered and visible to the user. This functionality should mirror the behavior observed when the same HTML and CSS code is tested in a standalone .html file outside of SiYuan.
JavaScript Execution: JavaScript code embedded within <script> tags should execute as intended within the HTML widget. This includes any DOM manipulations, event listeners, or dynamic content changes triggered by the JavaScript code. The execution and outcome of the JavaScript should be consistent with its performance when the code is run in a standard web environment.
Screenshot or screen recording presentation
Recorded SiYuan Video:
HTML.widget.need.improvments.mp4
Recorded Browser Video:
Working.Video.mp4
Version environment
- Version: v3.0.2
- Operating System: Windows 11 Pro
- Browser (if used):
We use Custom Elements to render html code block. So to access the dom use shadowRoot
For example:
// id is your html block id
const iframeWidget = document.querySelector(`[data-node-id="20240310103238-3j71s17"] protyle-html`).shadowRoot.querySelector(".iframe-container")
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
Recently, I was testing the HTML widget of SiYuan and I noticed that some CSS code doesn't work at all. For example, in this video, you can see that when I hover over the numbers, they don't show up, even though I've tested this in an .html file and it worked flawlessly. Also, I noticed that JavaScript
<script>
tags don't work either.Expected result
When integrating custom HTML and CSS into the SiYuan HTML widget, the following behaviors are expected:
CSS Hover Effects: CSS code, especially hover effects, should be fully functional within the widget. For instance, when a user hovers over elements (such as numbers or links), any specified CSS hover effects should be triggered and visible to the user. This functionality should mirror the behavior observed when the same HTML and CSS code is tested in a standalone
.html
file outside of SiYuan.JavaScript Execution: JavaScript code embedded within
<script>
tags should execute as intended within the HTML widget. This includes any DOM manipulations, event listeners, or dynamic content changes triggered by the JavaScript code. The execution and outcome of the JavaScript should be consistent with its performance when the code is run in a standard web environment.Screenshot or screen recording presentation
Recorded SiYuan Video:
HTML.widget.need.improvments.mp4
Recorded Browser Video:
Working.Video.mp4
Version environment
Log file
siyuan.log
More information
No response
The text was updated successfully, but these errors were encountered: