MyBB Community Forums
[How To?] remove http:// in insert an image - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] remove http:// in insert an image (/thread-225550.html)



remove http:// in insert an image - ziuma - 2019-12-01

hello

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

[Image: mybb.jpg]
thank you


RE: remove http:// in insert an image - NoRules - 2019-12-01

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