MyBB Community Forums

Full Version: Why does the quote box not appear in new post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
[Image: 2017-02-03_13-14-50.gif]

See above gif for more information. Smile
Because you're typing out MyCode in the WYSIWYG mode, and it isn't live parsed - if you click the 'view source' icon (the furthest right one in the toolbar), and then press it again, it'll parse all the MyCode and and show the box.

See below when clicking 'Quote' button in WYSIWYG mode:

[Image: rKLBa9K.png]

and when clicking it when in source mode (notice the source mode button is selected in the toolbar):

[Image: DxgzgoC.png]

If you're in WYSIWYG and type MyCode, though, it won't parse it.
I know about that toggle. It still does it when I toggle the WYSIWYG/source.
Can we have your URL and a test account then?
Test
test123
Hm, have you modified the javascript for the editor or installed any plugins that might affect it?
I am not sure. I have installed lots of plugins, but I don't see how any of them could have affected it. All I recall changing is the colors and the css. It's strange, as it works for bold, italic and underline, just not quote.

[attachment=38315]

Here is the post.js script:

var Post = {
	init: function()
	{
		$(document).ready(function(){
		});
	},

	loadMultiQuoted: function()
	{
		if(use_xmlhttprequest == 1)
		{
			tid = document.input.tid.value;
			
			$.ajax(
			{
				url: 'xmlhttp.php?action=get_multiquoted&tid='+tid,
				type: 'get',
				complete: function (request, status)
				{
					Post.multiQuotedLoaded(request, status);
				}
			});
			
			return false;
		}
		else
		{
			return true;
		}
	},

	loadMultiQuotedAll: function()
	{
		if(use_xmlhttprequest == 1)
		{
			$.ajax(
			{
				url: 'xmlhttp.php?action=get_multiquoted&load_all=1',
				type: 'get',
				complete: function (request, status)
				{
					Post.multiQuotedLoaded(request, status);
				}
			});
			
			return false;
		}
		else
		{
			return true;
		}
	},

	multiQuotedLoaded: function(request)
	{
		var json = $.parseJSON(request.responseText);
		if(typeof response == 'object')
		{
			if(json.hasOwnProperty("errors"))
			{
				$.each(json.errors, function(i, message)
				{
					$.jGrowl(lang.post_fetch_error + ' ' + message, {theme:'jgrowl_error'});
				});
				return false;
			}
		}

		var id = 'message';
		if(typeof $('textarea').sceditor != 'undefined')
		{
			$('textarea').sceditor('instance').insert(json.message);
		}
		else
		{
			if($('#' + id).value)
			{
				$('#' + id).value += "\n";
			}
			$('#' + id).val($('#' + id).val() + json.message);
		}
		
		$('#multiquote_unloaded').hide();
		document.input.quoted_ids.value = 'all';
	},
	
	clearMultiQuoted: function()
	{
		$('#multiquote_unloaded').hide();
		Cookie.unset('multiquote');
	},
	
	removeAttachment: function(aid)
	{
		$.prompt(removeattach_confirm, {
			buttons:[
					{title: yes_confirm, value: true},
					{title: no_confirm, value: false}
			],
			submit: function(e,v,m,f){
				if(v == true)
				{
					document.input.attachmentaid.value = aid;
					document.input.attachmentact.value = "remove";
					
					$("input[name=rem]").parents('form').append('<input type="submit" id="rem_submit" class="hidden" />');
					$('#rem_submit').click();
				}
			}
		});
		
		return false;
	},

	attachmentAction: function(aid,action)
	{
		document.input.attachmentaid.value = aid;
		document.input.attachmentact.value = action;
	}
};

Post.init();
Just try it with fast quote disabled for me please? :-)
Ok, I will. It wasn't working before that however.

Just disabled it, still got the same problem.

It doesn't work for the code, php or quote, it's just those three buttons, the rest work with WYSIWYG mode.

Where can I find the javascript for the editor?
Bumping
Pages: 1 2