Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 3 Years, 9 Months, 1 Week ago MyBB javascript parser not working properly
#11
Solved: 3 Years, 9 Months, 1 Week ago
You can force it to source mode Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#12
Solved: 3 Years, 9 Months, 1 Week ago
It wasn't an option for me.

Anyway, I fixed it and I suggest you to fix it in next releases too please. I can't assure you it won't bug anything, but it works well for me.

I edited /jscripts/bbcodes_sceditor.js file where it parses the 'align' code. So, from this code:

.set('align', {
			html: function(element, attrs, content) {
				return '<div align="' + (attrs.defaultattr || 'left') + '">' + content + '</div>';
			},
			isInline: false
		})

To this code:

.set('align', {
			html: function(element, attrs, content) {
				return '<div style="text-align:"' + (attrs.defaultattr || 'left') + '" align="' + (attrs.defaultattr || 'left') + '">' + content + '</div>';
			},
			isInline: false
		})
Reply
#13
Solved: 3 Years, 9 Months, 1 Week ago
Please post as a bug in the 1.8 bugs and issues
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)