picia26 / mathmleditor

Automatically exported from code.google.com/p/mathmleditor
0 stars 0 forks source link

Error while type formula #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a panel with the editor as popup, I pop it up first time, I can edit 
normaly
2. Close the popup
3. Open again a popup and click inside the editor to modify something
4. error eech time

What version of the product are you using? On what operating system?
Lastest version of flex mathml editor

Please provide any additional information below.

Error code
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la 
méthode d'une référence d'objet nul.
    at learnmath.mathml.components::MathMLEditor/returnFocus()[Z:\devzone\flex\MathMLEditorLibProject\src\learnmath\mathml\components\MathMLEditor.as:126]
    at learnmath.windows.apps::EditorApp/changeStyleToMenu()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at learnmath.mathml.edit::SelectManager$/selectNode()
    at learnmath.windows.elements::PropertiesPannel/clickUpdate()

Original issue reported on code.google.com by tantuan....@gmail.com on 22 Oct 2010 at 3:08

GoogleCodeExporter commented 9 years ago
thank you, I will verify

Original comment by ionel.alexandru@gmail.com on 22 Oct 2010 at 5:06

GoogleCodeExporter commented 9 years ago
Have the same issue when I create just a basic project.
The application have just a button to open a popup which only contain 
mathmlEditor.
When I open the popup, it crash.
The popup only contain :

<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
width="400" height="300" xmlns:fmath="http://www.fmath.info" 
creationComplete="init();">
<mx:Script>
        <![CDATA[

            protected function initEditor():void
            {
                editorId.setConfiguration("defaultFont", "fraktur");
                editorId.setConfiguration("defaultFontSize", "40");
                editorId.setConfiguration("defaultBold", "true");
                editorId.setConfiguration("defaultItalic", "true");
                editorId.setConfiguration("defaultForegroundColor", "red");
                //editorId.disableToolbar("toolbar_top1", "true");
                //editorId.disableButton("toolbar_Equation1", "true");              
            }

            protected function saveImageToServer(event:MouseEvent):void
            {
                editorId.saveImageOnServer(null);
            }

        ]]>
    </mx:Script>
        <fmath:MathMLEditor id="editorId" editorWidth="800" editorHeight="500"  initialize="initEditor()">
            <fmath:mathML><![CDATA[<mrow><mtext>abc</mtext></mrow>]]></fmath:mathML>    
        </fmath:MathMLEditor>
</mx:Panel>

I juste do a PopUpManager.addPopUp.
Thank's
Tuan

Original comment by tantuan....@gmail.com on 25 Oct 2010 at 9:29

GoogleCodeExporter commented 9 years ago

Original comment by ionel.alexandru@gmail.com on 3 Nov 2010 at 6:41