renamed: contribute/plugins/selection-mode/vite-plugin-selection-mode.js -> _exports/contribute/plugins/selection-mode/vite-plugin-selection-mode.js
This commit is contained in:
parent
4448bccc9b
commit
e5debfe373
652 changed files with 19636 additions and 65901 deletions
BIN
Contribute.zip
Normal file
BIN
Contribute.zip
Normal file
Binary file not shown.
BIN
Events (2).zip
Normal file
BIN
Events (2).zip
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
|
@ -50,7 +50,7 @@ function checkTagNameEditable(openingElementNode, editableTagsList) {
|
|||
}
|
||||
|
||||
function validateImageSrc(openingNode) {
|
||||
if (!openingNode || !openingNode.name || openingNode.name.name !== 'img') {
|
||||
if (!openingNode || !openingNode.name || ( openingNode.name.name !== 'img' && openingNode.name.property?.name !== 'img')) {
|
||||
return { isValid: true, reason: null }; // Not an image, skip validation
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 492 B |
14
_exports/contribute/src/components/ScrollToTop.jsx
Normal file
14
_exports/contribute/src/components/ScrollToTop.jsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { useLocation } from 'react-router-dom';
|
||||
import { useLayoutEffect } from 'react';
|
||||
|
||||
const ScrollToTop = () => {
|
||||
const { pathname } = useLocation();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
window.scrollTo({ top: 0, left: 0, behavior: 'instant' });
|
||||
}, [pathname]);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
export default ScrollToTop;
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue