https://bugzilla.wikimedia.org/show_bug.cgi?id=42945

       Web browser: ---
            Bug ID: 42945
           Summary: CK Editor is not showed on the server. Editor is part
                    of default wiki instalation 1.20.1
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: PC
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: major
          Priority: Unprioritized
         Component: [other]
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Hello, 
i just upgradged my wiki to 1.20.1

MediaWiki    1.20.1
PHP    5.4.3 (apache2handler)
MySQL    5.1.33-community-log


I install on localhost WYSIWYG / CKEditor (is part of instalation package) and
CKeditor  works fine on localhost. But editor doesnt work (i dont see editor)
if i move to server.
WYSIWYG extension (Verze 1.5.6_0 [B551], CKEditor 3.6 (revision 6902))

IE showed me small error for server address (for localhost doesnt show)

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; MS-RTC LM 8; InfoPath.3; .NET4.0C)
Timestamp: Fri, 7 Dec 2012 15:12:49 UTC

Message: 'length' is null or not an object
Line: 8
Char: 15
Code: 0
URI: http://server_address/extensions/WYSIWYG/ckeditor/config.js?t=B49E5BQ


Message: Object required
Line: 493
Char: 3
Code: 0
URI: http://server_address/index.php?title=Hlavn%C3%AD_strana&action=edit



I discovered one more think - i cannoct see editor for localhost too if i swith
in IE to Compatibility view. I can see editor if i "unswitch" compatibility
view. 

I also try to switch and unswitch for server, but no change - editor is still
not showed.

I also try to click on server "Show RichTextEditor" but without change - editor
is not showed.

Then I comment couple lines in config.js and now i can see editor. You can
recognize my comment (//) that they are on the biggining of rows. But there
starts new problem - text is completelly broken if i edit something in editor
(i think that this is because i comment some important thinks). So i bring
changes back and again i cannoct see editor :-(


/if (!String.prototype.InArray) {
//    String.prototype.InArray = function(arr) {
//        for(var i=0;i<arr.length;i++) {
//            if (arr[i] == this)
//                return true;
//        }
//        return false;
//    }
//}

CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    var showTbButton = (typeof window.parent.wgCKEditorHideDisabledTbutton ==
'undefined');

    CKEDITOR.plugins.addExternal( 'mediawiki', CKEDITOR.basePath +
'plugins/mediawiki/' );
    CKEDITOR.plugins.addExternal( 'mwtemplate', CKEDITOR.basePath +
'plugins/mwtemplate/' );

    // Remove the link plugin because it's replaced with the mediawiki plugin
    //CKEDITOR.config.plugins = CKEDITOR.config.plugins.replace(
/(?:^|,)link(?=,|$)/, '' );
    var extraPlugins = "mediawiki,mwtemplate";

    config.toolbar = 'Wiki';
    // var origToolbar = CKEDITOR.config.toolbar_Full

    // SMWHalo extension
//    var qiButton, stbButton;
//    if (
('SMW_HALO_VERSION').InArray(window.parent.wgCKeditorUseBuildin4Extensions) ||
showTbButton) {
//        CKEDITOR.plugins.addExternal( 'smw_qi', CKEDITOR.basePath +
'plugins/smwqueryinterface/' );
//        CKEDITOR.plugins.addExternal( 'smw_toolbar', CKEDITOR.basePath +
'plugins/smwtoolbar/' );
//        extraPlugins += ",smw_qi,smwtoolbar";
//        qiButton = 'SMWqi';
//        stbButton = 'SMWtoolbar';
//    }
    // DataImport extension
//    var wsButton;
//    if (
('SMW_DI_VERSION').InArray(window.parent.wgCKeditorUseBuildin4Extensions) ||
showTbButton) {
//        CKEDITOR.plugins.addExternal( 'smw_webservice', CKEDITOR.basePath +
'plugins/smwwebservice/' );
//        extraPlugins += ",smw_webservice";
//        wsButton = 'SMWwebservice';
//    }
    // SemanticRule extension
//    if
(('SEMANTIC_RULES_VERSION').InArray(window.parent.wgCKeditorUseBuildin4Extensions))
{
//        CKEDITOR.plugins.addExternal( 'smw_rule', CKEDITOR.basePath +
'plugins/smwrule/' );
//        extraPlugins += ",smw_rule";
//    }
    // Richmedia extension
    var rmButton;
//    if (
('SMW_RM_VERSION').InArray(window.parent.wgCKeditorUseBuildin4Extensions) ||
showTbButton) {
//        CKEDITOR.plugins.addExternal( 'smw_richmedia', CKEDITOR.basePath +
'plugins/smwrichmedia/' );
//        extraPlugins += ",smw_richmedia";
//        rmButton = 'SMWrichmedia';
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to