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:
@ -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);
|
||||
|
Reference in New Issue
Block a user