MyBB Community Forums

Full Version: remove http:// in insert an image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello

i want to ask how to remove http:// in insert an image

[Image: mybb.jpg]
thank you
Hi,

1] in /jscripts/bbcodes_sceditor.js

Find:
.set('image', {
	exec: function (caller) {
		var editor = this,
		content = $(this._('<form><div><label for="link">{0}</label> <input type="text" id="image" value="http://" /></div>' +
		'<div><label for="width">{1}</label> <input type="text" id="width" size="2" /></div>' +
		'<div><label for="height">{2}</label> <input type="text" id="height" size="2" /></div></form>',
		this._("URL:"),

Change the value part to whatever you want

2] in /jscripts/jquery.sceditor.min.js

Find:
<div><input type="button" class="button" value="{insert}" /></div>',image:'<div><label for="link">{url}</label> <input type="text" id="image" dir="ltr" placeholder="https://" />

Change the placeholder to whatever you want


3] in /jscripts/jquery.sceditor.bbcode.min.js

Find:
<div><input type="button" class="button" value="{insert}" /></div>',image:'<div><label for="link">{url}</label> <input type="text" id="image" dir="ltr" placeholder="https://" /></div>

Change the placeholder to whatever you want


4] /jscripts/jquery.sceditor.xhtml.min.js

Find:
<div><input type="button" class="button" value="{insert}" /></div>',image:'<div><label for="link">{url}</label> <input type="text" id="image" dir="ltr" placeholder="https://" /></div>

Change the placeholder to whatever you want

5] in /jscripts/sceditor.min.js

Find:
<div><input type="button" class="button" value="{insert}" /></div>',image:'<div><label for="link">{url}</label> <input type="text" id="image" dir="ltr" placeholder="https://" /></div>

Change the placeholder to whatever you want