DIY: handy notepad alike "addon" #833
Joduai
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I needed a simple solution allowing me to store some snippets, texts, special chars etcetera, and access them during content creation. Approach is simple: add a hidden page, open it in a modal window, copy/paste/write what I need, close, keep writing content.
Without saving it, switching to another page, and getting back again, as it breaks the workflow.
Code grew a bit more than I expected, but for those who would be interested, it's quite simple to implement.
I switched from loading only static content of the page into iframe, as it allows to edit and save "notepad's" content inside modal window.
add below snippets:
script inside
<head>
section, below jquery and jquery-ui invokeiframe code between
<body>
and<div id="top"></div>
elementslast thing is the menu item to invoke the modal window
search for
<!-- Sidebar Menu -->
and paste the code in the place you wish to see the buttonThat's all.
Hope it will be as useful for you, as it is for me.
ps. remember that changes made in this file pretty sure won't survive htmly update
Beta Was this translation helpful? Give feedback.
All reactions