Shoot the breeze, anything goes.
Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-03-23 03:19 »

Let's start a thread about something you just discovered and are kinda shocked that you didn't know.
ralphwiggum-smart.gif
ralphwiggum-smart.gif (61.38 KiB) Viewed 304 times
I'll get the ball rolling:

Paste the following in your browser's URL bar (I'm sure it doesn't work in all browsers):

Code: Select all

data:text/html,<html contenteditable>
Try typing in the main/content window.

Try copying an image from some site and past it in there.
Screenshot 2022-03-22 10.17.00 PM.png
Screenshot 2022-03-22 10.17.00 PM.png (42.56 KiB) Viewed 304 times
You can 'save webpage as', it'll be an mhtml file.

I guess it doesn't take much to impress me...

Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-03-23 03:27 »

Highlight some text and press CTRL+B, CTRL+I, CTRL+U...

User avatar
!
30%
Posts: 3111
Joined: 2013-02-25 18:36

2022-03-29 18:26 »

lol cool

dodster
0%
Posts: 1
Joined: 2022-05-03 21:51

2022-05-03 21:56 »

Steven W wrote:
2022-03-23 03:27
Highlight some text and press CTRL+B, CTRL+I, CTRL+U...
What software am I using when i do this?

Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-05-05 02:53 »

dodster wrote:
2022-05-03 21:56
Steven W wrote:
2022-03-23 03:27
Highlight some text and press CTRL+B, CTRL+I, CTRL+U...
What software am I using when i do this?
Gees, I hope you're a real person...

I'm just using Google Chrome.

Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-05-05 03:29 »

FYI, There's all kinds of 'projects' on GitHub that attempt to use this as a word processor.

I'm sure there all under diff licenses and the stupid bit, to me, is that they all use the same 'trick'. I had figured this out (even before seeing anyone else's script) and wrote some script of my own that was using keyboard shortcuts to center and align text to the right, make Headings...

Anyways some of those projects (PLEASE DON'T TAKE MY POSTING THEM AS ENDORSEMENTS...just showing some of what's out there):

https://github.com/Zachary-Rude/Word-Processor

I modded this slightly to use some native fonts included with ChromeOS Flex:
wpss.jpg
wpss.jpg (40.32 KiB) Viewed 118 times
I posted about 'WYSIWYG' Text editors in my online software post and mentioned this editor, didn't realize that it does, essentially the same thing:

https://github.com/jaredreich/pell

This really makes me laugh 'Awfice'

https://github.com/zserge/awfice, scroll down and look for the 'try it' buttons

Please don't do shit like he (the author is doing in his spreadsheet). The 'word processor' is just basically the URL above, he does add keyboard shortcuts to the 'presentation maker', but if you look closely at the 'presentation maker' it's basically using the contenteditable BS over and over again. The code used for the keyboard shortcuts is very similar to what I did.

I was thinking about an office (awfice) too... ran across this in my searchings:

https://suchanek.name/programs/spreadshit/

scroll down, select try it. You can save it locally (on drive) it'll work from there...

Spreadshit :lol:

It's kinda cool though.

Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-05-05 04:26 »

As far as the 'text editors' go, they all have quirks. Even the 'more professional' editors like CKEditor and TinyMCE. I wouldn't use their HTML for creating websites or anything but to create a quick document... eh, they'll do. I mentioned that a PDF that I created/'printed' using TinyMCE would actually open and could be edited in Google Docs. So basically, you could use any of these offline and then upload and/or convert later. Just save them as HTML until you're absolutely sure you're done (that way you can reopen them in whatever 'editor') and then use Chromes PDF printer. I haven't checked that Zachary-Rude word processor, but I'd make good and sure it used nothing online in it's code, probably make my own toolbar, essentially ensure that it would work offline and use the Open dialog instead of URLs for images.... The though occurs of specifying the width of the editable are to match the width of a document that you get from a PDF... At the moment, I'm looking more at CKEditor.

Some of the 'more professional' editor offer cloud services to convert to other formats (DOCX/OOXML). I've seen some shitty tools that will kinda embed the HTML in a DOCX, and, from what I've read, that should open in Microsoft Word, but Google docs, OpenOffice and LibreOffice don't like them.

I'm still fucking around with this stuff and eventually think I'll just make an HTML file that opens before I open the editor that will allow me to choose opening an existing HTML or start a 'new document'. I am fairly certain that TinyMCE and CKEditor could be made to edit and save TXT files too. There's probably a way to do it in Chrome (some URL?) too?

Steven W
VIP
Posts: 2369
Joined: 2013-08-10 22:40

2022-05-05 04:29 »

Steven W wrote:
2022-05-05 04:26
The though occurs of specifying the width of the editable are to match the width of a document that you get from a PDF...
Sigh

The thought occurs of specifying the width of the editable area to match the width of a document...

Post Reply