This is a great module. I would like to ask you to take it one step further.

On my site, we teach writing. Students submit work, and we insert comments throughout their document.

Would it be possible to add a feature where I can highlight some text, and then insert a tooltip, without having to edit the code in the document?

Ideally I would highlight the text, then right click, and a dialogue box would pop up where I could add my comment. Saving, or clicking OK, would close the dialogue box and insert the tooltip into the code of the document.

Some of the wysiwyg editors let you add a link this way. Select the text, click, and add the link.

Is that possible with Tooltip?

Thanks.

Comments

clashar’s picture

subscribe

Matt-H’s picture

This sounds like it would need to be a button plugin for whatever wysiwyg editor you are using.

m_i_c_h_a_e_l’s picture

Thanks for the suggestion.

I'm learning fast, and I'm getting pretty good at using Drupal, but I still have a long way to go.

I'm using Wysiwyg. It sounds like you are saying that I need to create a function, controlled by a button on the Wysiwyg toolbar, that would allow me to insert code at the cursor point, or wrapped around the selected text.

Is that more or less correct?

Can you point me in the general direction I need to go to start learning about how to do that? It's not an urgent project. I have plenty of time.

Thanks again for your tip.

weseze’s picture

Sounds like a really cool feature!
I think you best start by looking at simple examples of existing projects that also add a button to the wysiwyg editor. I think the Nodepicker module might get you started: http://drupal.org/project/nodepicker

drupalok’s picture

did anyone get anywhere? :)