[xwiki-notifications] r8804 - xwiki-platform/web/branches/xwiki-web-1.3/standard/src/main/webapp/tiny_mce
ludovic (SVN)
notifications at xwiki.org
Tue Apr 1 12:04:08 CEST 2008
Author: ludovic
Date: 2008-04-01 12:04:07 +0200 (Tue, 01 Apr 2008)
New Revision: 8804
Modified:
xwiki-platform/web/branches/xwiki-web-1.3/standard/src/main/webapp/tiny_mce/tiny_mce.js
Log:
XWIKI-2265 Deactivate Wysiwyg editor under Safari and give an optional warning message
Modified: xwiki-platform/web/branches/xwiki-web-1.3/standard/src/main/webapp/tiny_mce/tiny_mce.js
===================================================================
--- xwiki-platform/web/branches/xwiki-web-1.3/standard/src/main/webapp/tiny_mce/tiny_mce.js 2008-04-01 09:43:16 UTC (rev 8803)
+++ xwiki-platform/web/branches/xwiki-web-1.3/standard/src/main/webapp/tiny_mce/tiny_mce.js 2008-04-01 10:04:07 UTC (rev 8804)
@@ -254,10 +254,20 @@
// Only do this once
if (this.configs.length == 0) {
- // Is Safari enabled
- if (this.isSafari && this.getParam('safari_warning', false))
- alert("Safari support is very limited and should be considered experimental.\nSo there is no need to even submit bugreports on this early version.\nYou can disable this message by setting: safari_warning option to false");
-
+ // Is Safari enabled
+ if (this.isSafari && this.getParam('safari_warning', true)) {
+ if (this.getParam('safari_notsupported', true)) {
+ if (this.getParam('safari_notsupported_message', '') != '')
+ alert(this.getParam('safari_notsupported_message'));
+ else
+ alert('Editing tools in this location are not supported by the Safari browser.\n\nPlease use the Firefox browser to take advantage of these features.');
+ } else {
+ if (this.getParam('safari_warning_message','') != '')
+ alert(this.getParam('safari_warning_message'));
+ else
+ alert('Safari support is very limited and should be considered experimental.\nSo there is no need to even submit bugreports on this early version.');
+ }
+ }
if (typeof(TinyMCECompressed) == "undefined") {
tinyMCE.addEvent(window, "DOMContentLoaded", TinyMCE_Engine.prototype.onLoad);
@@ -277,6 +287,7 @@
this.loadScript(tinyMCE.baseURL + '/langs/' + this.settings['language'] + '.js');
this.loadCSS(this.settings['editor_css']);
+
// Add plugins
var p = tinyMCE.getParam('plugins', '', true, ',');
if (p.length > 0) {
@@ -498,6 +509,11 @@
},
addMCEControl : function(replace_element, form_element_name, target_document) {
+ // Editor is currently not supported on Safari
+ if (this.isSafari) {
+ return;
+ }
+
var id = "mce_editor_" + tinyMCE.idCounter++;
var inst = new TinyMCE_Control(tinyMCE.settings);
More information about the notifications
mailing list