Переглянути джерело

If the browser didn't support the wysiwyg the text is not lost when saving drafts or in general posting and returning to the post page

Signed-off-by: emanuele <[email protected]>
emanuele 12 роки тому
батько
коміт
8f4833562b
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      Themes/default/scripts/jquery.sceditor.js

+ 4 - 4
Themes/default/scripts/jquery.sceditor.js

@@ -719,7 +719,7 @@
 				emoticon;
 
 			$.each(emoticons, function (key, url) {
-				// @todo Why did I (emanuele) add this?
+				// In SMF an empty entry means a new line
 				if (key == '')
 					emoticon = document.createElement('br');
 				else
@@ -1155,8 +1155,8 @@
 		base.getWysiwygEditorValue = function (filter) {
 			// Possible replacement:
 			// if(!$.sceditor.isWysiwygSupported())
-			if (!base.options.supportedWysiwyg)
-				return;
+			//if (!base.options.supportedWysiwyg)
+			//	return;
 
 			var	$body = $wysiwygEditor.contents().find("body"),
 				html;
@@ -1243,7 +1243,7 @@
 			var emoticons = $.extend({}, base.options.emoticons.more, base.options.emoticons.dropdown, base.options.emoticons.hidden);
 
 			$.each(emoticons, function (key, url) {
-				// @todo Why did I (emanuele) add this?
+				// In SMF an empty entry means a new line
 				if (key == '')
 					return;
 				// escape the key before using it as a regex