Better HN
topnewbestaskshowjobs
Log inSign up

gojko

662 karma · joined Feb 18, 2008 (18y ago) · 126 submissions

Submissions

1.

We have an employee whose last name is Null (2010)(stackoverflow.com ↗)

72 points · by gojko · 13y ago · 35 comments

2.

Let's break the agile testing quadrants(gojko.net ↗)

1 points · by gojko · 13y ago · discuss

3.

Writing “As a User” does not make it a user story(gojko.net ↗)

3 points · by gojko · 13y ago · discuss

4.

Usable Usability - checklist(mindmup.com ↗)

1 points · by gojko · 13y ago · discuss

5.

Scrum, velocity, and driving down the motorway the wrong way(gojko.net ↗)

1 points · by gojko · 13y ago · discuss

6.

How we solved our #1 product management problem(gojko.net ↗)

2 points · by gojko · 13y ago · discuss

7.

Mind maps with proper version control(blog.mindmup.com ↗)

4 points · by gojko · 13y ago · discuss

8.

Godaddy DNS down?

3 points · by gojko · 13y ago · 2 comments

9.

The perils of being the voice of reason(productownersurvivalcamp.com ↗)

1 points · by gojko · 13y ago · discuss

10.

How we're making online collaboration more effective(blog.mindmup.com ↗)

1 points · by gojko · 13y ago · discuss

11.

Ask HN: favourite testing catchphrases and idioms

1 points · by gojko · 13y ago · discuss

12.

Everyone on HN, thanks a million

30 points · by gojko · 13y ago · 3 comments

comment 13y ago · link · parent

yes, we don't hook anything. i've not tried this, but you should be able to hook on to the paste event for that div (the div is really your markup, we don't do any magic shadow iframing)

comment 13y ago · link · parent

this does exactly that, sets a div to contenteditable=true, but also binds hotkeys for common operations, extends with toolbar support, provides filereader for drag&drop.

comment 13y ago · link · parent

we don't create a toolbar. It's up to you. so if you don't put buttons for that, they won't be able to do it. hotkeys on the keyboard are also configurable, you can just bind certain items so users won't be able to execute the other commands unless they open a javascript console and call doc.executeCommand manually (but then again, that's difficult to prevent for other editors)

comment 13y ago · link · parent

could you check what content type the filereader reports when you upload from safari? I've just tried again with safari on OSX and it seems to work. perhaps I should detect the extension, not just content type...

comment 13y ago · link · parent

Firefox on OSX works fine... so it's a combination. I don't have a linux box handy to test, but it would be nice if you could see if keydown is the problem, and if so we'll change it.

comment 13y ago · link · parent

I think that's a bit harsh. First of all, we got it to the point where it's useful for us and shared it. If it's close to what would be useful to you but not 100% there, fork, extend and submit a pull request, that is how opensource works.

I've not tested it in IE because IE is simply not on the critical path for us. That doesn't mean it does not work in IE, I've just not tested it.

After about three months, we looked at usage patterns for MindMup and decided to drop official IE support, as it represents less than 2% of our usage and most people have an alternate browser installed as well.

If IE is on the critical path for you, you could contribute by testing and submitting fixes.

comment 13y ago · link · parent

It's not tested in IE, but we don't use any browserbspecific code (apart from chrome speech) so it might work just fine.

For server uploads, this would be pretty easy as a callback.

comment 13y ago · link · parent

Inlines a data url using FileReader

comment 13y ago · link · parent

You can make it create paragraphs and headings by adding a button for the formatBlock command to your toolbar. Google for execCommand, all those things are supported out of the box.

comment 13y ago · link · parent

no, this is an input field with chrome speech enabled (<input type="text" x-webkit-speech>). The microphone icon you see is the right part of that field, and the text is transparent. We've done it like that because at the moment only input fields support speech input in chrome, and we couldn't find a way to activate programatically.

There is no onclick event on that part, it's just part of the text field.

comment 13y ago · link · parent

Thanks for reporting this. I didn't test under Linux as I don't have a linux box handy. We bind keyboard events to jquery keydown. Is it better to bind to something else for FF/Linux?

comment 13y ago · link · parent

can you give me a bit more info on "can't"? Did you try drag & drop or toolbar? what file type have you tried? We have a filter on content type in the editor, so only things read with content type image/* are inserted.

Perhaps this is too strict?

re "code" button, this would be trivial to implement but doesn't really belong in the widget. Just get the html out using jquery (it's your element) and show that instead of the element by passing through a formatter (or just jquery.text())

comment 13y ago · link · parent

:( thanks for letting me know, I've fixed it

comment 13y ago · link · parent

I've not tried this, but I believe this would come down to creating a button that calls insertHtml with the basic table strucure, and calling enableInlineTableEditing before that.

We just pass calls to execCommand, anything that's supported with that should work out of the box https://developer.mozilla.org/en/docs/Rich-Text_Editing_in_M...

comment 13y ago · link · parent

thanks, it seems that's done the trick. I've republished the page

comment 13y ago · link · parent

fantastic. i'm looking forward to your pull requests :)
12345