Open joshlong opened 1 week ago
ive got something useful but it only does b/i/u/lists.
i need to add h1, h2, h3
i need to support images via managed files.
also: it should be possible to sort of disable or grey out the icons in the toolbar if we're in a input (vs a textarea)
thinking about managed files
could i do drag and drop on a text file? what does that even mean? or should i create a new text input editor supporting uploads ? eg in the panel you can add as many manage files as you. want (rows) and then drag a row onto the <textarea>
and the editor will put the url and the editor at your cursor or something? images added in this way would be visibile by default
hmm. ok, lets say you put the image into the markdown and it bcomes
![Alt text](http://mogul-cnd.com/a.png "a title")
that url is fragile.
what if we delete the managed file ? should we delete this image?
can have a pseudo-url format? eg:
[text](mogul-image:2342)
and then when we render the markdown on the client we swap it out to point to the actual image? simplifies life considerably and the image would be broken so that's enough.
might as well make it a thing that's available for all input/textareasa, like writnig tools currently