1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-06-29 04:01:49 +03:00

Added image resizing via drag handles

This commit is contained in:
Dan Brown
2022-01-17 17:43:16 +00:00
parent 7622106665
commit 7125530e55
8 changed files with 324 additions and 6 deletions

View File

@ -92,7 +92,7 @@ function writeNodeAsHtml(state, node) {
// formatting or content.
for (const [nodeType, serializerFunction] of Object.entries(nodes)) {
nodes[nodeType] = function (state, node, parent, index) {
if (node.attrs.align) {
if (node.attrs.align || node.attrs.height || node.attrs.width) {
writeNodeAsHtml(state, node);
} else {
serializerFunction(state, node, parent, index);