This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The regular expression below is used in John Resig's HTML parser written in JS, which | |
I was trying to use in an Adobe Fireworks extension to construct tables from HTML | |
source. In a browser, from IE6 on up, it produces: | |
[<table border="1">,table, border="1",""] | |
In Fireworks' JS parser, derived from Mozilla code released in *1998*, it produces: | |
null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// make a copy of the current selection by concatenating it | |
// with an empty array | |
var originalSelection = [].concat(fw.selection); | |
for (var i = 0, len = originalSelection.length; i < len; i++) { | |
// change the selection as needed | |
} | |
// restore the original copy of the selection | |
fw.selection = originalSelection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
(function() | |
{ | |
if (fw.selection.length == 0) { | |
alert("To use this command, first select a group from which the Smart Resize auto shape should be detached."); | |
return; | |
} | |
var dom = fw.getDocumentDOM(); |
NewerOlder