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
First, congratulations for the excellent project! I have this code that works in any html editor, including quill playground, but does not work in my quill editor inside a pywebview window: It creates 3 empty lines, past a image, move the cursor up, and then insert the text (I know I could use quill's API, but want a more generic approach to all html editors. Any idea whats is going on??
` # 5. Insert image first (if present)
if image_base64:
self.copy_image_to_clipboard(image_base64)
self.paste_image()
time.sleep(0.5)
# 6. Insert lines above the image
newline = "\r\n"
for _ in range(3): # Insere 3 linhas acima da imagem
for char in newline:
win32gui.SendMessage(focused_hwnd, win32con.WM_CHAR, ord(char), 0)
time.sleep(0.05)
# 7. Move the cursor up (3 lines)
for _ in range(3):
win32gui.SendMessage(focused_hwnd, win32con.WM_KEYDOWN, win32con.VK_UP, 0)
win32gui.SendMessage(focused_hwnd, win32con.WM_KEYUP, win32con.VK_UP, 0)
time.sleep(0.05)`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First, congratulations for the excellent project! I have this code that works in any html editor, including quill playground, but does not work in my quill editor inside a pywebview window: It creates 3 empty lines, past a image, move the cursor up, and then insert the text (I know I could use quill's API, but want a more generic approach to all html editors. Any idea whats is going on??
` # 5. Insert image first (if present)
if image_base64:
self.copy_image_to_clipboard(image_base64)
self.paste_image()
time.sleep(0.5)
Beta Was this translation helpful? Give feedback.
All reactions