Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
r3d9411 committed Feb 1, 2017
1 parent 17b62c6 commit 3b30ecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions StablexUI-Designer/Source/rn/stablex/designer/MainWindow.hx
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,7 @@ class MainWindow extends Sprite {
// xml source

MainWindowInstance.xmlSource.parent.addEventListener(WidgetEvent.RESIZE, this.onXmlSourceResize);

if (MainWindowInstance.xmlSource.label.multiline)
MainWindowInstance.xmlSource.addEventListener(KeyboardEvent.KEY_UP, this.onXmlSourceChange);

//MainWindowInstance.xmlSource.addEventListener(MouseEvent.CLICK, function (e:MouseEvent) e.stopPropagation());
//MainWindowInstance.xmlSource.addEventListener(MouseEvent.MOUSE_UP, function (e:MouseEvent) e.stopPropagation());
//MainWindowInstance.xmlSource.addEventListener(MouseEvent.MOUSE_DOWN, function (e:MouseEvent) e.stopPropagation());
//MainWindowInstance.xmlSource.addEventListener(MouseEvent.MOUSE_MOVE, function (e:MouseEvent) e.stopPropagation());

MainWindowInstance.xmlSource.addEventListener(KeyboardEvent.KEY_UP, this.onXmlSourceChange);
MainWindowInstance.xmlSource.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP));

MainWindowInstance.xmlWrap.addEventListener(MouseEvent.CLICK, this.onXmlWrapChange);
Expand Down
4 changes: 2 additions & 2 deletions StablexUI-Designer/Source/rn/stablex/designer/SuidXml.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class SuidXml {
// additional xml-functions & workarounds for TextField

public static function parseXml (xmlStr:String) : Xml
return Xml.parse((~/^ +</gm).replace((~/^ +</gm).replace(xmlStr, "<"), "<").replace("\n", ""));
return Xml.parse((~/^ +</gm).replace((~/^ +</gm).replace(xmlStr, "<"), "<").replace("\n", "").htmlUnescape());

public static function printXml (xml:Xml, indent:String) : String
return Printer.print(xml, true).replace(">", ">\n").replace(" ", indent).replace(" ", indent);
return Printer.print(xml, true).replace(">", ">\n").replace(" ", indent).replace(" ", indent).htmlUnescape();
}

0 comments on commit 3b30ecd

Please sign in to comment.