TinyMCE View Image - tinymce

I have a website that you can insert an image onto. I use tinymce for the editor and the insert image function works great.
However I can't find a way for the user to be able to click on the image and see a full size version of it.
I'd like it to popup in a dialog on the page and not open in another window.
Is this a function that is available within tinymce or is it something I need to code in?

This is a function that is avaiable. You can use tinymce popups. Be aware that you need to add inlinepopups to the plugins and 'dialog_type: "modal",' to your tinymce init.
As example of how to use a tinymce popup you might want to have a look at the searchreplace plugin code in the plugins directory which uses a tinymce popup.

Related

Can we access the code of dialog/popups of the plugins like 'link' provided by tinyMCE

I want to access the buttons of the dialog box which come up after clicking on insert/edit link button plugin in tinyMCE.
I want to add a custom save function to it. Is there any way to access those buttons?
I have tried to find a way in documentation, but no luck

How to create a hint window to show gif and close the window after several seconds?

I want to write an extension of vscode. I need to show a gif somewhere. I see the hint on a variable of vscode is a window, is there an API to create such a window? Or is there other ways to create a window and close it after several seconds?
I don't think it's possible to show it in a window, but you could show it in an editor tab - more specifically, a webview. The default webview sample on that page even uses gif files. Since a webview simply renders HTML, you can use a regular <img> tag for this.
To close it again after 4 seconds, you can use setTimeout() with a callback that invokes WeviewPanel.dispose().

web matrix and orchard cms editing the "Add Widget" Page

I am very new to the use of Orchard. I installed Web Matrix 3 and added Orchard CMS to it.
My question is :
On the admin Page from which i got access to everything on the new orchard cms site, i go to "widgets" and try to add a new "Html Widget".
it redirects me to an "Add Widget" page with input boxes for title, date and other things, and also an text editor in which i can put anything i want.
I want to be able to put an image there and then be able to drag it around the editor container...so when i save this widget the image will stay on the position that i dragged it to inside the editor.
How and / or Where can i do that?
Thanks in advance!
It depends on what editor you use for the HTML body. Default it uses the TinyMCE editor, which provides an 'Add image' button to insert an image:
When you click this button you can insert an image from the image gallery of your Orchard Media section.

Firefox addon SDK - Sidebar or panel with embedded browser

I want to develop a firefox addon sdk to show a sidebar or a panel that contains an embedded browser with a navigation bar.
I have constraint too : Since the page shown in the embedded browser, I want to be able to inspect the dom, to hightlight some specific text and also to be able to select text from and send it to a specific input in sidebar with right menu.
Is there some examples or ideas how can I do this?
P.S : I'm sorry for my bad English ;)
Use sidebar module, create HTML file with a fixed textarea top:0, left:0, width: 100%. Create an iframe that takes up the rest of the sidebar. User enters text into the textarea, then listen for enter keystroke, use regex to see if it's a URL, and set iframe source to the URL if it's a URL or to a Google search if not.
Loading a whole browser into the sidebar seems like overkill, but if you really want to, try to load chrome://browser/content/browser.xul into the sidebar.

Default wordpress gallery with like button

Wanting to add a like and/or share button on the lightbox overlay with a default wordpress gallery. I know it can be done (more or less) with Nextgen but wanting to avoid having to redo all of the galleries on the site.
You will need to edit your lightbox template files. Are you using a plugin for the lightbox or is it included with the theme? Either way, you will need to locate the file and add your like button there.