Editorial Workflows

Floating Edit

unlisted workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Edit document text in a floating-centered popup view.

Commit your changes with a refresh button.

Can be adapted further to your liking.

Shared by: Tutorial Doctor

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Text Popup ?
Source Code
import ui
import workflow
import editor
import sound

doctext = editor.get_text()
caret_loc = editor.get_selection()

def top(sender):
	editor.set_selection(0)

def bottom(sender):
	editor.set_selection(len(doctext))

def refresh(sender):
	editor.replace_text(0,len(doctext),view.text)
	sound.play_effect('Beep')

screen_size = ui.get_screen_size()
screenX = screen_size[0]
screenY = screen_size[1]


window = ui.load_view()
window.height = 200
window.width = screenX
view = window['view2']
view.text = workflow.get_input()


window.present("popover",False,(screenX,(screenY/2)),hide_title_bar=True)