Sha256: 2270ea255ad4cbb7f7c1ddddedaf67dd5ac5ba8b533f172213c5cb23add25cd5

Contents?: true

Size: 823 Bytes

Versions: 15

Compression:

Stored size: 823 Bytes

Contents

(function(punymce) {
	punymce.plugins.Image = function(ed) {
		var I18n = punymce.I18n;

		if (!ed.settings.image || ed.settings.image.skip_css)
			punymce.DOM.loadCSS(punymce.baseURL + '/plugins/image/css/editor.css');

		// Add image command
		punymce.extend(ed.commands, {
			mceInsertImage : function(u, v, e) {
				var tx, f = ed.selection.getNode();

				tx = prompt(I18n.entersrc, f.nodeName == "IMG" ? ed.dom.getAttr(f, "src") : "");
				if (tx)
					ed.selection.setNode(ed.dom.create('img', {src : tx}));
			}
		});

		// Add tools
		punymce.extend(ed.tools, {
			image : {cmd : 'mceInsertImage', title : I18n.insertimage}
		});
	};

	// English i18n strings
	punymce.extend(punymce.I18n, {
		insertimage : 'Insert image',
		entersrc : 'Enter the URL of the image'
	});
})(punymce);

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
radiant-forum-extension-2.1.6 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.1.4 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.1.3 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.1.2 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.1.1 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.9 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.8 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.7 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.6 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.5 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.4 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.3 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.2 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.1 public/punymce/plugins/image/image_src.js
radiant-forum-extension-2.0.0 public/punymce/plugins/image/image_src.js