Commit 6c728f5694477c2fd1a07681db1105b8d08f7f25

Authored by Daniela Feitosa
Committed by Antonio Terceiro
1 parent 4b48bec4

Updating tinymce: Version 3.2.7 (2009-09-22)

Showing 211 changed files with 6048 additions and 5409 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 211 files displayed.

public/javascripts/tinymce/changelog.txt
  1 +Version 3.2.7 (2009-09-22)
  2 + Fixed bug where uppercase paragraphs could still produce an invalid DOM tree on IE.
  3 + Fixed bug where split command didn't work on WebKit since the node serializer needs a real document to work with.
  4 + Fixed bug where it was impossible in Gecko to place the caret before a table if it was the first one.
  5 + Fixed bug where linking to urls like ../../ would produce an extra traling slash ../..//.
  6 + Fixed bug where the template cdate functionality was using an old 2.x API call. Patch contributed by vectorjohn.
  7 + Fixed bug where urls to the same site but different protocol would be converted when relative_urls where set to false. Patch contributed by Ted Rust.
  8 + Fixed bug where the paste plugin would remove mceItem prefixed classes.
  9 + Fixed bug where the paste plugin would sometimes add items in a reverse order on WebKit.
  10 + Fixed bug where the paste buttons would present an error message on Gecko even if you changed user.js. Patch contributed by Todd (teeaykay).
  11 + Fixed bug where Opera would crash if you had tables incorrectly placed inside paragraphs.
  12 + Fixed bug where styles elements wasn't properly processed if you had bad input HTML.
  13 + Fixed bug where style attributes wasn't properly forced into a specific format.
  14 + Fixed bug and issues with boolean attributes like checked, nowrap etc.
  15 + Fixed bug where input elements could override attributes on form elements.
  16 + Fixed bug where script or style elements could get modified by the DOMUtils processHTML method.
  17 + Fixed bug where the selected attribute could get lost when force root blocks logic got executed on IE. Patch contributed by Attila Mezei-Horvati.
  18 + Fixed bug where getAttribs method didn't handle boolean attributes correctly on IE.
  19 + Fixed so the paste from word dialog is presented if you paste content on an IE with to restrictive security settings.
  20 + Fixed so the paste_strip_class_attributes option is set to none by default in the paste plugin.
  21 + Removed default border=0 on tables for the default value of valid_elements.
  22 +Version 3.2.6 (2009-08-19)
  23 + Added new wordcount plugin, this will display the number of typed words as you write. Contributed by Andrew Ozz.
  24 + Added new getNext and getPrev methods to DOM utils. These will return the first matching sibling.
  25 + Fixed bug where it was impossible to place the caret after a table on Gecko. It will now add a paragraph after tables.
  26 + Fixed bug where inline dialogs would fail if used in a window opened using a showModalDialog. Patch contributed by Derek Britt.
  27 + Fixed bug where IE could sometimes render a unknown runtime error on invalid input HTML.
  28 + Fixed bug where some incorrectly placed tables wouldn't be moved outside the paragraphs on IE.
  29 + Fixed bug where uppercase script/style element wouldn't be handled correctly and converted to valid lowercase.
  30 + Fixed bug where some WebKit versions on Mac OS X would produce issues with hidden select fields.
  31 + Fixed bug where the media plugin would fail on WebKit since the node wasn't properly imported to the right document.
  32 + Fixed bug where absolute URLs for the TinyMCE script using a base href element would cause loading problems in IE 6/7.
  33 + Fixed bug where pasting using the paste plugin wasn't possible on IE with to restrictive security settings.
  34 + Fixed bug where pasting of whitespace was impossible using the new custom paste method.
  35 + Fixed bug where pasting on some WebKit browsers would not work if you pasted specific contents due to a WebKit bug.
  36 + Fixed bug where doctypes with multiple lines would not be parsed correctly by the fullpage plugin. Patch contributed by Colin.
  37 + Fixed bug where the autoresize plugin would break the fullscreen functionality.
  38 + Fixed bug where tables would be chopped up running on IE using invalid contents and pasting paragraphs into a cell.
  39 + Fixed bug where the each method of jQuery build didn't iterate styleSheets. We now use the TinyMCE API one instead.
  40 + Fixed bug where auto switching to paragraphs after headers some times failed in Gecko.
  41 + Fixed so all editor options gets passed to the Serializer class. Patch contributed by Jasper Mattsson.
  42 + Fixed so script/style blocks isn't wrapped in paragraphs as other inline elements.
  43 + Fixed so the XHR requests sends the X-Requested-With HTTP header.
  44 + Fixed so the data url scheme is handled in the tinymce.util.URI class.
  45 + Changed inline documentation to use moxiedoc style comments.
  46 + Removed the compat2x plugin people should have upgraded to the 3.x API by now. 3.0 was released more then a year ago.
  47 + Re-added Gecko specific message for users who doesn't understand the security concept regarding paste.
  48 +Version 3.2.5 (2009-06-29)
  49 + Added new jQuery plugin for the jQuery specific package. This enables you to more easily load and use TinyMCE.
  50 + Added new autoresize plugin contributed by Peter Dekkers. This plugin will auto resize the editor to the size of the contents.
  51 + Fixed so all packages have the same directory structure. Previous releases had a different structure for the production package.
  52 + Fixed so the paste from word dialog forces the contents to be processed as word contents even if it's not.
  53 + Fixed so the jQuery build adapter build works. It's currently only excluding Sizzle.
  54 + Fixed so noscript element contents is retained during the editing process.
  55 + Fixed bug where the getBookmark method would need a "simple" string input when the documented way is a boolean.
  56 + Fixed bug where invalid contents could break the fix_table_elements logic.
  57 + Fixed bug where Sizzle specific attributes would be serialized if the valid_elements was set to *[*].
  58 + Fixed bug where IE would produce an error if you specified a relative content_css and opened the paste dialog.
  59 + Fixed bug where pasting images on IE would produce broken images if they came from an external site.
  60 + Fixed bug where memory was leaked if you add/remove controls dynamically. Some event handlers wasn't removed properly.
  61 + Fixed bug where domain relaxing wasn't treated correctly if you added it after the TinyMCE script element.
  62 + Fixed bug where the activeEditor wasn't set to null if the last editor instance was removed.
  63 + Fixed bug where IE was leaking memory on the onbeforeunload event due to some recently introduced logic. Patch contributed by Options.
  64 + Fixed bug where inserting tables in Safari 4 didn't work due to a new WebKit bug where some element names are reserved.
  65 + Fixed bug where URLs having a :// value in the query string would make it absolute regardless of URL settings.
  66 + Fixed the WebKit specific bug where DOM Ranges would fail if the node wasn't attached to something in a different way.
  67 + Removed the auto_resize option and the resizeToContent method from the tinymce.Editor class. Use the new autoresize plugin instead.
  68 +Version 3.2.4.1 (2009-05-25)
  69 + Fixed bug where Gecko browsers would produce an extra space after for example strong when loaded from sub domains.
  70 + Fixed bug where script elements would be removed if they where placed inside a paragraph element.
  71 + Fixed bug where IE 8 would produce 1 item remaining when loading CSS files dynamically with an empty cache.
  72 + Fixed bug where bound events would be removed from other editor instances if a specific one was removed.
  73 + Fixed various bugs and issues with script and style elements inside the editor.
  74 + Fixed so all script contents gets wrapped in CDATA sections so that they can be parsed using a XML parser.
  75 + Fixed so it's impossible for elements marked as closed to have child nodes rendered in output.
  76 +Version 3.2.4 (2009-05-21)
  77 + Added new paste_remove_styles/paste_remove_styles_if_webkit option to paste plugin concept contributed by Hadrien Gardeur.
  78 + Added new functionality to paste plugin contributed by Scott Eade aka monkeybrain.
  79 + Added new paste_block_drop option to the paste plugin this is disabled by default and will block any drag/drop event.
  80 + Added new bind/unbind methods to DOMUtils these works like Event.add/Event.remove but is easier to access.
  81 + Added new paste_dialog_width/paste_dialog_height options to paste pluign. Enables you to change the dialog sizes.
  82 + Fixed bug on IE 8 where it would sometimes produce a "1 item remaining" status message that would never finish.
  83 + Fixed bug on Safari 4 beta that would produce DOM Range exceptions on the DOMUtils split method since the browser has a bug.
  84 + Fixed bug where the paste plugin could accidentally think that some word sentences was supposed to be list elements.
  85 + Fixed bug where paste plugin would produce one extra empty undo level on some browsers.
  86 + Fixed bug where spans wasn't produced correctly on new line when the keep_styles option was enabled.
  87 + Fixed bug where the caret would be placed at the beginning of contents in IE 8 if you selected colors from the color pickers.
  88 + Fixed so the Event class is a normal class instead of a static one. The tinymce.dom.Event is now a global instance of that class.
  89 + Fixed so internal events for instances gets removed when the DOMUtils instance is removed.
  90 + Fixed so preventDefault and stopPropagation methods can be used on the event object in all browsers.
  91 +Version 3.2.3.1 (2009-05-05)
  92 + Fixed bug where paragraphs containing form elements such as input or textarea would be removed.
  93 + Fixed bug where some IE versions would produce a wrapper function for events attributes.
  94 + Fixed bug where table cell contents could be removed if you pressed return/enter at the end of the cell contents.
  95 + Fixed bug where the paste plugin would remove a extra character if the selection range was collapsed.
  96 + Fixed bug where creating tables with % width wouldn't be handled correctly on WebKit browsers.
  97 +Version 3.2.3 (2009-04-23)
  98 + Added new paste plugin logic. This new version will autodetect Word contents and clean it up.
  99 + Added a optional root element argument to getPos so you can tell it where to stop the calculation.
  100 + Added new DOM ready logic to remove the usage of document.write. We now use basically the same method as jQuery.
  101 + Fixed bug where WebKit browsers would fail when selecting all contents in the area using Ctrl+A.
  102 + Fixed bug where IE would produce paragraphs with empty inline style elements.
  103 + Fixed bug where WebKit browsers would fail when inserting tables with a non pixel width.
  104 + Fixed bug where block elements could get a redundant br element at the end of the element.
  105 + Fixed bug where the tabfocus plugin only worked with a single editor instance on page.
  106 + Fixed bug where IE 8 was loosing caret position if the selection was collapsed and a menu was clicked.
  107 + Fixed bug with application/xhtml+xml mode where menus wasn't working properly.
  108 + Fixed bug where the onstop workaround fix for IE would produce errors in an ASP update panel.
  109 + Fixed bug where the submit function override could produce errors if executed in the wrong scope.
  110 + Fixed bug where the area element wasn't closed by a short ending.
  111 + Fixed various number issues in the style plugins properties dialog. Contributed by datpaulchen.
  112 + Fixed issues with size suffix values in the style plugin dialog.
  113 + Fixed issue where hasDuplicate variable would leak out to the global space due to a bug in the Sizzle engine.
  114 + Fixed issue where the paste event would fire a dialog warning on IE since we extracted the text contents.
  115 + Updated Sizzle engine to the latest version, this version fixes a few bugs that was reported.
  116 +Version 3.2.2.3 (2009-03-26)
  117 + Fixed regression bug with the getPos method, it would return invalid if the view port was to small.
  118 +Version 3.2.2.2 (2009-03-25)
  119 + Fixed so the DOMUtils getPos method can be used cross documents if needed.
  120 + Fixed bug where undo/redo wasn't working correctly in Gecko browsers.
  121 +Version 3.2.2.1 (2009-03-19)
  122 + Added support for tel: URL prefixes. Even though this doesn't match any official RFC.
  123 + Fixed so the select method of the Selection class selects the first best suitable contents.
  124 + Fixed bug where the regexps for www. prefixes for link and advlink dialogs would match wwwX.
  125 + Fixed bug where the preview dialog would fail to open if the content_css wasn't defined. Patch contributed by David Bildström (ChronoZ).
  126 + Fixed bug where editors wasn't converted in application/xhtml+xml mode due to an issue with Sizzle.
  127 + Fixed bug where alignment would fail if multiple lines where selected.
  128 + Updated Sizzle engine to the latest version, this version fixes a few bugs that was reported.
  129 +Version 3.2.2 (2009-03-05)
  130 + Added new CSS selector engine. Sizzle the same one that jQuery and other libraries are using.
  131 + Added new is and getParents methods to the DOMUtils class. These use the new Sizzle engine to select elements.
  132 + Added new removeformat_selector option, enables you to specify a CSS selector pattern of elements to remove when using removeformat.
  133 + Fixed so the getParent method can take CSS expressions when selecting it's parents.
  134 + Added new ant based build process, includes a new javabased preprocessor and a yuicompressor ant task.
  135 + Moved the tab_focus logic into a plugin called tabfocus, so the old tab_focus option has been removed from the core.
  136 + Replaced the TinyMCE custom unit testing framework with Qunit and rewrote all tests to match the new logic.
  137 + Moved the examples/testcases to a root directory called tests since it now includes slickspeed.
  138 + Fixed bug where nbsp wasn't replaced correctly in ForceBlocks.js. Patch contributed by thorn.
  139 + Fixed bug where an dom exception would be thrown in Gecko when the theme_advanced_path path was set to false under xml application mode.
  140 + Fixed bug where it was impossible to get out of a link at the end of a block element in Gecko.
  141 + Fixed bug where the latest WebKit nightly would fail when changing font size and font family.
  142 + Fixed bug where the latest WebKit nightly would fail when opening dialogs due to changes to the arguments object.
  143 + Fixed bug where paragraphs wasn't added to elements positioned absolute using classes.
  144 + Fixed bug where font size values with dot's like 1.4em would produce a class instead of the style value.
  145 + Fixed bug where IE 8 would return an incorrect position for elements.
  146 + Fixed bug where IE 8 would render colorpicker/filepicker icons incorrectly.
  147 + Fixed bug where trailing slashes for directories in URLs would be removed.
  148 + Fixed bug where autostart and other boolean values in the media dialog wouldn't be stored/parsed correctly.
  149 + Fixed bug where the repaint call for the media plugin wouldn't be executed due to a typo in the source.
  150 + Fixed bug where id attribute of object elements wasn't kept intact by the media plugin.
  151 + Fixed bug where preview of embeded elements when the media_use_script option was used would fail.
  152 + Fixed bug where inlinepopups could be rendered at an incorrect location on IE 6 while dragging.
  153 + Fixed bug where the blocker shim could be placed at an incorrect location on IE 6.
  154 + Fixed bug where the multiple and size attributes of select elements would produce incorrect values while running in IE.
  155 + Fixed bug where IE would loose the caret position is you selected a color from the color drop down.
  156 + Fixed bug where remove format wouldn't work on IE since it couldn't remove span elements that had style information.
  157 + Fixed bug where Opera was removing links when removing formatting from selected contents.
  158 + Fixed bug where paragraphs could be produced inside non positional elements styled with the CSS position value of static.
  159 + Fixed bug where removeformat wouldn't work if you selected part of a span in IE.
  160 + Fixed bug where media plugin didn't retain the style attribute on embed/object elements.
  161 + Fixed bug where auto focus on empty editor instances could produce strange results if you inserted an image into it.
  162 + Fixed bug where   characters would be removed in FF when inserted with the mceInsertContent or selection.setContent methods.
  163 + Fixed bug where warning message of missing paste support wasn't displayed on WebKit browsers.
  164 + Fixed bug where anchor links could include other links. The selected range is now unlinked before adding news links to it.
  165 + Fixed memory leak when TinyMCE was used with prototype. Patch contributed by James Ots.
  166 + Fixed so the non documented fullpage_hide_in_source_view option for the fullpage plugin works again in the 3.x branch.
  167 + Fixed so tables doesn't get inserted into paragraphs by default since it's not W3C valid. Can be disabled by using the fix_table_elements option.
  168 + Fixed so the source view dialog sets a source_view state to the event object. Enables plugins to intercept the source view mode.
  169 + Fixed various validation issues with the html dialogs and pages.
  170 + Removed ask mode option since there is way better ways of doing this now. Use the add/remove control methods instead.
  171 + Removed logic for compatibility with Safari 2.x, this browser is no longer supported since no one is using it.
  172 + Removed the auto domain relaxing feature. If loading scripts cross sub domains it's better to specify the document.domain by hand.
1 Version 3.2.1.1 (2008-11-27) 173 Version 3.2.1.1 (2008-11-27)
2 Added new theme_advanced_default_background_color/theme_advanced_default_foreground_color options. Patch contributed by David Bildström (ChronoZ). 174 Added new theme_advanced_default_background_color/theme_advanced_default_foreground_color options. Patch contributed by David Bildström (ChronoZ).
3 Fixed font style formatting compatibility issue with Adobe Air. 175 Fixed font style formatting compatibility issue with Adobe Air.
public/javascripts/tinymce/examples/full.html
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 // General options 10 // General options
11 mode : "textareas", 11 mode : "textareas",
12 theme : "advanced", 12 theme : "advanced",
13 - plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", 13 + plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",
14 14
15 // Theme options 15 // Theme options
16 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", 16 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
@@ -44,24 +44,26 @@ @@ -44,24 +44,26 @@
44 <body> 44 <body>
45 45
46 <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true"> 46 <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
47 - <h3>Full featured example</h3> 47 + <div>
  48 + <h3>Full featured example</h3>
48 49
49 - <p>  
50 - This page shows all available buttons and plugins that are included in the TinyMCE core package.  
51 - There are more examples on how to use TinyMCE in the <a href="http://wiki.moxiecode.com/examples/tinymce/">Wiki</a>.  
52 - </p> 50 + <p>
  51 + This page shows all available buttons and plugins that are included in the TinyMCE core package.
  52 + There are more examples on how to use TinyMCE in the <a href="http://wiki.moxiecode.com/examples/tinymce/">Wiki</a>.
  53 + </p>
53 54
54 - <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->  
55 - <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">  
56 - &lt;p&gt;  
57 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems.  
58 - &lt;/p&gt;  
59 - &lt;p&gt;  
60 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt;  
61 - &lt;/p&gt;  
62 - </textarea> 55 + <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
  56 + <div>
  57 + <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
  58 + &lt;p&gt;
  59 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
  60 + &lt;/p&gt;
  61 + &lt;p&gt;
  62 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
  63 + &lt;/p&gt;
  64 + </textarea>
  65 + </div>
63 66
64 - <div>  
65 <!-- Some integration calls --> 67 <!-- Some integration calls -->
66 <a href="javascript:;" onmousedown="tinyMCE.get('elm1').show();">[Show]</a> 68 <a href="javascript:;" onmousedown="tinyMCE.get('elm1').show();">[Show]</a>
67 <a href="javascript:;" onmousedown="tinyMCE.get('elm1').hide();">[Hide]</a> 69 <a href="javascript:;" onmousedown="tinyMCE.get('elm1').hide();">[Hide]</a>
@@ -72,11 +74,11 @@ @@ -72,11 +74,11 @@
72 <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getNode().nodeName);">[Get selected element]</a> 74 <a href="javascript:;" onmousedown="alert(tinyMCE.get('elm1').selection.getNode().nodeName);">[Get selected element]</a>
73 <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a> 75 <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
74 <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a> 76 <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
75 - </div>  
76 77
77 - <br />  
78 - <input type="submit" name="save" value="Submit" />  
79 - <input type="reset" name="reset" value="Reset" /> 78 + <br />
  79 + <input type="submit" name="save" value="Submit" />
  80 + <input type="reset" name="reset" value="Reset" />
  81 + </div>
80 </form> 82 </form>
81 83
82 </body> 84 </body>
public/javascripts/tinymce/examples/simple.html
@@ -27,10 +27,10 @@ @@ -27,10 +27,10 @@
27 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded --> 27 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
28 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"> 28 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
29 &lt;p&gt; 29 &lt;p&gt;
30 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. 30 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
31 &lt;/p&gt; 31 &lt;/p&gt;
32 &lt;p&gt; 32 &lt;p&gt;
33 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt; 33 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
34 &lt;/p&gt; 34 &lt;/p&gt;
35 </textarea> 35 </textarea>
36 36
public/javascripts/tinymce/examples/skins.html
@@ -163,10 +163,10 @@ @@ -163,10 +163,10 @@
163 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded --> 163 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
164 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"> 164 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
165 &lt;p&gt; 165 &lt;p&gt;
166 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. 166 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
167 &lt;/p&gt; 167 &lt;/p&gt;
168 &lt;p&gt; 168 &lt;p&gt;
169 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt; 169 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
170 &lt;/p&gt; 170 &lt;/p&gt;
171 </textarea> 171 </textarea>
172 172
@@ -174,10 +174,10 @@ @@ -174,10 +174,10 @@
174 174
175 <textarea id="elm2" name="elm2" rows="15" cols="80" style="width: 80%"> 175 <textarea id="elm2" name="elm2" rows="15" cols="80" style="width: 80%">
176 &lt;p&gt; 176 &lt;p&gt;
177 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. 177 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
178 &lt;/p&gt; 178 &lt;/p&gt;
179 &lt;p&gt; 179 &lt;p&gt;
180 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt; 180 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
181 &lt;/p&gt; 181 &lt;/p&gt;
182 </textarea> 182 </textarea>
183 183
@@ -185,10 +185,10 @@ @@ -185,10 +185,10 @@
185 185
186 <textarea id="elm3" name="elm3" rows="15" cols="80" style="width: 80%"> 186 <textarea id="elm3" name="elm3" rows="15" cols="80" style="width: 80%">
187 &lt;p&gt; 187 &lt;p&gt;
188 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. 188 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
189 &lt;/p&gt; 189 &lt;/p&gt;
190 &lt;p&gt; 190 &lt;p&gt;
191 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt; 191 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
192 &lt;/p&gt; 192 &lt;/p&gt;
193 </textarea> 193 </textarea>
194 194
@@ -196,10 +196,10 @@ @@ -196,10 +196,10 @@
196 196
197 <textarea id="elm4" name="elm4" rows="15" cols="80" style="width: 80%"> 197 <textarea id="elm4" name="elm4" rows="15" cols="80" style="width: 80%">
198 &lt;p&gt; 198 &lt;p&gt;
199 - &lt;img src="media/logo.jpg" alt=" " hspace="5" vspace="5" width="250" height="48" align="right" /&gt; TinyMCE is a platform independent web based Javascript HTML &lt;strong&gt;WYSIWYG&lt;/strong&gt; editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. 199 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
200 &lt;/p&gt; 200 &lt;/p&gt;
201 &lt;p&gt; 201 &lt;p&gt;
202 - We recommend &lt;a href="http://www.getfirefox.com" target="_blank"&gt;Firefox&lt;/a&gt; and &lt;a href="http://www.google.com" target="_blank"&gt;Google&lt;/a&gt; &lt;br /&gt; 202 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
203 &lt;/p&gt; 203 &lt;/p&gt;
204 </textarea> 204 </textarea>
205 205
public/javascripts/tinymce/examples/translate.html 0 → 100644
@@ -0,0 +1,80 @@ @@ -0,0 +1,80 @@
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2 +<html xmlns="http://www.w3.org/1999/xhtml">
  3 +<head>
  4 +<title>Full featured example</title>
  5 +<style>
  6 +body {font-family:Arial,Verdana; font-size: 12px;}
  7 +</style>
  8 +
  9 +<!-- TinyMCE -->
  10 +<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce_dev.js"></script>
  11 +<script type="text/javascript">
  12 + tinyMCE.init({
  13 + // General options
  14 + mode : "textareas",
  15 + theme : "advanced",
  16 + plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
  17 +
  18 + // Theme options
  19 + theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
  20 + theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  21 + theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  22 + theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
  23 + theme_advanced_toolbar_location : "top",
  24 + theme_advanced_toolbar_align : "left",
  25 + theme_advanced_path_location : "bottom",
  26 + theme_advanced_resizing : true,
  27 +
  28 + // Example content CSS (should be your site CSS)
  29 + content_css : "css/content.css",
  30 +
  31 + // Drop lists for link/image/media/template dialogs
  32 + template_external_list_url : "lists/template_list.js",
  33 + external_link_list_url : "lists/link_list.js",
  34 + external_image_list_url : "lists/image_list.js",
  35 + media_external_list_url : "lists/media_list.js",
  36 +
  37 + // Replace values for the template plugin
  38 + template_replace_values : {
  39 + username : "Some User",
  40 + staffid : "991234"
  41 + },
  42 +
  43 + // Enable translation mode
  44 + translate_mode : true,
  45 + language : "en"
  46 + });
  47 +</script>
  48 +<!-- /TinyMCE -->
  49 +
  50 +</head>
  51 +<body>
  52 +
  53 +<form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
  54 + <h3>Translation</h3>
  55 +
  56 + <p>This page enables you to translate TinyMCE by using XML files.</p>
  57 + <p>Steps to translate:</p>
  58 + <ol>
  59 + <li>Download one of the language XML files from the TinyMCE site.</li>
  60 + <li>Place it in /jscripts/tiny_mce/langs directory, for example /jscripts/tiny_mce/langs/sv.xml.</li>
  61 + <li>Change the language init option in this file to match the XML file code. For example: sv</li>
  62 + <li>TinyMCE will now use the XML file instead of the .js versions.</li>
  63 + <li>Modify the XML file until everything is translated</li>
  64 + <li>Modify the author information, this is optional.</li>
  65 + <li>Upload the XML file to the TinyMCE site to share it with others.</li>
  66 + <li>You can now download the .js versions of the language pack from the TinyMCE site.</li>
  67 + </ol>
  68 +
  69 + <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
  70 + &lt;p&gt;
  71 + This is some example text that you can edit inside the &lt;strong&gt;TinyMCE editor&lt;/strong&gt;.
  72 + &lt;/p&gt;
  73 + &lt;p&gt;
  74 + Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
  75 + &lt;/p&gt;
  76 + </textarea>
  77 +</form>
  78 +
  79 +</body>
  80 +</html>
public/javascripts/tinymce/jscripts/tiny_mce/langs/de.js
@@ -7,19 +7,19 @@ update:&quot;Aktualisieren&quot;, @@ -7,19 +7,19 @@ update:&quot;Aktualisieren&quot;,
7 cancel:"Abbrechen", 7 cancel:"Abbrechen",
8 close:"Schlie\u00DFen", 8 close:"Schlie\u00DFen",
9 browse:"Durchsuchen", 9 browse:"Durchsuchen",
10 -class_name:"Klasse",  
11 -not_set:"-- Nicht gesetzt --", 10 +class_name:"CSS-Klasse",
  11 +not_set:"- unbestimmt -",
12 clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?", 12 clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?",
13 clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.", 13 clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.",
14 -popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker, um die volle Funktionalit\u00E4t zu erlangen.", 14 +popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker f\u00FCr diese Seite.",
15 invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).", 15 invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).",
16 more_colors:"Weitere Farben" 16 more_colors:"Weitere Farben"
17 }, 17 },
18 contextmenu:{ 18 contextmenu:{
19 align:"Ausrichtung", 19 align:"Ausrichtung",
20 -left:"Links",  
21 -center:"Mittig",  
22 -right:"Rechts", 20 +left:"Linksb\u00FCndig",
  21 +center:"Zentriert",
  22 +right:"Rechtsb\u00FCndig",
23 full:"Blocksatz" 23 full:"Blocksatz"
24 }, 24 },
25 insertdatetime:{ 25 insertdatetime:{
@@ -98,15 +98,15 @@ text_linebreaks:&quot;Zeilenumbr\u00FCche beibehalten&quot;, @@ -98,15 +98,15 @@ text_linebreaks:&quot;Zeilenumbr\u00FCche beibehalten&quot;,
98 word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." 98 word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen."
99 }, 99 },
100 table:{ 100 table:{
101 -desc:"Tabelle erstellen", 101 +desc:"Tabelle erstellen/bearbeiten",
102 row_before_desc:"Zeile oberhalb einf\u00FCgen", 102 row_before_desc:"Zeile oberhalb einf\u00FCgen",
103 row_after_desc:"Zeile unterhalb einf\u00FCgen", 103 row_after_desc:"Zeile unterhalb einf\u00FCgen",
104 -delete_row_desc:"Zeile entfernen", 104 +delete_row_desc:"Zeile l\u00F6schen",
105 col_before_desc:"Spalte links einf\u00FCgen", 105 col_before_desc:"Spalte links einf\u00FCgen",
106 col_after_desc:"Spalte rechts einf\u00FCgen", 106 col_after_desc:"Spalte rechts einf\u00FCgen",
107 delete_col_desc:"Spalte l\u00F6schen", 107 delete_col_desc:"Spalte l\u00F6schen",
108 -split_cells_desc:"Vereinte Zellen trennen",  
109 -merge_cells_desc:"Zellen vereinen", 108 +split_cells_desc:"Verbundene Zellen trennen",
  109 +merge_cells_desc:"Zellen verbinden",
110 row_desc:"Eigenschaften der Zeile", 110 row_desc:"Eigenschaften der Zeile",
111 cell_desc:"Eigenschaften der Zelle", 111 cell_desc:"Eigenschaften der Zelle",
112 props_desc:"Eigenschaften der Tabelle", 112 props_desc:"Eigenschaften der Tabelle",
@@ -114,7 +114,7 @@ paste_row_before_desc:&quot;Zeile oberhalb aus der Zwischenablage einf\u00FCgen&quot;, @@ -114,7 +114,7 @@ paste_row_before_desc:&quot;Zeile oberhalb aus der Zwischenablage einf\u00FCgen&quot;,
114 paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen", 114 paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen",
115 cut_row_desc:"Zeile ausschneiden", 115 cut_row_desc:"Zeile ausschneiden",
116 copy_row_desc:"Zeile kopieren", 116 copy_row_desc:"Zeile kopieren",
117 -del:"Tabelle entfernen", 117 +del:"Tabelle l\u00F6schen",
118 row:"Zeile", 118 row:"Zeile",
119 col:"Spalte", 119 col:"Spalte",
120 cell:"Zelle", 120 cell:"Zelle",
@@ -134,10 +134,10 @@ fullpage:{ @@ -134,10 +134,10 @@ fullpage:{
134 desc:"Dokument-Eigenschaften" 134 desc:"Dokument-Eigenschaften"
135 }, 135 },
136 template:{ 136 template:{
137 -desc:"Vorgefertigten Vorlageninhalt einf\u00FCgen" 137 +desc:"Vorgefertigter Vorlageninhalt einf\u00FCgen"
138 }, 138 },
139 visualchars:{ 139 visualchars:{
140 -desc:"Sichtbarkeit der Steuerzeichen an/aus." 140 +desc:"Sichtbarkeit der Steuerzeichen an/aus"
141 }, 141 },
142 spellchecker:{ 142 spellchecker:{
143 desc:"Rechtschreibpr\u00FCfung an/aus", 143 desc:"Rechtschreibpr\u00FCfung an/aus",
@@ -151,5 +151,5 @@ no_sug:&quot;Keine Vorschl\u00E4ge&quot;, @@ -151,5 +151,5 @@ no_sug:&quot;Keine Vorschl\u00E4ge&quot;,
151 no_mpell:"Keine Rechtschreibfehler gefunden." 151 no_mpell:"Keine Rechtschreibfehler gefunden."
152 }, 152 },
153 pagebreak:{ 153 pagebreak:{
154 -desc:"Seitenumbruch Einf\u00FCgen." 154 +desc:"Seitenumbruch einf\u00FCgen"
155 }}}); 155 }}});
156 \ No newline at end of file 156 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/langs/fr.js
1 tinyMCE.addI18n({fr:{ 1 tinyMCE.addI18n({fr:{
2 common:{ 2 common:{
3 -edit_confirm:"Voulez-vous utiliser le mode WYSIWYG pour cette zone de texte\u00A0?", 3 +edit_confirm:"Voulez-vous utiliser le mode WYSIWYG pour cette zone de texte?",
4 apply:"Appliquer", 4 apply:"Appliquer",
5 insert:"Ins\u00E9rer", 5 insert:"Ins\u00E9rer",
6 update:"Mettre \u00E0 jour", 6 update:"Mettre \u00E0 jour",
@@ -9,10 +9,10 @@ close:&quot;Fermer&quot;, @@ -9,10 +9,10 @@ close:&quot;Fermer&quot;,
9 browse:"Naviguer", 9 browse:"Naviguer",
10 class_name:"Classe", 10 class_name:"Classe",
11 not_set:"-- Non init. --", 11 not_set:"-- Non init. --",
12 -clipboard_msg:"Copier/Couper/Coller n'est pas disponible sous Mozilla et sous Firefox.\nVoulez-vous plus d'information sur ce probl\u00E8me\u00A0?",  
13 -clipboard_no_support:"Actuellement non support\u00E9 par votre navigateur, utilisez les raccourcis clavier \u00E0 ma place.", 12 +clipboard_msg:"Copier/Couper/Coller n'est pas disponible sous Mozilla et sous Firefox.\nVoulez-vous plus d'information sur ce probl\u00E8me?",
  13 +clipboard_no_support:"Actuellement non support\u00E9 par votre navigateur.\r\n Utilisez les raccourcis clavier \u00E0 ma place.",
14 popup_blocked:"D\u00E9sol\u00E9, nous avons d\u00E9tect\u00E9 que votre bloqueur de popup a bloqu\u00E9 une fen\u00EAtre dont l'application a besoin. Vous devez d\u00E9sactiver votre bloqueur de popup pour pouvoir utiliser cet outil.", 14 popup_blocked:"D\u00E9sol\u00E9, nous avons d\u00E9tect\u00E9 que votre bloqueur de popup a bloqu\u00E9 une fen\u00EAtre dont l'application a besoin. Vous devez d\u00E9sactiver votre bloqueur de popup pour pouvoir utiliser cet outil.",
15 -invalid_data:"Erreur : Valeurs incorrectes entr\u00E9es, elles sont marqu\u00E9es en rouge.", 15 +invalid_data:"Erreur: Valeurs incorrectes entr\u00E9es. Elles sont marqu\u00E9es en rouge.",
16 more_colors:"Plus de couleurs" 16 more_colors:"Plus de couleurs"
17 }, 17 },
18 contextmenu:{ 18 contextmenu:{
@@ -47,18 +47,18 @@ insertlayer_desc:&quot;Ins\u00E9rer une nouvelle couche&quot;, @@ -47,18 +47,18 @@ insertlayer_desc:&quot;Ins\u00E9rer une nouvelle couche&quot;,
47 forward_desc:"D\u00E9placer vers l'avant", 47 forward_desc:"D\u00E9placer vers l'avant",
48 backward_desc:"D\u00E9placer vers l'arri\u00E8re", 48 backward_desc:"D\u00E9placer vers l'arri\u00E8re",
49 absolute_desc:"Activer le positionnement absolu", 49 absolute_desc:"Activer le positionnement absolu",
50 -content:"Nouvelle couche..." 50 +content:"Nouvelle couche\u2026"
51 }, 51 },
52 save:{ 52 save:{
53 save_desc:"Sauver", 53 save_desc:"Sauver",
54 cancel_desc:"Annuler tous les changements" 54 cancel_desc:"Annuler tous les changements"
55 }, 55 },
56 nonbreaking:{ 56 nonbreaking:{
57 -nonbreaking_desc:"Ins\u00E9rer un espace ins\u00E9cable" 57 +nonbreaking_desc:"Ins\u00E9rer une espace ins\u00E9cable"
58 }, 58 },
59 iespell:{ 59 iespell:{
60 iespell_desc:"Lancer le v\u00E9rificateur d'orthographe", 60 iespell_desc:"Lancer le v\u00E9rificateur d'orthographe",
61 -download:"ieSpell non install\u00E9, voulez-vous l'installer maintenant\u00A0?" 61 +download:"ieSpell non install\u00E9. Voulez-vous l'installer maintenant?"
62 }, 62 },
63 advhr:{ 63 advhr:{
64 advhr_desc:"Ins\u00E9rer trait horizontal" 64 advhr_desc:"Ins\u00E9rer trait horizontal"
@@ -89,8 +89,8 @@ desc:&quot;\u00C9diter la feuille de style CSS&quot; @@ -89,8 +89,8 @@ desc:&quot;\u00C9diter la feuille de style CSS&quot;
89 }, 89 },
90 paste:{ 90 paste:{
91 paste_text_desc:"Coller en tant que texte brut", 91 paste_text_desc:"Coller en tant que texte brut",
92 -paste_word_desc:"Coller au d\u00E9part d'un texte cr\u00E9\u00E9 sous Word",  
93 -selectall_desc:"Selectioner tout" 92 +paste_word_desc:"Coller \u00E0 partir d'un texte cr\u00E9\u00E9 sous Word",
  93 +selectall_desc:"S\u00E9lectionner tout"
94 }, 94 },
95 paste_dlg:{ 95 paste_dlg:{
96 text_title:"Utilisez CTRL+V sur votre clavier pour coller le texte dans la fen\u00EAtre.", 96 text_title:"Utilisez CTRL+V sur votre clavier pour coller le texte dans la fen\u00EAtre.",
@@ -144,7 +144,7 @@ menu:&quot;Param\u00E8tres du v\u00E9rificateur d&#39;orthographe&quot;, @@ -144,7 +144,7 @@ menu:&quot;Param\u00E8tres du v\u00E9rificateur d&#39;orthographe&quot;,
144 ignore_word:"Ignorer mot", 144 ignore_word:"Ignorer mot",
145 ignore_words:"Ignorer tout", 145 ignore_words:"Ignorer tout",
146 langs:"Langues", 146 langs:"Langues",
147 -wait:"Patientez svp...", 147 +wait:"Patientez SVP\u2026",
148 sug:"Suggestions", 148 sug:"Suggestions",
149 no_sug:"Aucune suggestions", 149 no_sug:"Aucune suggestions",
150 no_mpell:"Aucune erreur trouv\u00E9e." 150 no_mpell:"Aucune erreur trouv\u00E9e."
public/javascripts/tinymce/jscripts/tiny_mce/langs/ja.js 0 → 100644
@@ -0,0 +1,154 @@ @@ -0,0 +1,154 @@
  1 +tinyMCE.addI18n({ja:{
  2 +common:{
  3 +edit_confirm:"WYSIWYG\u30E2\u30FC\u30C9\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u304B\uFF1F",
  4 +apply:"\u9069\u7528",
  5 +insert:"\u633F\u5165",
  6 +update:"\u66F4\u65B0",
  7 +cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",
  8 +close:"\u9589\u3058\u308B",
  9 +browse:"\u53C2\u7167",
  10 +class_name:"\u30AF\u30E9\u30B9",
  11 +not_set:"-- \u672A\u8A2D\u5B9A --",
  12 +clipboard_msg:"\u30B3\u30D4\u30FC/\u5207\u308A\u53D6\u308A/\u8CBC\u308A\u4ED8\u3051\u306FMozilla\u53CA\u3073Firefox\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002\n\u8A73\u7D30\u306F\u3053\u3061\u3089",
  13 +clipboard_no_support:"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u64CD\u4F5C\u306F\u304A\u4F7F\u3044\u306E\u30D6\u30E9\u30A6\u30B6\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093\u3002\u4EE3\u308F\u308A\u306B\u30AD\u30FC\u30DC\u30FC\u30C9\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u30AD\u30FC\u3092\u304A\u4F7F\u3044\u4E0B\u3055\u3044\u3002",
  14 +popup_blocked:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u3054\u5229\u7528\u306B\u306A\u308B\u306B\u306F\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u3092\u8A31\u53EF\u3057\u3066\u4E0B\u3055\u3044\u3002",
  15 +invalid_data:"\u30A8\u30E9\u30FC: \u5165\u529B\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\u3002\uFF08\u8D64\u5B57\u306E\u9805\u76EE\uFF09",
  16 +more_colors:"\u305D\u306E\u4ED6\u306E\u8272"
  17 +},
  18 +contextmenu:{
  19 +align:"\u914D\u7F6E",
  20 +left:"\u5DE6\u63C3\u3048",
  21 +center:"\u4E2D\u592E\u63C3\u3048",
  22 +right:"\u53F3\u63C3\u3048",
  23 +full:"\u5747\u7B49\u5272\u4ED8"
  24 +},
  25 +insertdatetime:{
  26 +date_fmt:"%Y-%m-%d",
  27 +time_fmt:"%H:%M:%S",
  28 +insertdate_desc:"\u65E5\u4ED8\u306E\u633F\u5165",
  29 +inserttime_desc:"\u6642\u523B\u306E\u633F\u5165",
  30 +months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
  31 +months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
  32 +day_long:"\u65E5\u66DC\u65E5,\u6708\u66DC\u65E5,\u706B\u66DC\u65E5,\u6C34\u66DC\u65E5,\u6728\u66DC\u65E5,\u91D1\u66DC\u65E5,\u571F\u66DC\u65E5,\u65E5\u66DC\u65E5",
  33 +day_short:"(\u65E5),(\u6708),(\u706B),(\u6C34),(\u6728),(\u91D1),(\u571F),(\u65E5)"
  34 +},
  35 +print:{
  36 +print_desc:"\u5370\u5237"
  37 +},
  38 +preview:{
  39 +preview_desc:"\u30D7\u30EC\u30D3\u30E5\u30FC"
  40 +},
  41 +directionality:{
  42 +ltr_desc:"\u5DE6\u304B\u3089\u53F3",
  43 +rtl_desc:"\u53F3\u304B\u3089\u5DE6"
  44 +},
  45 +layer:{
  46 +insertlayer_desc:"\u65B0\u898F\u30EC\u30A4\u30E4\u30FC\u306E\u633F\u5165",
  47 +forward_desc:"\u524D\u9762\u3078\u79FB\u52D5",
  48 +backward_desc:"\u80CC\u9762\u3078\u79FB\u52D5",
  49 +absolute_desc:"\u7D76\u5BFE\u4F4D\u7F6E\u6307\u5B9A\u306E\u5207\u66FF",
  50 +content:"\u65B0\u898F\u30EC\u30A4\u30E4\u30FC"
  51 +},
  52 +save:{
  53 +save_desc:"\u4FDD\u5B58",
  54 +cancel_desc:"\u5168\u3066\u306E\u5909\u66F4\u3092\u7834\u68C4"
  55 +},
  56 +nonbreaking:{
  57 +nonbreaking_desc:"\u6539\u884C\u306A\u3057\u30B9\u30DA\u30FC\u30B9\u306E\u633F\u5165"
  58 +},
  59 +iespell:{
  60 +iespell_desc:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AF",
  61 +download:"ieSpell\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u4ECA\u3059\u3050\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u304B\uFF1F"
  62 +},
  63 +advhr:{
  64 +advhr_desc:"\u6C34\u5E73\u7DDA"
  65 +},
  66 +emotions:{
  67 +emotions_desc:"\u8868\u60C5\u30A2\u30A4\u30B3\u30F3"
  68 +},
  69 +searchreplace:{
  70 +search_desc:"\u691C\u7D22",
  71 +replace_desc:"\u691C\u7D22/\u7F6E\u63DB"
  72 +},
  73 +advimage:{
  74 +image_desc:"\u753B\u50CF\u306E\u633F\u5165/\u7DE8\u96C6"
  75 +},
  76 +advlink:{
  77 +link_desc:"\u30EA\u30F3\u30AF\u306E\u633F\u5165/\u7DE8\u96C6"
  78 +},
  79 +xhtmlxtras:{
  80 +cite_desc:"\u5F15\u7528",
  81 +abbr_desc:"\u7565\u8A9E",
  82 +acronym_desc:"\u982D\u5B57\u8A9E",
  83 +del_desc:"\u524A\u9664",
  84 +ins_desc:"\u633F\u5165",
  85 +attribs_desc:"\u5C5E\u6027\u306E\u633F\u5165/\u7DE8\u96C6"
  86 +},
  87 +style:{
  88 +desc:"CSS\u7DE8\u96C6"
  89 +},
  90 +paste:{
  91 +paste_text_desc:"\u30C6\u30AD\u30B9\u30C8\u3068\u3057\u3066\u8CBC\u308A\u4ED8\u3051",
  92 +paste_word_desc:"Word\u304B\u3089\u8CBC\u308A\u4ED8\u3051",
  93 +selectall_desc:"\u5168\u3066\u9078\u629E"
  94 +},
  95 +paste_dlg:{
  96 +text_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
  97 +text_linebreaks:"\u6539\u884C\u3092\u4FDD\u6301\u3059\u308B",
  98 +word_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002"
  99 +},
  100 +table:{
  101 +desc:"\u8868\u3092\u633F\u5165",
  102 +row_before_desc:"\u884C\u3092\u4E0A\u306B\u633F\u5165",
  103 +row_after_desc:"\u884C\u3092\u4E0B\u306B\u633F\u5165",
  104 +delete_row_desc:"\u884C\u3092\u524A\u9664",
  105 +col_before_desc:"\u5217\u3092\u5DE6\u306B\u633F\u5165",
  106 +col_after_desc:"\u5217\u3092\u53F3\u306B\u633F\u5165",
  107 +delete_col_desc:"\u5217\u3092\u524A\u9664",
  108 +split_cells_desc:"\u30BB\u30EB\u306E\u7D50\u5408\u3092\u89E3\u9664",
  109 +merge_cells_desc:"\u30BB\u30EB\u3092\u7D50\u5408",
  110 +row_desc:"\u884C\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
  111 +cell_desc:"\u30BB\u30EB\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
  112 +props_desc:"\u8868\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
  113 +paste_row_before_desc:"\u884C\u3092\u4E0A\u306B\u8CBC\u308A\u4ED8\u3051",
  114 +paste_row_after_desc:"\u884C\u3092\u4E0B\u306B\u8CBC\u308A\u4ED8\u3051",
  115 +cut_row_desc:"\u884C\u306E\u5207\u308A\u53D6\u308A",
  116 +copy_row_desc:"\u884C\u306E\u30B3\u30D4\u30FC",
  117 +del:"\u8868\u3092\u524A\u9664",
  118 +row:"\u884C",
  119 +col:"\u5217",
  120 +cell:"\u30BB\u30EB"
  121 +},
  122 +autosave:{
  123 +unload_msg:"\u4ED6\u306E\u30DA\u30FC\u30B8\u3078\u79FB\u52D5\u3059\u308B\u3068\u7DE8\u96C6\u30C7\u30FC\u30BF\u306F\u3059\u3079\u3066\u7834\u68C4\u3055\u308C\u307E\u3059\u3002"
  124 +},
  125 +fullscreen:{
  126 +desc:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3"
  127 +},
  128 +media:{
  129 +desc:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2\u306E\u633F\u5165/\u7DE8\u96C6",
  130 +edit:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2\u306E\u7DE8\u96C6"
  131 +},
  132 +fullpage:{
  133 +desc:"\u30DA\u30FC\u30B8\u8A2D\u5B9A"
  134 +},
  135 +template:{
  136 +desc:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u633F\u5165"
  137 +},
  138 +visualchars:{
  139 +desc:"\u5236\u5FA1\u6587\u5B57\u306E\u8868\u793A"
  140 +},
  141 +spellchecker:{
  142 +desc:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AFOn/Off",
  143 +menu:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AF\u8A2D\u5B9A",
  144 +ignore_word:"\u3053\u306E\u5358\u8A9E\u3092\u7121\u8996",
  145 +ignore_words:"\u5168\u3066\u7121\u8996",
  146 +langs:"\u8A00\u8A9E",
  147 +wait:"\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044...",
  148 +sug:"\u5019\u88DC",
  149 +no_sug:"\u5019\u88DC\u306F\u6709\u308A\u307E\u305B\u3093\u3002",
  150 +no_mpell:"\u30B9\u30DA\u30EB\u30DF\u30B9\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002"
  151 +},
  152 +pagebreak:{
  153 +desc:"\u6539\u30DA\u30FC\u30B8\u633F\u5165"
  154 +}}});
0 \ No newline at end of file 155 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/langs/nl.js
@@ -11,7 +11,7 @@ class_name:&quot;Klasse&quot;, @@ -11,7 +11,7 @@ class_name:&quot;Klasse&quot;,
11 not_set:"- Standaard -", 11 not_set:"- Standaard -",
12 clipboard_msg:"Kopi\u00EBren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze beperking?", 12 clipboard_msg:"Kopi\u00EBren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze beperking?",
13 clipboard_no_support:"Kopi\u00EBren/knippen/plakken wordt niet ondersteund door uw browser, gebruik hiervoor de sneltoetsen.", 13 clipboard_no_support:"Kopi\u00EBren/knippen/plakken wordt niet ondersteund door uw browser, gebruik hiervoor de sneltoetsen.",
14 -popup_blocked:"U zult uw popup-blocker tijdelijk moeten uitschakelen voor deze website om gebruik te kunnen maken van alle fucties van deze teksteditor.", 14 +popup_blocked:"U zult uw popup-blocker tijdelijk moeten uitschakelen voor deze website om gebruik te kunnen maken van alle functies van deze teksteditor.",
15 invalid_data:"Fout: Er zijn ongeldige waardes ingevoerd, deze zijn rood gemarkeerd.", 15 invalid_data:"Fout: Er zijn ongeldige waardes ingevoerd, deze zijn rood gemarkeerd.",
16 more_colors:"Meer kleuren" 16 more_colors:"Meer kleuren"
17 }, 17 },
@@ -30,7 +30,7 @@ inserttime_desc:&quot;Tijd invoegen&quot;, @@ -30,7 +30,7 @@ inserttime_desc:&quot;Tijd invoegen&quot;,
30 months_long:"Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December", 30 months_long:"Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December",
31 months_short:"Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec", 31 months_short:"Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec",
32 day_long:"Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag,Zondag", 32 day_long:"Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag,Zondag",
33 -day_short:"Zo,Ma,Di,Wo,Do,Vr,Zat,Zon" 33 +day_short:"zo,ma,di,wo,do,vr,za,zo"
34 }, 34 },
35 print:{ 35 print:{
36 print_desc:"Afdrukken" 36 print_desc:"Afdrukken"
@@ -133,7 +133,7 @@ fullpage:{ @@ -133,7 +133,7 @@ fullpage:{
133 desc:"Documenteigenschappen" 133 desc:"Documenteigenschappen"
134 }, 134 },
135 template:{ 135 template:{
136 -desc:"Voorgedefineerd sjabloon invoegen" 136 +desc:"Voorgedefinieerd sjabloon invoegen"
137 }, 137 },
138 visualchars:{ 138 visualchars:{
139 desc:"Zichtbare symbolen" 139 desc:"Zichtbare symbolen"
@@ -144,7 +144,7 @@ menu:&quot;Instellingen spellingcontrole&quot;, @@ -144,7 +144,7 @@ menu:&quot;Instellingen spellingcontrole&quot;,
144 ignore_word:"Woord negeren", 144 ignore_word:"Woord negeren",
145 ignore_words:"Alles negeren", 145 ignore_words:"Alles negeren",
146 langs:"Talen", 146 langs:"Talen",
147 -wait:"Een ogenblik geduld...", 147 +wait:"Een ogenblik geduld\u2026",
148 sug:"Suggesties", 148 sug:"Suggesties",
149 no_sug:"Geen suggesties", 149 no_sug:"Geen suggesties",
150 no_mpell:"Geen spelfouten gevonden." 150 no_mpell:"Geen spelfouten gevonden."
public/javascripts/tinymce/jscripts/tiny_mce/langs/pt.js
@@ -8,11 +8,11 @@ cancel:&quot;Cancelar&quot;, @@ -8,11 +8,11 @@ cancel:&quot;Cancelar&quot;,
8 close:"Fechar", 8 close:"Fechar",
9 browse:"Procurar", 9 browse:"Procurar",
10 class_name:"Classe", 10 class_name:"Classe",
11 -not_set:"-- N\u00E3o especificado --",  
12 -clipboard_msg:"Copiar/cortar/colar n\u00E3o est\u00E1 dispon\u00EDvel no Mozilla/Firefox.\nDeseja mais informa\u00E7\u00F5es sobre este problema?",  
13 -clipboard_no_support:"O seu navegador n\u00E3o tem suporte para esta fun\u00E7\u00E3o, use os atalhos do teclado.",  
14 -popup_blocked:"Detectamos que o seu bloqueador de popups bloqueou uma janela que \u00E9 essencial para o aplicativo. Voc\u00EA precisa desativar o bloqueador de popups para utilizar esta ferramenta.",  
15 -invalid_data:"Erro: Valores inv\u00E1lidos est\u00E3o marcados em vermelho.", 11 +not_set:"-- N/A --",
  12 +clipboard_msg:"Copiar/cortar/colar n\u00E3o est\u00E1 dispon\u00EDvel no Mozilla e Firefox.\nDeseja mais informa\u00E7\u00F5es sobre este problema?",
  13 +clipboard_no_support:"O seu browser n\u00E3o suporta esta fun\u00E7\u00E3o, use os atalhos do teclado.",
  14 +popup_blocked:"Detectamos que o seu bloqueador de popups bloqueou uma janela que \u00E9 essencial para a aplica\u00E7\u00E3o. Voc\u00EA precisa desativar o bloqueador de janelas de popups para utilizar esta ferramenta.",
  15 +invalid_data:"Erro: Valores inv\u00E1lidos marcados em vermelho.",
16 more_colors:"Mais Cores" 16 more_colors:"Mais Cores"
17 }, 17 },
18 contextmenu:{ 18 contextmenu:{
@@ -20,7 +20,7 @@ align:&quot;Alinhamento&quot;, @@ -20,7 +20,7 @@ align:&quot;Alinhamento&quot;,
20 left:"Esquerda", 20 left:"Esquerda",
21 center:"Centro", 21 center:"Centro",
22 right:"Direita", 22 right:"Direita",
23 -full:"Justificar" 23 +full:"Justificado"
24 }, 24 },
25 insertdatetime:{ 25 insertdatetime:{
26 date_fmt:"%d-%m-%Y", 26 date_fmt:"%d-%m-%Y",
@@ -29,14 +29,14 @@ insertdate_desc:&quot;Inserir data&quot;, @@ -29,14 +29,14 @@ insertdate_desc:&quot;Inserir data&quot;,
29 inserttime_desc:"Inserir hora", 29 inserttime_desc:"Inserir hora",
30 months_long:"Janeiro,Fevereiro,Mar\u00E7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro", 30 months_long:"Janeiro,Fevereiro,Mar\u00E7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro",
31 months_short:"Jan,Fev,Mar,Abr,Mai,Jun,Jul,Ago,Set,Out,Nov,Dez", 31 months_short:"Jan,Fev,Mar,Abr,Mai,Jun,Jul,Ago,Set,Out,Nov,Dez",
32 -day_long:"Domingo,Segunda-Feira,Ter\u00E7a-Feira,Quarta-Feira,Quinta-Feira,Sexta-Feira,S\u00E1bado,Domingo", 32 +day_long:"Domingo,Segunda-feira,Ter\u00E7a-feira,Quarta-feira,Quinta-feira,Sexta-feira,S\u00E1bado,Domingo",
33 day_short:"Dom,Seg,Ter,Qua,Qui,Sex,Sab,Dom" 33 day_short:"Dom,Seg,Ter,Qua,Qui,Sex,Sab,Dom"
34 }, 34 },
35 print:{ 35 print:{
36 print_desc:"Imprimir" 36 print_desc:"Imprimir"
37 }, 37 },
38 preview:{ 38 preview:{
39 -preview_desc:"Pr\u00E9-Visualizar" 39 +preview_desc:"Pr\u00E9-visualizar"
40 }, 40 },
41 directionality:{ 41 directionality:{
42 ltr_desc:"Da esquerda para direita", 42 ltr_desc:"Da esquerda para direita",
@@ -46,7 +46,7 @@ layer:{ @@ -46,7 +46,7 @@ layer:{
46 insertlayer_desc:"Inserir nova camada", 46 insertlayer_desc:"Inserir nova camada",
47 forward_desc:"Mover para frente", 47 forward_desc:"Mover para frente",
48 backward_desc:"Mover para tr\u00E1s", 48 backward_desc:"Mover para tr\u00E1s",
49 -absolute_desc:"Alternar posicionamento absoluto", 49 +absolute_desc:"Alternar o posicionamento absoluto",
50 content:"Nova camada..." 50 content:"Nova camada..."
51 }, 51 },
52 save:{ 52 save:{
@@ -54,11 +54,11 @@ save_desc:&quot;Salvar&quot;, @@ -54,11 +54,11 @@ save_desc:&quot;Salvar&quot;,
54 cancel_desc:"Cancelar todas as altera\u00E7\u00F5es" 54 cancel_desc:"Cancelar todas as altera\u00E7\u00F5es"
55 }, 55 },
56 nonbreaking:{ 56 nonbreaking:{
57 -nonbreaking_desc:"Inserir um espa\u00E7o" 57 +nonbreaking_desc:"Inserir um espa\u00E7o \"sem quebra\""
58 }, 58 },
59 iespell:{ 59 iespell:{
60 iespell_desc:"Verificar ortografia", 60 iespell_desc:"Verificar ortografia",
61 -download:"Aplicativo de ortografia n\u00E3o-detectado. Deseja instal\u00E1-lo agora?" 61 +download:"Plugin de ortografia n\u00E3o-detectado. Deseja instalar agora?"
62 }, 62 },
63 advhr:{ 63 advhr:{
64 advhr_desc:"Separador horizontal" 64 advhr_desc:"Separador horizontal"
@@ -79,7 +79,7 @@ link_desc:&quot;Inserir/editar hyperlink&quot; @@ -79,7 +79,7 @@ link_desc:&quot;Inserir/editar hyperlink&quot;
79 xhtmlxtras:{ 79 xhtmlxtras:{
80 cite_desc:"Cita\u00E7\u00E3o", 80 cite_desc:"Cita\u00E7\u00E3o",
81 abbr_desc:"Abrevia\u00E7\u00E3o", 81 abbr_desc:"Abrevia\u00E7\u00E3o",
82 -acronym_desc:"Acr\u00F3nimo", 82 +acronym_desc:"Acr\u00F4nimo",
83 del_desc:"Apagar", 83 del_desc:"Apagar",
84 ins_desc:"Inserir", 84 ins_desc:"Inserir",
85 attribs_desc:"Inserir/Editar atributos" 85 attribs_desc:"Inserir/Editar atributos"
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.AdvancedHRPlugin',{init:function(ed,url){ed.addCommand('mceAdvancedHr',function(){ed.windowManager.open({file:url+'/rule.htm',width:250+parseInt(ed.getLang('advhr.delta_width',0)),height:160+parseInt(ed.getLang('advhr.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('advhr',{title:'advhr.advhr_desc',cmd:'mceAdvancedHr'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('advhr',n.nodeName=='HR');});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='HR')ed.selection.select(e);});},getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advhr',tinymce.plugins.AdvancedHRPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advhr/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +tinyMCE.addI18n('ja.advhr_dlg',{
  2 +width:"\u5E45",
  3 +size:"\u9AD8\u3055",
  4 +noshade:"\u5F71\u306A\u3057"
  5 +});
0 \ No newline at end of file 6 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm
@@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
7 <script type="text/javascript" src="../../utils/mctabs.js"></script> 7 <script type="text/javascript" src="../../utils/mctabs.js"></script>
8 <script type="text/javascript" src="../../utils/form_utils.js"></script> 8 <script type="text/javascript" src="../../utils/form_utils.js"></script>
9 <link href="css/advhr.css" rel="stylesheet" type="text/css" /> 9 <link href="css/advhr.css" rel="stylesheet" type="text/css" />
10 - <base target="_self" />  
11 </head> 10 </head>
12 <body> 11 <body>
13 <form onsubmit="AdvHRDialog.update();return false;" action="#"> 12 <form onsubmit="AdvHRDialog.update();return false;" action="#">
@@ -22,7 +21,7 @@ @@ -22,7 +21,7 @@
22 <table border="0" cellpadding="4" cellspacing="0"> 21 <table border="0" cellpadding="4" cellspacing="0">
23 <tr> 22 <tr>
24 <td><label for="width">{#advhr_dlg.width}</label></td> 23 <td><label for="width">{#advhr_dlg.width}</label></td>
25 - <td nowrap="nowrap"> 24 + <td class="nowrap">
26 <input id="width" name="width" type="text" value="" class="mceFocus" /> 25 <input id="width" name="width" type="text" value="" class="mceFocus" />
27 <select name="width2" id="width2"> 26 <select name="width2" id="width2">
28 <option value="">px</option> 27 <option value="">px</option>
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.AdvancedImagePlugin',{init:function(ed,url){ed.addCommand('mceAdvImage',function(){if(ed.dom.getAttrib(ed.selection.getNode(),'class').indexOf('mceItem')!=-1)return;ed.windowManager.open({file:url+'/image.htm',width:480+parseInt(ed.getLang('advimage.delta_width',0)),height:385+parseInt(ed.getLang('advimage.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('image',{title:'advimage.image_desc',cmd:'mceAdvImage'});},getInfo:function(){return{longname:'Advanced image',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advimage',tinymce.plugins.AdvancedImagePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm
@@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
9 <script type="text/javascript" src="../../utils/editable_selects.js"></script> 9 <script type="text/javascript" src="../../utils/editable_selects.js"></script>
10 <script type="text/javascript" src="js/image.js"></script> 10 <script type="text/javascript" src="js/image.js"></script>
11 <link href="css/advimage.css" rel="stylesheet" type="text/css" /> 11 <link href="css/advimage.css" rel="stylesheet" type="text/css" />
12 - <base target="_self" />  
13 </head> 12 </head>
14 <body id="advimage" style="display: none"> 13 <body id="advimage" style="display: none">
15 <form onsubmit="ImageDialog.insert();return false;" action="#"> 14 <form onsubmit="ImageDialog.insert();return false;" action="#">
@@ -38,7 +37,7 @@ @@ -38,7 +37,7 @@
38 </tr> 37 </tr>
39 <tr> 38 <tr>
40 <td><label for="src_list">{#advimage_dlg.image_list}</label></td> 39 <td><label for="src_list">{#advimage_dlg.image_list}</label></td>
41 - <td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"></select></td> 40 + <td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"><option value=""></option></select></td>
42 </tr> 41 </tr>
43 <tr> 42 <tr>
44 <td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td> 43 <td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
@@ -89,7 +88,7 @@ @@ -89,7 +88,7 @@
89 88
90 <tr> 89 <tr>
91 <td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td> 90 <td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
92 - <td nowrap="nowrap"> 91 + <td class="nowrap">
93 <input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x 92 <input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x
94 <input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px 93 <input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px
95 </td> 94 </td>
@@ -123,7 +122,7 @@ @@ -123,7 +122,7 @@
123 122
124 <tr> 123 <tr>
125 <td><label for="class_list">{#class_name}</label></td> 124 <td><label for="class_list">{#class_name}</label></td>
126 - <td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"></select></td> 125 + <td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"><option value=""></option></select></td>
127 </tr> 126 </tr>
128 127
129 <tr> 128 <tr>
@@ -158,7 +157,7 @@ @@ -158,7 +157,7 @@
158 </tr> 157 </tr>
159 <tr> 158 <tr>
160 <td><label for="over_list">{#advimage_dlg.image_list}</label></td> 159 <td><label for="over_list">{#advimage_dlg.image_list}</label></td>
161 - <td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"></select></td> 160 + <td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
162 </tr> 161 </tr>
163 <tr> 162 <tr>
164 <td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td> 163 <td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
@@ -171,7 +170,7 @@ @@ -171,7 +170,7 @@
171 </tr> 170 </tr>
172 <tr> 171 <tr>
173 <td><label for="out_list">{#advimage_dlg.image_list}</label></td> 172 <td><label for="out_list">{#advimage_dlg.image_list}</label></td>
174 - <td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"></select></td> 173 + <td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
175 </tr> 174 </tr>
176 </table> 175 </table>
177 </fieldset> 176 </fieldset>
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js
@@ -272,6 +272,7 @@ var ImageDialog = { @@ -272,6 +272,7 @@ var ImageDialog = {
272 cl = tinyMCEPopup.editor.dom.getClasses(); 272 cl = tinyMCEPopup.editor.dom.getClasses();
273 273
274 if (cl.length > 0) { 274 if (cl.length > 0) {
  275 + lst.options.length = 0;
275 lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); 276 lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
276 277
277 tinymce.each(cl, function(o) { 278 tinymce.each(cl, function(o) {
@@ -285,6 +286,7 @@ var ImageDialog = { @@ -285,6 +286,7 @@ var ImageDialog = {
285 var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; 286 var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
286 287
287 l = window[l]; 288 l = window[l];
  289 + lst.options.length = 0;
288 290
289 if (l && l.length > 0) { 291 if (l && l.length > 0) {
290 lst.options[lst.options.length] = new Option('', ''); 292 lst.options[lst.options.length] = new Option('', '');
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de_dlg.js
@@ -5,7 +5,7 @@ tab_advanced:&quot;Erweitert&quot;, @@ -5,7 +5,7 @@ tab_advanced:&quot;Erweitert&quot;,
5 general:"Allgemein", 5 general:"Allgemein",
6 title:"Titel", 6 title:"Titel",
7 preview:"Vorschau", 7 preview:"Vorschau",
8 -constrain_proportions:"Ausma\u00DFe", 8 +constrain_proportions:"Seitenverh\u00E4ltnis beibehalten",
9 langdir:"Schriftrichtung", 9 langdir:"Schriftrichtung",
10 langcode:"Sprachcode", 10 langcode:"Sprachcode",
11 long_desc:"Ausf\u00FChrliche Beschreibung", 11 long_desc:"Ausf\u00FChrliche Beschreibung",
@@ -21,7 +21,7 @@ mouseover:&quot;bei Mauskontakt&quot;, @@ -21,7 +21,7 @@ mouseover:&quot;bei Mauskontakt&quot;,
21 mouseout:"bei keinem Mauskontakt", 21 mouseout:"bei keinem Mauskontakt",
22 misc:"Verschiedenes", 22 misc:"Verschiedenes",
23 example_img:"Aussehen der Vorschau", 23 example_img:"Aussehen der Vorschau",
24 -missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugrifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.", 24 +missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.",
25 dialog_title:"Bild einf\u00FCgen/bearbeiten", 25 dialog_title:"Bild einf\u00FCgen/bearbeiten",
26 src:"Adresse", 26 src:"Adresse",
27 alt:"Beschreibung", 27 alt:"Beschreibung",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/langs/fr_dlg.js
@@ -21,7 +21,7 @@ mouseover:&quot;au passage de la souris&quot;, @@ -21,7 +21,7 @@ mouseover:&quot;au passage de la souris&quot;,
21 mouseout:"\u00E0 la sortie de la souris", 21 mouseout:"\u00E0 la sortie de la souris",
22 misc:"Divers", 22 misc:"Divers",
23 example_img:"Apparence de l'image", 23 example_img:"Apparence de l'image",
24 -missing_alt:"\u00CAtes-vous s\u00FBr de vouloir continuer sans inclure de description de l'image\u00A0? Sans description, l'image peut ne pas \u00EAtre accessible \u00E0 certains utilisateurs handicap\u00E9s visuellement, ceux utilisant un navigateur texte, ou ceux qui naviguent sans affichage des images.", 24 +missing_alt:"\u00CAtes-vous s\u00FBr de vouloir continuer sans inclure de description de l'image? Sans description, l'image peut ne pas \u00EAtre accessible \u00E0 certains utilisateurs handicap\u00E9s visuellement, ceux utilisant un navigateur texte, ou ceux qui naviguent sans affichage des images.",
25 dialog_title:"Ins\u00E9rer/\u00C9diter image", 25 dialog_title:"Ins\u00E9rer/\u00C9diter image",
26 src:"URL de l'image", 26 src:"URL de l'image",
27 alt:"Description de l'image", 27 alt:"Description de l'image",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,43 @@ @@ -0,0 +1,43 @@
  1 +tinyMCE.addI18n('ja.advimage_dlg',{
  2 +tab_general:"\u4E00\u822C",
  3 +tab_appearance:"\u8868\u793A",
  4 +tab_advanced:"\u4E0A\u7D1A\u8005\u5411\u3051",
  5 +general:"\u4E00\u822C",
  6 +title:"\u30BF\u30A4\u30C8\u30EB",
  7 +preview:"\u30D7\u30EC\u30D3\u30E5\u30FC",
  8 +constrain_proportions:"\u7E26\u6A2A\u6BD4\u306E\u4FDD\u5B58",
  9 +langdir:"\u6587\u7AE0\u306E\u65B9\u5411",
  10 +langcode:"\u8A00\u8A9E\u30B3\u30FC\u30C9",
  11 +long_desc:"\u8A73\u7D30\u8AAC\u660E\u30EA\u30F3\u30AF",
  12 +style:"\u30B9\u30BF\u30A4\u30EB",
  13 +classes:"\u30AF\u30E9\u30B9",
  14 +ltr:"\u5DE6\u304B\u3089\u53F3",
  15 +rtl:"\u53F3\u304B\u3089\u5DE6",
  16 +id:"Id",
  17 +map:"\u30A4\u30E1\u30FC\u30B8\u30DE\u30C3\u30D7",
  18 +swap_image:"\u30ED\u30FC\u30EB\u30AA\u30FC\u30D0\u30FC\u52B9\u679C",
  19 +alt_image:"\u753B\u50CF\u5207\u66FF\u3092\u884C\u3046",
  20 +mouseover:"\u30DE\u30A6\u30B9\u30AA\u30FC\u30D0\u30FC\u6642",
  21 +mouseout:"\u30DE\u30A6\u30B9\u30A2\u30A6\u30C8\u6642",
  22 +misc:"\u305D\u306E\u4ED6",
  23 +example_img:"Appearance preview image",
  24 +missing_alt:"\u753B\u50CF\u306E\u8AAC\u660E\u6587\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u76EE\u306E\u4E0D\u81EA\u7531\u306A\u65B9\u3084\u30C6\u30AD\u30B9\u30C8\u30D6\u30E9\u30A6\u30B6\u3092\u5229\u7528\u3055\u308C\u3066\u3044\u308B\u65B9\u3078\u914D\u616E\u3057\u3001\u753B\u50CF\u8AAC\u660E\u3092\u5165\u529B\u3059\u308B\u3053\u3068\u3092\u304A\u85A6\u3081\u3057\u307E\u3059\u3002",
  25 +dialog_title:"\u753B\u50CF\u306E\u633F\u5165/\u7DE8\u96C6",
  26 +src:"\u753B\u50CFURL",
  27 +alt:"\u753B\u50CF\u306E\u8AAC\u660E",
  28 +list:"\u4E00\u89A7\u304B\u3089\u9078\u3076",
  29 +border:"\u67A0\u7DDA",
  30 +dimensions:"\u30B5\u30A4\u30BA",
  31 +vspace:"\u4E0A\u4E0B\u4F59\u767D",
  32 +hspace:"\u5DE6\u53F3\u4F59\u767D",
  33 +align:"\u914D\u7F6E",
  34 +align_baseline:"Baseline",
  35 +align_top:"Top",
  36 +align_middle:"Middle",
  37 +align_bottom:"Bottom",
  38 +align_texttop:"Text top",
  39 +align_textbottom:"Text bottom",
  40 +align_left:"Left",
  41 +align_right:"Right",
  42 +image_list:"\u4E00\u89A7\u304B\u3089\u9078\u3076"
  43 +});
0 \ No newline at end of file 44 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advimage/langs/pt_dlg.js
@@ -20,7 +20,7 @@ alt_image:&quot;Imagem alternativa&quot;, @@ -20,7 +20,7 @@ alt_image:&quot;Imagem alternativa&quot;,
20 mouseover:"mouseover", 20 mouseover:"mouseover",
21 mouseout:"mouseout", 21 mouseout:"mouseout",
22 misc:"Misto", 22 misc:"Misto",
23 -example_img:"Pr\u00E9-visualiza\u00E7\u00E3o", 23 +example_img:"Pr\u00E9-Visualiza\u00E7\u00E3o",
24 missing_alt:"Tem certeza que deseja continuar sem acrescentar uma descri\u00E7\u00E3o \u00E0 imagem? (Isto pode gerar problemas de acessibilidade em alguns navegadores)", 24 missing_alt:"Tem certeza que deseja continuar sem acrescentar uma descri\u00E7\u00E3o \u00E0 imagem? (Isto pode gerar problemas de acessibilidade em alguns navegadores)",
25 dialog_title:"Inserir/editar imagem", 25 dialog_title:"Inserir/editar imagem",
26 src:"Endere\u00E7o da imagem", 26 src:"Endere\u00E7o da imagem",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.AdvancedLinkPlugin',{init:function(ed,url){this.editor=ed;ed.addCommand('mceAdvLink',function(){var se=ed.selection;if(se.isCollapsed()&&!ed.dom.getParent(se.getNode(),'A'))return;ed.windowManager.open({file:url+'/link.htm',width:480+parseInt(ed.getLang('advlink.delta_width',0)),height:400+parseInt(ed.getLang('advlink.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('link',{title:'advlink.link_desc',cmd:'mceAdvLink'});ed.addShortcut('ctrl+k','advlink.advlink_desc','mceAdvLink');ed.onNodeChange.add(function(ed,cm,n,co){cm.setDisabled('link',co&&n.nodeName!='A');cm.setActive('link',n.nodeName=='A'&&!n.name);});},getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advlink',tinymce.plugins.AdvancedLinkPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
@@ -116,7 +116,7 @@ function checkPrefix(n) { @@ -116,7 +116,7 @@ function checkPrefix(n) {
116 if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) 116 if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
117 n.value = 'mailto:' + n.value; 117 n.value = 'mailto:' + n.value;
118 118
119 - if (/^\s*www./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) 119 + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
120 n.value = 'http://' + n.value; 120 n.value = 'http://' + n.value;
121 } 121 }
122 122
@@ -402,6 +402,7 @@ function insertAction() { @@ -402,6 +402,7 @@ function insertAction() {
402 402
403 // Create new anchor elements 403 // Create new anchor elements
404 if (elm == null) { 404 if (elm == null) {
  405 + inst.getDoc().execCommand("unlink", false, null);
405 tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); 406 tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
406 407
407 elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); 408 elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/langs/de_dlg.js
@@ -3,8 +3,8 @@ title:&quot;Link einf\u00FCgen/bearbeiten&quot;, @@ -3,8 +3,8 @@ title:&quot;Link einf\u00FCgen/bearbeiten&quot;,
3 url:"Adresse", 3 url:"Adresse",
4 target:"Fenster", 4 target:"Fenster",
5 titlefield:"Titel", 5 titlefield:"Titel",
6 -is_email:"Bei der Adresse scheint es sich um eine E-Mail-Adresse zu handeln. Wollen Sie das dazu ben\u00F6tigte mailto: voranstellen?",  
7 -is_external:"Bei der Adresse scheint es sich um einen externen Link zu handeln. M\u00F6chten Sie, dass zur korrekten Verlinkung ein http:// vorangestellt wird?", 6 +is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte mailto: voranstellen?",
  7 +is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte http:// voranstellen?",
8 list:"Linkliste", 8 list:"Linkliste",
9 general_tab:"Allgemein", 9 general_tab:"Allgemein",
10 popup_tab:"Popup", 10 popup_tab:"Popup",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/langs/fr_dlg.js
@@ -3,13 +3,13 @@ title:&quot;Ins\u00E9rer/\u00C9diter lien&quot;, @@ -3,13 +3,13 @@ title:&quot;Ins\u00E9rer/\u00C9diter lien&quot;,
3 url:"URL du lien", 3 url:"URL du lien",
4 target:"Cible", 4 target:"Cible",
5 titlefield:"Titre", 5 titlefield:"Titre",
6 -is_email:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse e-mail, voulez-vous ajouter le pr\u00E9fixe mailto:\u00A0?",  
7 -is_external:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse web externe, voulez-vous ajouter le pr\u00E9fixe http://\u00A0?", 6 +is_email:"L'URL que vous avez entr\u00E9 semble \u00EAtre une adresse e-mail, voulez-vous ajouter le pr\u00E9fixe mailto:?",
  7 +is_external:"L'URL que vous avez entr\u00E9 semble \u00EAtre une adresse web externe, voulez-vous ajouter le pr\u00E9fixe http://?",
8 list:"Liste de liens", 8 list:"Liste de liens",
9 general_tab:"G\u00E9n\u00E9ral", 9 general_tab:"G\u00E9n\u00E9ral",
10 popup_tab:"Popup", 10 popup_tab:"Popup",
11 events_tab:"\u00C9v\u00E9nements", 11 events_tab:"\u00C9v\u00E9nements",
12 -advanced_tab:"Advanc\u00E9", 12 +advanced_tab:"Avanc\u00E9",
13 general_props:"Propri\u00E9t\u00E9s g\u00E9n\u00E9rales", 13 general_props:"Propri\u00E9t\u00E9s g\u00E9n\u00E9rales",
14 popup_props:"Propri\u00E9t\u00E9s du popup", 14 popup_props:"Propri\u00E9t\u00E9s du popup",
15 event_props:"\u00C9v\u00E9nements", 15 event_props:"\u00C9v\u00E9nements",
@@ -25,12 +25,12 @@ popup_url:&quot;URL du popup&quot;, @@ -25,12 +25,12 @@ popup_url:&quot;URL du popup&quot;,
25 popup_name:"Nom de la fen\u00EAtre", 25 popup_name:"Nom de la fen\u00EAtre",
26 popup_return:"Ins\u00E9rer 'return false'", 26 popup_return:"Ins\u00E9rer 'return false'",
27 popup_scrollbars:"Afficher les ascenseurs", 27 popup_scrollbars:"Afficher les ascenseurs",
28 -popup_statusbar:"Afficher la barre de status", 28 +popup_statusbar:"Afficher la barre de statuts",
29 popup_toolbar:"Afficher la barre d'outils", 29 popup_toolbar:"Afficher la barre d'outils",
30 popup_menubar:"Afficher la barre de menu", 30 popup_menubar:"Afficher la barre de menu",
31 popup_location:"Afficher la barre d'adresse", 31 popup_location:"Afficher la barre d'adresse",
32 -popup_resizable:"Rendre la fen\u00EAtre redimensionable",  
33 -popup_dependent:"D\u00E9pendent (Seulement sous Mozilla/Firefox)", 32 +popup_resizable:"Rendre la fen\u00EAtre redimensionnable",
  33 +popup_dependent:"D\u00E9pendant (seulement sous Mozilla/Firefox)",
34 popup_size:"Taille", 34 popup_size:"Taille",
35 popup_position:"Position (X/Y)", 35 popup_position:"Position (X/Y)",
36 id:"Id", 36 id:"Id",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
  1 +tinyMCE.addI18n('ja.advlink_dlg',{
  2 +title:"\u30EA\u30F3\u30AF\u306E\u633F\u5165/\u7DE8\u96C6",
  3 +url:"\u30EA\u30F3\u30AFURL",
  4 +target:"\u30BF\u30FC\u30B2\u30C3\u30C8",
  5 +titlefield:"\u30BF\u30A4\u30C8\u30EB",
  6 +is_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u306Bmailto:\u3092\u4ED8\u52A0\u3057\u307E\u3059\u304B\uFF1F",
  7 +is_external:"\u30EA\u30F3\u30AF\u306Bhttp://\u3092\u4ED8\u52A0\u3057\u307E\u3059\u304B\uFF1F",
  8 +list:"\u4E00\u89A7\u304B\u3089\u9078\u3076",
  9 +general_tab:"\u4E00\u822C",
  10 +popup_tab:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7",
  11 +events_tab:"\u30A4\u30D9\u30F3\u30C8",
  12 +advanced_tab:"\u4E0A\u7D1A\u8005\u5411\u3051",
  13 +general_props:"\u4E00\u822C",
  14 +popup_props:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7",
  15 +event_props:"\u30A4\u30D9\u30F3\u30C8",
  16 +advanced_props:"\u4E0A\u7D1A\u8005\u5411\u3051",
  17 +popup_opts:"\u30AA\u30D7\u30B7\u30E7\u30F3",
  18 +anchor_names:"\u30A2\u30F3\u30AB\u30FC",
  19 +target_same:"\u3053\u306E\u30A6\u30A4\u30F3\u30C9\u30A6/\u30D5\u30EC\u30FC\u30E0\u3067\u958B\u304F",
  20 +target_parent:"\u89AA\u30A6\u30A4\u30F3\u30C9\u30A6/\u89AA\u30D5\u30EC\u30FC\u30E0\u3067\u958B\u304F",
  21 +target_top:"\u30C8\u30C3\u30D7\u306E\u30D5\u30EC\u30FC\u30E0\u3067\u958B\u304F",
  22 +target_blank:"\u65B0\u3057\u3044\u30A6\u30A4\u30F3\u30C9\u30A6\u3067\u958B\u304F",
  23 +popup:"Javascript\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7",
  24 +popup_url:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7URL",
  25 +popup_name:"\u30A6\u30A4\u30F3\u30C9\u30A6\u540D",
  26 +popup_return:"'return false'\u3092\u633F\u5165\u3059\u308B",
  27 +popup_scrollbars:"\u30B9\u30AF\u30ED\u30FC\u30EB\u30D0\u30FC\u3092\u8868\u793A",
  28 +popup_statusbar:"\u30B9\u30C6\u30FC\u30BF\u30B9\u30D0\u30FC\u3092\u8868\u793A",
  29 +popup_toolbar:"\u30C4\u30FC\u30EB\u30D0\u30FC\u3092\u8868\u793A",
  30 +popup_menubar:"\u30E1\u30CB\u30E5\u30FC\u30D0\u30FC\u3092\u8868\u793A",
  31 +popup_location:"\u30A2\u30C9\u30EC\u30B9\u30D0\u30FC\u3092\u8868\u793A",
  32 +popup_resizable:"\u30A6\u30A4\u30F3\u30C9\u30A6\u306E\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u8A31\u53EF\u3059\u308B",
  33 +popup_dependent:"Dependent (Mozilla/Firefox\u306E\u307F)",
  34 +popup_size:"\u30B5\u30A4\u30BA",
  35 +popup_position:"\u4F4D\u7F6E (X/Y)",
  36 +id:"ID",
  37 +style:"\u30B9\u30BF\u30A4\u30EB",
  38 +classes:"\u30AF\u30E9\u30B9",
  39 +target_name:"\u30BF\u30FC\u30B2\u30C3\u30C8\u540D",
  40 +langdir:"\u6587\u7AE0\u306E\u65B9\u5411",
  41 +target_langcode:"\u30BF\u30FC\u30B2\u30C3\u30C8\u306E\u8A00\u8A9E",
  42 +langcode:"\u8A00\u8A9E\u30B3\u30FC\u30C9",
  43 +encoding:"\u30BF\u30FC\u30B2\u30C3\u30C8\u306E\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0",
  44 +mime:"\u30BF\u30FC\u30B2\u30C3\u30C8\u306EMIME\u30BF\u30A4\u30D7",
  45 +rel:"\u3053\u306E\u30DA\u30FC\u30B8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u5BFE\u3059\u308B\u95A2\u4FC2",
  46 +rev:"\u30BF\u30FC\u30B2\u30C3\u30C8\u306E\u3053\u306E\u30DA\u30FC\u30B8\u306B\u5BFE\u3059\u308B\u95A2\u4FC2",
  47 +tabindex:"\u30BF\u30D6\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9",
  48 +accesskey:"\u30A2\u30AF\u30BB\u30B9\u30AD\u30FC",
  49 +ltr:"\u5DE6\u304B\u3089\u53F3",
  50 +rtl:"\u53F3\u304B\u3089\u5DE6",
  51 +link_list:"\u4E00\u89A7\u304B\u3089\u9078\u3076"
  52 +});
0 \ No newline at end of file 53 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/langs/nl_dlg.js
@@ -35,7 +35,7 @@ popup_size:&quot;Grootte&quot;, @@ -35,7 +35,7 @@ popup_size:&quot;Grootte&quot;,
35 popup_position:"Positie (X/Y)", 35 popup_position:"Positie (X/Y)",
36 id:"Id", 36 id:"Id",
37 style:"Stijl", 37 style:"Stijl",
38 -classes:"Klasses", 38 +classes:"Klassen",
39 target_name:"Doel", 39 target_name:"Doel",
40 langdir:"Taalrichting", 40 langdir:"Taalrichting",
41 target_langcode:"Taal", 41 target_langcode:"Taal",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/langs/pt_dlg.js
@@ -3,8 +3,8 @@ title:&quot;Inserir/editar hyperlink&quot;, @@ -3,8 +3,8 @@ title:&quot;Inserir/editar hyperlink&quot;,
3 url:"URL do hyperlink", 3 url:"URL do hyperlink",
4 target:"Alvo", 4 target:"Alvo",
5 titlefield:"T\u00EDtulo", 5 titlefield:"T\u00EDtulo",
6 -is_email:"A URL digitada parece ser um endere\u00E7o de e-mail. Deseja acrescentar o (necess\u00E1rio) prefixo mailto:?",  
7 -is_external:"A URL digitada parece conduzir a um link externo. Deseja acrescentar o (necess\u00E1rio) prefixo http://?", 6 +is_email:"A URL digitada parece ser um endere\u00E7o de e-mail. Deseja acrescentar o prefixo necess\u00E1rio mailto:?",
  7 +is_external:"A URL digitada parece conduzir a um link externo. Deseja acrescentar o prefixo necess\u00E1rio http://?",
8 list:"Lista de hyperlinks", 8 list:"Lista de hyperlinks",
9 general_tab:"Geral", 9 general_tab:"Geral",
10 popup_tab:"Popup", 10 popup_tab:"Popup",
@@ -15,7 +15,7 @@ popup_props:&quot;Propriedades de popup&quot;, @@ -15,7 +15,7 @@ popup_props:&quot;Propriedades de popup&quot;,
15 event_props:"Eventos", 15 event_props:"Eventos",
16 advanced_props:"Propriedades avan\u00E7adas", 16 advanced_props:"Propriedades avan\u00E7adas",
17 popup_opts:"Op\u00E7\u00F5es", 17 popup_opts:"Op\u00E7\u00F5es",
18 -anchor_names:"\u00E0ncoras", 18 +anchor_names:"\u00C2ncoras",
19 target_same:"Abrir nesta janela/quadro", 19 target_same:"Abrir nesta janela/quadro",
20 target_parent:"Abrir na janela/quadro pai", 20 target_parent:"Abrir na janela/quadro pai",
21 target_top:"Abrir na p\u00E1gina inteira (substitui todos os quadros)", 21 target_top:"Abrir na p\u00E1gina inteira (substitui todos os quadros)",
@@ -24,11 +24,11 @@ popup:&quot;Popup javascript&quot;, @@ -24,11 +24,11 @@ popup:&quot;Popup javascript&quot;,
24 popup_url:"URL do popup", 24 popup_url:"URL do popup",
25 popup_name:"Nome da janela", 25 popup_name:"Nome da janela",
26 popup_return:"Inserir \"return false\"", 26 popup_return:"Inserir \"return false\"",
27 -popup_scrollbars:"Mostrar barras de scroll",  
28 -popup_statusbar:"Mostrar barra de status",  
29 -popup_toolbar:"Mostrar barras de ferramentas",  
30 -popup_menubar:"Mostrar barra de menu",  
31 -popup_location:"Mostrar barra de endere\u00E7os", 27 +popup_scrollbars:"Mostrar as barras de scroll",
  28 +popup_statusbar:"Mostrar a barra de status",
  29 +popup_toolbar:"Mostrar a barra de ferramentas",
  30 +popup_menubar:"Mostrar a barra de menu",
  31 +popup_location:"Mostrar a barra de endere\u00E7os",
32 popup_resizable:"Permitir altera\u00E7\u00E3o do tamanho da janela", 32 popup_resizable:"Permitir altera\u00E7\u00E3o do tamanho da janela",
33 popup_dependent:"Dependente (Mozilla/Firefox apenas)", 33 popup_dependent:"Dependente (Mozilla/Firefox apenas)",
34 popup_size:"Tamanho", 34 popup_size:"Tamanho",
@@ -38,8 +38,8 @@ style:&quot;Estilo&quot;, @@ -38,8 +38,8 @@ style:&quot;Estilo&quot;,
38 classes:"Classes", 38 classes:"Classes",
39 target_name:"Nome do alvo", 39 target_name:"Nome do alvo",
40 langdir:"Dire\u00E7\u00E3o do texto", 40 langdir:"Dire\u00E7\u00E3o do texto",
41 -target_langcode:"linguagem alvo",  
42 -langcode:"C\u00F3digo da linguagem", 41 +target_langcode:"Idioma alvo",
  42 +langcode:"C\u00F3digo da idioma",
43 encoding:"Codifica\u00E7\u00E3o de caracteres", 43 encoding:"Codifica\u00E7\u00E3o de caracteres",
44 mime:"Tipo MIME alvo", 44 mime:"Tipo MIME alvo",
45 rel:"Rela\u00E7\u00E3o p\u00E1gina/alvo", 45 rel:"Rela\u00E7\u00E3o p\u00E1gina/alvo",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
@@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
8 <script type="text/javascript" src="../../utils/validate.js"></script> 8 <script type="text/javascript" src="../../utils/validate.js"></script>
9 <script type="text/javascript" src="js/advlink.js"></script> 9 <script type="text/javascript" src="js/advlink.js"></script>
10 <link href="css/advlink.css" rel="stylesheet" type="text/css" /> 10 <link href="css/advlink.css" rel="stylesheet" type="text/css" />
11 - <base target="_self" />  
12 </head> 11 </head>
13 <body id="advlink" style="display: none"> 12 <body id="advlink" style="display: none">
14 <form onsubmit="insertAction();return false;" action="#"> 13 <form onsubmit="insertAction();return false;" action="#">
@@ -28,7 +27,7 @@ @@ -28,7 +27,7 @@
28 27
29 <table border="0" cellpadding="4" cellspacing="0"> 28 <table border="0" cellpadding="4" cellspacing="0">
30 <tr> 29 <tr>
31 - <td nowrap="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td> 30 + <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
32 <td><table border="0" cellspacing="0" cellpadding="0"> 31 <td><table border="0" cellspacing="0" cellpadding="0">
33 <tr> 32 <tr>
34 <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td> 33 <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td>
@@ -38,25 +37,25 @@ @@ -38,25 +37,25 @@
38 </tr> 37 </tr>
39 <tr id="linklisthrefrow"> 38 <tr id="linklisthrefrow">
40 <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td> 39 <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
41 - <td colspan="2" id="linklisthrefcontainer">&nbsp;</td> 40 + <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
42 </tr> 41 </tr>
43 <tr> 42 <tr>
44 <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td> 43 <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
45 - <td colspan="2" id="anchorlistcontainer">&nbsp;</td> 44 + <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
46 </tr> 45 </tr>
47 <tr> 46 <tr>
48 <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td> 47 <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
49 - <td id="targetlistcontainer">&nbsp;</td> 48 + <td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
50 </tr> 49 </tr>
51 <tr> 50 <tr>
52 - <td nowrap="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td> 51 + <td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
53 <td><input id="title" name="title" type="text" value="" /></td> 52 <td><input id="title" name="title" type="text" value="" /></td>
54 </tr> 53 </tr>
55 <tr> 54 <tr>
56 <td><label id="classlabel" for="classlist">{#class_name}</label></td> 55 <td><label id="classlabel" for="classlist">{#class_name}</label></td>
57 <td> 56 <td>
58 <select id="classlist" name="classlist" onchange="changeClass();"> 57 <select id="classlist" name="classlist" onchange="changeClass();">
59 - <option value="" selected>{#not_set}</option> 58 + <option value="" selected="selected">{#not_set}</option>
60 </select> 59 </select>
61 </td> 60 </td>
62 </tr> 61 </tr>
@@ -73,7 +72,7 @@ @@ -73,7 +72,7 @@
73 72
74 <table border="0" cellpadding="0" cellspacing="4"> 73 <table border="0" cellpadding="0" cellspacing="4">
75 <tr> 74 <tr>
76 - <td nowrap="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td> 75 + <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td>
77 <td> 76 <td>
78 <table border="0" cellspacing="0" cellpadding="0"> 77 <table border="0" cellspacing="0" cellpadding="0">
79 <tr> 78 <tr>
@@ -84,19 +83,19 @@ @@ -84,19 +83,19 @@
84 </td> 83 </td>
85 </tr> 84 </tr>
86 <tr> 85 <tr>
87 - <td nowrap="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td> 86 + <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td>
88 <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td> 87 <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
89 </tr> 88 </tr>
90 <tr> 89 <tr>
91 - <td nowrap="nowrap"><label>{#advlink_dlg.popup_size}</label>&nbsp;</td>  
92 - <td nowrap="nowrap"> 90 + <td class="nowrap"><label>{#advlink_dlg.popup_size}</label>&nbsp;</td>
  91 + <td class="nowrap">
93 <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x 92 <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x
94 <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px 93 <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px
95 </td> 94 </td>
96 </tr> 95 </tr>
97 <tr> 96 <tr>
98 - <td nowrap="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label>&nbsp;</td>  
99 - <td nowrap="nowrap"> 97 + <td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label>&nbsp;</td>
  98 + <td class="nowrap">
100 <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> / 99 <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> /
101 <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center) 100 <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center)
102 </td> 101 </td>
@@ -109,27 +108,27 @@ @@ -109,27 +108,27 @@
109 <table border="0" cellpadding="0" cellspacing="4"> 108 <table border="0" cellpadding="0" cellspacing="4">
110 <tr> 109 <tr>
111 <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td> 110 <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
112 - <td nowrap="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td> 111 + <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
113 <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td> 112 <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
114 - <td nowrap="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td> 113 + <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
115 </tr> 114 </tr>
116 <tr> 115 <tr>
117 <td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td> 116 <td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
118 - <td nowrap="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td> 117 + <td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
119 <td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td> 118 <td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
120 - <td nowrap="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td> 119 + <td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
121 </tr> 120 </tr>
122 <tr> 121 <tr>
123 <td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td> 122 <td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
124 - <td nowrap="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td> 123 + <td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
125 <td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td> 124 <td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
126 - <td nowrap="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td> 125 + <td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
127 </tr> 126 </tr>
128 <tr> 127 <tr>
129 <td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td> 128 <td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
130 - <td nowrap="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td> 129 + <td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
131 <td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td> 130 <td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
132 - <td nowrap="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td> 131 + <td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
133 </tr> 132 </tr>
134 </table> 133 </table>
135 </fieldset> 134 </fieldset>
public/javascripts/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)});a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();
0 \ No newline at end of file 2 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js 0 → 100644
@@ -0,0 +1,114 @@ @@ -0,0 +1,114 @@
  1 +/**
  2 + * $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $
  3 + *
  4 + * @author Moxiecode
  5 + * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
  6 + */
  7 +
  8 +(function() {
  9 + /**
  10 + * Auto Resize
  11 + *
  12 + * This plugin automatically resizes the content area to fit its content height.
  13 + * It will retain a minimum height, which is the height of the content area when
  14 + * it's initialized.
  15 + */
  16 + tinymce.create('tinymce.plugins.AutoResizePlugin', {
  17 + /**
  18 + * Initializes the plugin, this will be executed after the plugin has been created.
  19 + * This call is done before the editor instance has finished it's initialization so use the onInit event
  20 + * of the editor instance to intercept that event.
  21 + *
  22 + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
  23 + * @param {string} url Absolute URL to where the plugin is located.
  24 + */
  25 + init : function(ed, url) {
  26 + var t = this;
  27 +
  28 + if (ed.getParam('fullscreen_is_enabled'))
  29 + return;
  30 +
  31 + /**
  32 + * This method gets executed each time the editor needs to resize.
  33 + */
  34 + function resize() {
  35 + var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
  36 +
  37 + // Get height differently depending on the browser used
  38 + myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight;
  39 +
  40 + // Don't make it smaller than the minimum height
  41 + if (myHeight > t.autoresize_min_height)
  42 + resizeHeight = myHeight;
  43 +
  44 + // Resize content element
  45 + DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
  46 +
  47 + // if we're throbbing, we'll re-throb to match the new size
  48 + if (t.throbbing) {
  49 + ed.setProgressState(false);
  50 + ed.setProgressState(true);
  51 + }
  52 + };
  53 +
  54 + t.editor = ed;
  55 +
  56 + // Define minimum height
  57 + t.autoresize_min_height = ed.getElement().offsetHeight;
  58 +
  59 + // Things to do when the editor is ready
  60 + ed.onInit.add(function(ed, l) {
  61 + // Show throbber until content area is resized properly
  62 + ed.setProgressState(true);
  63 + t.throbbing = true;
  64 +
  65 + // Hide scrollbars
  66 + ed.getBody().style.overflowY = "hidden";
  67 + });
  68 +
  69 + // Add appropriate listeners for resizing content area
  70 + ed.onChange.add(resize);
  71 + ed.onSetContent.add(resize);
  72 + ed.onPaste.add(resize);
  73 + ed.onKeyUp.add(resize);
  74 + ed.onPostRender.add(resize);
  75 +
  76 + ed.onLoadContent.add(function(ed, l) {
  77 + resize();
  78 +
  79 + // Because the content area resizes when its content CSS loads,
  80 + // and we can't easily add a listener to its onload event,
  81 + // we'll just trigger a resize after a short loading period
  82 + setTimeout(function() {
  83 + resize();
  84 +
  85 + // Disable throbber
  86 + ed.setProgressState(false);
  87 + t.throbbing = false;
  88 + }, 1250);
  89 + });
  90 +
  91 + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
  92 + ed.addCommand('mceAutoResize', resize);
  93 + },
  94 +
  95 + /**
  96 + * Returns information about the plugin as a name/value array.
  97 + * The current keys are longname, author, authorurl, infourl and version.
  98 + *
  99 + * @return {Object} Name/value array containing information about the plugin.
  100 + */
  101 + getInfo : function() {
  102 + return {
  103 + longname : 'Auto Resize',
  104 + author : 'Moxiecode Systems AB',
  105 + authorurl : 'http://tinymce.moxiecode.com',
  106 + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
  107 + version : tinymce.majorVersion + "." + tinymce.minorVersion
  108 + };
  109 + }
  110 + });
  111 +
  112 + // Register plugin
  113 + tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
  114 +})();
0 \ No newline at end of file 115 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.AutoSavePlugin',{init:function(ed,url){var t=this;t.editor=ed;window.onbeforeunload=tinymce.plugins.AutoSavePlugin._beforeUnloadHandler;},getInfo:function(){return{longname:'Auto save',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',version:tinymce.majorVersion+"."+tinymce.minorVersion};},'static':{_beforeUnloadHandler:function(){var msg;tinymce.each(tinyMCE.editors,function(ed){if(ed.getParam("fullscreen_is_enabled"))return;if(ed.isDirty()){msg=ed.getLang("autosave.unload_msg");return false;}});return msg;}}});tinymce.PluginManager.add('autosave',tinymce.plugins.AutoSavePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.AutoSavePlugin",{init:function(a,b){var c=this;c.editor=a;window.onbeforeunload=tinymce.plugins.AutoSavePlugin._beforeUnloadHandler},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:tinymce.majorVersion+"."+tinymce.minorVersion}},"static":{_beforeUnloadHandler:function(){var a;tinymce.each(tinyMCE.editors,function(b){if(b.getParam("fullscreen_is_enabled")){return}if(b.isDirty()){a=b.getLang("autosave.unload_msg");return false}});return a}}});tinymce.PluginManager.add("autosave",tinymce.plugins.AutoSavePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.BBCodePlugin',{init:function(ed,url){var t=this,dialect=ed.getParam('bbcode_dialect','punbb').toLowerCase();ed.onBeforeSetContent.add(function(ed,o){o.content=t['_'+dialect+'_bbcode2html'](o.content);});ed.onPostProcess.add(function(ed,o){if(o.set)o.content=t['_'+dialect+'_bbcode2html'](o.content);if(o.get)o.content=t['_'+dialect+'_html2bbcode'](o.content);});},getInfo:function(){return{longname:'BBCode Plugin',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_punbb_html2bbcode:function(s){s=tinymce.trim(s);function rep(re,str){s=s.replace(re,str);};rep(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");rep(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");rep(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");rep(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");rep(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");rep(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");rep(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");rep(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");rep(/<font>(.*?)<\/font>/gi,"$1");rep(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");rep(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");rep(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");rep(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");rep(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");rep(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");rep(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");rep(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");rep(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");rep(/<\/(strong|b)>/gi,"[/b]");rep(/<(strong|b)>/gi,"[b]");rep(/<\/(em|i)>/gi,"[/i]");rep(/<(em|i)>/gi,"[i]");rep(/<\/u>/gi,"[/u]");rep(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");rep(/<u>/gi,"[u]");rep(/<blockquote[^>]*>/gi,"[quote]");rep(/<\/blockquote>/gi,"[/quote]");rep(/<br \/>/gi,"\n");rep(/<br\/>/gi,"\n");rep(/<br>/gi,"\n");rep(/<p>/gi,"");rep(/<\/p>/gi,"\n");rep(/&nbsp;/gi," ");rep(/&quot;/gi,"\"");rep(/&lt;/gi,"<");rep(/&gt;/gi,">");rep(/&amp;/gi,"&");return s;},_punbb_bbcode2html:function(s){s=tinymce.trim(s);function rep(re,str){s=s.replace(re,str);};rep(/\n/gi,"<br />");rep(/\[b\]/gi,"<strong>");rep(/\[\/b\]/gi,"</strong>");rep(/\[i\]/gi,"<em>");rep(/\[\/i\]/gi,"</em>");rep(/\[u\]/gi,"<u>");rep(/\[\/u\]/gi,"</u>");rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"<a href=\"$1\">$2</a>");rep(/\[url\](.*?)\[\/url\]/gi,"<a href=\"$1\">$1</a>");rep(/\[img\](.*?)\[\/img\]/gi,"<img src=\"$1\" />");rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"<font color=\"$1\">$2</font>");rep(/\[code\](.*?)\[\/code\]/gi,"<span class=\"codeStyle\">$1</span>&nbsp;");rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<span class=\"quoteStyle\">$1</span>&nbsp;");return s;}});tinymce.PluginManager.add('bbcode',tinymce.plugins.BBCodePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/<font>(.*?)<\/font>/gi,"$1");b(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");b(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");b(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");b(/<u>/gi,"[u]");b(/<blockquote[^>]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/<br \/>/gi,"\n");b(/<br\/>/gi,"\n");b(/<br>/gi,"\n");b(/<p>/gi,"");b(/<\/p>/gi,"\n");b(/&nbsp;/gi," ");b(/&quot;/gi,'"');b(/&lt;/gi,"<");b(/&gt;/gi,">");b(/&amp;/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"<br />");b(/\[b\]/gi,"<strong>");b(/\[\/b\]/gi,"</strong>");b(/\[i\]/gi,"<em>");b(/\[\/i\]/gi,"</em>");b(/\[u\]/gi,"<u>");b(/\[\/u\]/gi,"</u>");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>');b(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>');b(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>');b(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin.js
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -(function(){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each,is=tinymce.is;tinymce.create('tinymce.plugins.Compat2x',{getInfo:function(){return{longname:'Compat2x',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/compat2x',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};}});(function(){tinymce.extend(tinyMCE,{addToLang:function(p,l){each(l,function(v,k){tinyMCE.i18n[(tinyMCE.settings.language||'en')+'.'+(p?p+'_':'')+k]=v;});},getInstanceById:function(n){return this.get(n);}});})();(function(){var EditorManager=tinymce.EditorManager;tinyMCE.instances={};tinyMCE.plugins={};tinymce.PluginManager.onAdd.add(function(pm,n,p){tinyMCE.plugins[n]=p;});tinyMCE.majorVersion=tinymce.majorVersion;tinyMCE.minorVersion=tinymce.minorVersion;tinyMCE.releaseDate=tinymce.releaseDate;tinyMCE.baseURL=tinymce.baseURL;tinyMCE.isIE=tinyMCE.isMSIE=tinymce.isIE||tinymce.isOpera;tinyMCE.isMSIE5=tinymce.isIE;tinyMCE.isMSIE5_0=tinymce.isIE;tinyMCE.isMSIE7=tinymce.isIE;tinyMCE.isGecko=tinymce.isGecko;tinyMCE.isSafari=tinymce.isWebKit;tinyMCE.isOpera=tinymce.isOpera;tinyMCE.isMac=false;tinyMCE.isNS7=false;tinyMCE.isNS71=false;tinyMCE.compat=true;TinyMCE_Engine=tinyMCE;tinymce.extend(tinyMCE,{getParam:function(n,dv){return this.activeEditor.getParam(n,dv);},addEvent:function(e,na,f,sc){tinymce.dom.Event.add(e,na,f,sc||this);},getControlHTML:function(n){return EditorManager.activeEditor.controlManager.createControl(n);},loadCSS:function(u){tinymce.DOM.loadCSS(u);},importCSS:function(doc,u){if(doc==document)this.loadCSS(u);else new tinymce.dom.DOMUtils(doc).loadCSS(u);},log:function(){console.debug.apply(console,arguments);},getLang:function(n,dv){var v=EditorManager.activeEditor.getLang(n.replace(/^lang_/g,''),dv);if(/^[0-9\-.]+$/g.test(v))return parseInt(v);return v;},isInstance:function(o){return o!=null&&typeof(o)=="object"&&o.execCommand;},triggerNodeChange:function(){EditorManager.activeEditor.nodeChanged();},regexpReplace:function(in_str,reg_exp,replace_str,opts){var re;if(in_str==null)return in_str;if(typeof(opts)=="undefined")opts='g';re=new RegExp(reg_exp,opts);return in_str.replace(re,replace_str);},trim:function(s){return tinymce.trim(s);},xmlEncode:function(s){return tinymce.DOM.encode(s);},explode:function(s,d){var o=[];tinymce.each(s.split(d),function(v){if(v!='')o.push(v);});return o;},switchClass:function(id,cls){var b;if(/^mceButton/.test(cls)){b=EditorManager.activeEditor.controlManager.get(id);if(!b)return;switch(cls){case"mceButtonNormal":b.setDisabled(false);b.setActive(false);return;case"mceButtonDisabled":b.setDisabled(true);return;case"mceButtonSelected":b.setActive(true);b.setDisabled(false);return;}}},addCSSClass:function(e,n,b){return tinymce.DOM.addClass(e,n,b);},hasCSSClass:function(e,n){return tinymce.DOM.hasClass(e,n);},removeCSSClass:function(e,n){return tinymce.DOM.removeClass(e,n);},getCSSClasses:function(){var cl=EditorManager.activeEditor.dom.getClasses(),o=[];each(cl,function(c){o.push(c['class']);});return o;},setWindowArg:function(n,v){EditorManager.activeEditor.windowManager.params[n]=v;},getWindowArg:function(n,dv){var wm=EditorManager.activeEditor.windowManager,v;v=wm.getParam(n);if(v==='')return'';return v||wm.getFeature(n)||dv;},getParentNode:function(n,f){return this._getDOM().getParent(n,f);},selectElements:function(n,na,f){var i,a=[],nl,x;for(x=0,na=na.split(',');x<na.length;x++)for(i=0,nl=n.getElementsByTagName(na[x]);i<nl.length;i++)(!f||f(nl[i]))&&a.push(nl[i]);return a;},getNodeTree:function(n,na,t,nn){return this.selectNodes(n,function(n){return(!t||n.nodeType==t)&&(!nn||n.nodeName==nn);},na?na:[]);},getAttrib:function(e,n,dv){return this._getDOM().getAttrib(e,n,dv);},setAttrib:function(e,n,v){return this._getDOM().setAttrib(e,n,v);},getElementsByAttributeValue:function(n,e,a,v){var i,nl=n.getElementsByTagName(e),o=[];for(i=0;i<nl.length;i++){if(tinyMCE.getAttrib(nl[i],a).indexOf(v)!=-1)o[o.length]=nl[i];}return o;},selectNodes:function(n,f,a){var i;if(!a)a=[];if(f(n))a[a.length]=n;if(n.hasChildNodes()){for(i=0;i<n.childNodes.length;i++)tinyMCE.selectNodes(n.childNodes[i],f,a);}return a;},getContent:function(){return EditorManager.activeEditor.getContent();},getParentElement:function(n,na,f){if(na)na=new RegExp('^('+na.toUpperCase().replace(/,/g,'|')+')$','g');return this._getDOM().getParent(n,function(n){return n.nodeType==1&&(!na||na.test(n.nodeName))&&(!f||f(n));},this.activeEditor.getBody());},importPluginLanguagePack:function(n){tinymce.PluginManager.requireLangPack(n);},getButtonHTML:function(cn,lang,img,c,u,v){var ed=EditorManager.activeEditor;img=img.replace(/\{\$pluginurl\}/g,tinyMCE.pluginURL);img=img.replace(/\{\$themeurl\}/g,tinyMCE.themeURL);lang=lang.replace(/^lang_/g,'');return ed.controlManager.createButton(cn,{title:lang,command:c,ui:u,value:v,scope:this,'class':'compat',image:img});},addSelectAccessibility:function(e,s,w){if(!s._isAccessible){s.onkeydown=tinyMCE.accessibleEventHandler;s.onblur=tinyMCE.accessibleEventHandler;s._isAccessible=true;s._win=w;}return false;},accessibleEventHandler:function(e){var elm,win=this._win;e=tinymce.isIE?win.event:e;elm=tinymce.isIE?e.srcElement:e.target;if(e.type=="blur"){if(elm.oldonchange){elm.onchange=elm.oldonchange;elm.oldonchange=null;}return true;}if(elm.nodeName=="SELECT"&&!elm.oldonchange){elm.oldonchange=elm.onchange;elm.onchange=null;}if(e.keyCode==13||e.keyCode==32){elm.onchange=elm.oldonchange;elm.onchange();elm.oldonchange=null;tinyMCE.cancelEvent(e);return false;}return true;},cancelEvent:function(e){return tinymce.dom.Event.cancel(e);},handleVisualAid:function(e){EditorManager.activeEditor.addVisual(e);},getAbsPosition:function(n,r){return tinymce.DOM.getPos(n,r);},cleanupEventStr:function(s){s=""+s;s=s.replace('function anonymous()\n{\n','');s=s.replace('\n}','');s=s.replace(/^return true;/gi,'');return s;},getVisualAidClass:function(s){return s;},parseStyle:function(s){return this._getDOM().parseStyle(s);},serializeStyle:function(s){return this._getDOM().serializeStyle(s);},openWindow:function(tpl,args){var ed=EditorManager.activeEditor,o={},n;for(n in tpl)o[n]=tpl[n];tpl=o;args=args||{};tpl.url=new tinymce.util.URI(tinymce.ThemeManager.themeURLs[ed.settings.theme]).toAbsolute(tpl.file);tpl.inline=tpl.inline||args.inline;ed.windowManager.open(tpl,args);},closeWindow:function(win){EditorManager.activeEditor.windowManager.close(win);},getOuterHTML:function(e){return tinymce.DOM.getOuterHTML(e);},setOuterHTML:function(e,h,d){return tinymce.DOM.setOuterHTML(e,h,d);},hasPlugin:function(n){return tinymce.PluginManager.get(n)!=null;},_setEventsEnabled:function(){},addPlugin:function(pn,f){var t=this;function PluginWrapper(ed){tinyMCE.selectedInstance=ed;ed.onInit.add(function(){t.settings=ed.settings;t.settings['base_href']=tinyMCE.documentBasePath;tinyMCE.settings=t.settings;tinyMCE.documentBasePath=ed.documentBasePath;if(f.initInstance)f.initInstance(ed);ed.contentDocument=ed.getDoc();ed.contentWindow=ed.getWin();ed.undoRedo=ed.undoManager;ed.startContent=ed.getContent({format:'raw'});tinyMCE.instances[ed.id]=ed;tinyMCE.loadedFiles=[];});ed.onActivate.add(function(){tinyMCE.settings=ed.settings;tinyMCE.selectedInstance=ed;});if(f.handleNodeChange){ed.onNodeChange.add(function(ed,cm,n){f.handleNodeChange(ed.id,n,0,0,false,!ed.selection.isCollapsed());});}if(f.onChange){ed.onChange.add(function(ed,n){return f.onChange(ed);});}if(f.cleanup){ed.onGetContent.add(function(){});}this.getInfo=function(){return f.getInfo();};this.createControl=function(n){tinyMCE.pluginURL=tinymce.baseURL+'/plugins/'+pn;tinyMCE.themeURL=tinymce.baseURL+'/themes/'+tinyMCE.activeEditor.settings.theme;if(f.getControlHTML)return f.getControlHTML(n);return null;};this.execCommand=function(cmd,ui,val){if(f.execCommand)return f.execCommand(ed.id,ed.getBody(),cmd,ui,val);return false;};};tinymce.PluginManager.add(pn,PluginWrapper);},_getDOM:function(){return tinyMCE.activeEditor?tinyMCE.activeEditor.dom:tinymce.DOM;},convertRelativeToAbsoluteURL:function(b,u){return new tinymce.util.URI(b).toAbsolute(u);},convertAbsoluteURLToRelativeURL:function(b,u){return new tinymce.util.URI(b).toRelative(u);}});tinymce.extend(tinymce.Editor.prototype,{getFocusElement:function(){return this.selection.getNode();},getData:function(n){if(!this.data)this.data=[];if(!this.data[n])this.data[n]=[];return this.data[n];},hasPlugin:function(n){return this.plugins[n]!=null;},getContainerWin:function(){return window;},getHTML:function(raw){return this.getContent({format:raw?'raw':'html'});},setHTML:function(h){this.setContent(h);},getSel:function(){return this.selection.getSel();},getRng:function(){return this.selection.getRng();},isHidden:function(){var s;if(!tinymce.isGecko)return false;s=this.getSel();return(!s||!s.rangeCount||s.rangeCount==0);},translate:function(s){var c=this.settings.language,o;if(!s)return s;o=tinymce.EditorManager.i18n[c+'.'+s]||s.replace(/{\#([^}]+)\}/g,function(a,b){return tinymce.EditorManager.i18n[c+'.'+b]||'{#'+b+'}';});o=o.replace(/{\$lang_([^}]+)\}/g,function(a,b){return tinymce.EditorManager.i18n[c+'.'+b]||'{$lang_'+b+'}';});return o;},repaint:function(){this.execCommand('mceRepaint');}});tinymce.extend(tinymce.dom.Selection.prototype,{getSelectedText:function(){return this.getContent({format:'text'});},getSelectedHTML:function(){return this.getContent({format:'html'});},getFocusElement:function(){return this.getNode();},selectNode:function(node,collapse,select_text_node,to_start){var t=this;t.select(node,select_text_node||0);if(!is(collapse))collapse=true;if(collapse){if(!is(to_start))to_start=true;t.collapse(to_start);}}});}).call(this);tinymce.PluginManager.add('compat2x',tinymce.plugins.Compat2x);})();  
2 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/compat2x/editor_plugin_src.js
@@ -1,616 +0,0 @@ @@ -1,616 +0,0 @@
1 -/**  
2 - * $Id: editor_plugin_src.js 264 2007-04-26 20:53:09Z spocke $  
3 - *  
4 - * @author Moxiecode  
5 - * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.  
6 - */  
7 -  
8 -(function() {  
9 - var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is;  
10 -  
11 - tinymce.create('tinymce.plugins.Compat2x', {  
12 - getInfo : function() {  
13 - return {  
14 - longname : 'Compat2x',  
15 - author : 'Moxiecode Systems AB',  
16 - authorurl : 'http://tinymce.moxiecode.com',  
17 - infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/compat2x',  
18 - version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion  
19 - };  
20 - }  
21 - });  
22 -  
23 - (function() {  
24 - // Extend tinyMCE/EditorManager  
25 - tinymce.extend(tinyMCE, {  
26 - addToLang : function(p, l) {  
27 - each(l, function(v, k) {  
28 - tinyMCE.i18n[(tinyMCE.settings.language || 'en') + '.' + (p ? p + '_' : '') + k] = v;  
29 - });  
30 - },  
31 -  
32 - getInstanceById : function(n) {  
33 - return this.get(n);  
34 - }  
35 - });  
36 - })();  
37 -  
38 - (function() {  
39 - var EditorManager = tinymce.EditorManager;  
40 -  
41 - tinyMCE.instances = {};  
42 - tinyMCE.plugins = {};  
43 - tinymce.PluginManager.onAdd.add(function(pm, n, p) {  
44 - tinyMCE.plugins[n] = p;  
45 - });  
46 -  
47 - tinyMCE.majorVersion = tinymce.majorVersion;  
48 - tinyMCE.minorVersion = tinymce.minorVersion;  
49 - tinyMCE.releaseDate = tinymce.releaseDate;  
50 - tinyMCE.baseURL = tinymce.baseURL;  
51 - tinyMCE.isIE = tinyMCE.isMSIE = tinymce.isIE || tinymce.isOpera;  
52 - tinyMCE.isMSIE5 = tinymce.isIE;  
53 - tinyMCE.isMSIE5_0 = tinymce.isIE;  
54 - tinyMCE.isMSIE7 = tinymce.isIE;  
55 - tinyMCE.isGecko = tinymce.isGecko;  
56 - tinyMCE.isSafari = tinymce.isWebKit;  
57 - tinyMCE.isOpera = tinymce.isOpera;  
58 - tinyMCE.isMac = false;  
59 - tinyMCE.isNS7 = false;  
60 - tinyMCE.isNS71 = false;  
61 - tinyMCE.compat = true;  
62 -  
63 - // Extend tinyMCE class  
64 - TinyMCE_Engine = tinyMCE;  
65 - tinymce.extend(tinyMCE, {  
66 - getParam : function(n, dv) {  
67 - return this.activeEditor.getParam(n, dv);  
68 - },  
69 -  
70 - addEvent : function(e, na, f, sc) {  
71 - tinymce.dom.Event.add(e, na, f, sc || this);  
72 - },  
73 -  
74 - getControlHTML : function(n) {  
75 - return EditorManager.activeEditor.controlManager.createControl(n);  
76 - },  
77 -  
78 - loadCSS : function(u) {  
79 - tinymce.DOM.loadCSS(u);  
80 - },  
81 -  
82 - importCSS : function(doc, u) {  
83 - if (doc == document)  
84 - this.loadCSS(u);  
85 - else  
86 - new tinymce.dom.DOMUtils(doc).loadCSS(u);  
87 - },  
88 -  
89 - log : function() {  
90 - console.debug.apply(console, arguments);  
91 - },  
92 -  
93 - getLang : function(n, dv) {  
94 - var v = EditorManager.activeEditor.getLang(n.replace(/^lang_/g, ''), dv);  
95 -  
96 - // Is number  
97 - if (/^[0-9\-.]+$/g.test(v))  
98 - return parseInt(v);  
99 -  
100 - return v;  
101 - },  
102 -  
103 - isInstance : function(o) {  
104 - return o != null && typeof(o) == "object" && o.execCommand;  
105 - },  
106 -  
107 - triggerNodeChange : function() {  
108 - EditorManager.activeEditor.nodeChanged();  
109 - },  
110 -  
111 - regexpReplace : function(in_str, reg_exp, replace_str, opts) {  
112 - var re;  
113 -  
114 - if (in_str == null)  
115 - return in_str;  
116 -  
117 - if (typeof(opts) == "undefined")  
118 - opts = 'g';  
119 -  
120 - re = new RegExp(reg_exp, opts);  
121 -  
122 - return in_str.replace(re, replace_str);  
123 - },  
124 -  
125 - trim : function(s) {  
126 - return tinymce.trim(s);  
127 - },  
128 -  
129 - xmlEncode : function(s) {  
130 - return tinymce.DOM.encode(s);  
131 - },  
132 -  
133 - explode : function(s, d) {  
134 - var o = [];  
135 -  
136 - tinymce.each(s.split(d), function(v) {  
137 - if (v != '')  
138 - o.push(v);  
139 - });  
140 -  
141 - return o;  
142 - },  
143 -  
144 - switchClass : function(id, cls) {  
145 - var b;  
146 -  
147 - if (/^mceButton/.test(cls)) {  
148 - b = EditorManager.activeEditor.controlManager.get(id);  
149 -  
150 - if (!b)  
151 - return;  
152 -  
153 - switch (cls) {  
154 - case "mceButtonNormal":  
155 - b.setDisabled(false);  
156 - b.setActive(false);  
157 - return;  
158 -  
159 - case "mceButtonDisabled":  
160 - b.setDisabled(true);  
161 - return;  
162 -  
163 - case "mceButtonSelected":  
164 - b.setActive(true);  
165 - b.setDisabled(false);  
166 - return;  
167 - }  
168 - }  
169 - },  
170 -  
171 - addCSSClass : function(e, n, b) {  
172 - return tinymce.DOM.addClass(e, n, b);  
173 - },  
174 -  
175 - hasCSSClass : function(e, n) {  
176 - return tinymce.DOM.hasClass(e, n);  
177 - },  
178 -  
179 - removeCSSClass : function(e, n) {  
180 - return tinymce.DOM.removeClass(e, n);  
181 - },  
182 -  
183 - getCSSClasses : function() {  
184 - var cl = EditorManager.activeEditor.dom.getClasses(), o = [];  
185 -  
186 - each(cl, function(c) {  
187 - o.push(c['class']);  
188 - });  
189 -  
190 - return o;  
191 - },  
192 -  
193 - setWindowArg : function(n, v) {  
194 - EditorManager.activeEditor.windowManager.params[n] = v;  
195 - },  
196 -  
197 - getWindowArg : function(n, dv) {  
198 - var wm = EditorManager.activeEditor.windowManager, v;  
199 -  
200 - v = wm.getParam(n);  
201 - if (v === '')  
202 - return '';  
203 -  
204 - return v || wm.getFeature(n) || dv;  
205 - },  
206 -  
207 - getParentNode : function(n, f) {  
208 - return this._getDOM().getParent(n, f);  
209 - },  
210 -  
211 - selectElements : function(n, na, f) {  
212 - var i, a = [], nl, x;  
213 -  
214 - for (x=0, na = na.split(','); x<na.length; x++)  
215 - for (i=0, nl = n.getElementsByTagName(na[x]); i<nl.length; i++)  
216 - (!f || f(nl[i])) && a.push(nl[i]);  
217 -  
218 - return a;  
219 - },  
220 -  
221 - getNodeTree : function(n, na, t, nn) {  
222 - return this.selectNodes(n, function(n) {  
223 - return (!t || n.nodeType == t) && (!nn || n.nodeName == nn);  
224 - }, na ? na : []);  
225 - },  
226 -  
227 - getAttrib : function(e, n, dv) {  
228 - return this._getDOM().getAttrib(e, n, dv);  
229 - },  
230 -  
231 - setAttrib : function(e, n, v) {  
232 - return this._getDOM().setAttrib(e, n, v);  
233 - },  
234 -  
235 - getElementsByAttributeValue : function(n, e, a, v) {  
236 - var i, nl = n.getElementsByTagName(e), o = [];  
237 -  
238 - for (i=0; i<nl.length; i++) {  
239 - if (tinyMCE.getAttrib(nl[i], a).indexOf(v) != -1)  
240 - o[o.length] = nl[i];  
241 - }  
242 -  
243 - return o;  
244 - },  
245 -  
246 - selectNodes : function(n, f, a) {  
247 - var i;  
248 -  
249 - if (!a)  
250 - a = [];  
251 -  
252 - if (f(n))  
253 - a[a.length] = n;  
254 -  
255 - if (n.hasChildNodes()) {  
256 - for (i=0; i<n.childNodes.length; i++)  
257 - tinyMCE.selectNodes(n.childNodes[i], f, a);  
258 - }  
259 -  
260 - return a;  
261 - },  
262 -  
263 - getContent : function() {  
264 - return EditorManager.activeEditor.getContent();  
265 - },  
266 -  
267 - getParentElement : function(n, na, f) {  
268 - if (na)  
269 - na = new RegExp('^(' + na.toUpperCase().replace(/,/g, '|') + ')$', 'g');  
270 -  
271 - return this._getDOM().getParent(n, function(n) {  
272 - return n.nodeType == 1 && (!na || na.test(n.nodeName)) && (!f || f(n));  
273 - }, this.activeEditor.getBody());  
274 - },  
275 -  
276 - importPluginLanguagePack : function(n) {  
277 - tinymce.PluginManager.requireLangPack(n);  
278 - },  
279 -  
280 - getButtonHTML : function(cn, lang, img, c, u, v) {  
281 - var ed = EditorManager.activeEditor;  
282 -  
283 - img = img.replace(/\{\$pluginurl\}/g, tinyMCE.pluginURL);  
284 - img = img.replace(/\{\$themeurl\}/g, tinyMCE.themeURL);  
285 - lang = lang.replace(/^lang_/g, '');  
286 -  
287 - return ed.controlManager.createButton(cn, {  
288 - title : lang,  
289 - command : c,  
290 - ui : u,  
291 - value : v,  
292 - scope : this,  
293 - 'class' : 'compat',  
294 - image : img  
295 - });  
296 - },  
297 -  
298 - addSelectAccessibility : function(e, s, w) {  
299 - // Add event handlers  
300 - if (!s._isAccessible) {  
301 - s.onkeydown = tinyMCE.accessibleEventHandler;  
302 - s.onblur = tinyMCE.accessibleEventHandler;  
303 - s._isAccessible = true;  
304 - s._win = w;  
305 - }  
306 -  
307 - return false;  
308 - },  
309 -  
310 - accessibleEventHandler : function(e) {  
311 - var elm, win = this._win;  
312 -  
313 - e = tinymce.isIE ? win.event : e;  
314 - elm = tinymce.isIE ? e.srcElement : e.target;  
315 -  
316 - // Unpiggyback onchange on blur  
317 - if (e.type == "blur") {  
318 - if (elm.oldonchange) {  
319 - elm.onchange = elm.oldonchange;  
320 - elm.oldonchange = null;  
321 - }  
322 -  
323 - return true;  
324 - }  
325 -  
326 - // Piggyback onchange  
327 - if (elm.nodeName == "SELECT" && !elm.oldonchange) {  
328 - elm.oldonchange = elm.onchange;  
329 - elm.onchange = null;  
330 - }  
331 -  
332 - // Execute onchange and remove piggyback  
333 - if (e.keyCode == 13 || e.keyCode == 32) {  
334 - elm.onchange = elm.oldonchange;  
335 - elm.onchange();  
336 - elm.oldonchange = null;  
337 -  
338 - tinyMCE.cancelEvent(e);  
339 - return false;  
340 - }  
341 -  
342 - return true;  
343 - },  
344 -  
345 - cancelEvent : function(e) {  
346 - return tinymce.dom.Event.cancel(e);  
347 - },  
348 -  
349 - handleVisualAid : function(e) {  
350 - EditorManager.activeEditor.addVisual(e);  
351 - },  
352 -  
353 - getAbsPosition : function(n, r) {  
354 - return tinymce.DOM.getPos(n, r);  
355 - },  
356 -  
357 - cleanupEventStr : function(s) {  
358 - s = "" + s;  
359 - s = s.replace('function anonymous()\n{\n', '');  
360 - s = s.replace('\n}', '');  
361 - s = s.replace(/^return true;/gi, ''); // Remove event blocker  
362 -  
363 - return s;  
364 - },  
365 -  
366 - getVisualAidClass : function(s) {  
367 - // TODO: Implement  
368 - return s;  
369 - },  
370 -  
371 - parseStyle : function(s) {  
372 - return this._getDOM().parseStyle(s);  
373 - },  
374 -  
375 - serializeStyle : function(s) {  
376 - return this._getDOM().serializeStyle(s);  
377 - },  
378 -  
379 - openWindow : function(tpl, args) {  
380 - var ed = EditorManager.activeEditor, o = {}, n;  
381 -  
382 - // Convert name/value array to object  
383 - for (n in tpl)  
384 - o[n] = tpl[n];  
385 -  
386 - tpl = o;  
387 -  
388 - args = args || {};  
389 - tpl.url = new tinymce.util.URI(tinymce.ThemeManager.themeURLs[ed.settings.theme]).toAbsolute(tpl.file);  
390 - tpl.inline = tpl.inline || args.inline;  
391 -  
392 - ed.windowManager.open(tpl, args);  
393 - },  
394 -  
395 - closeWindow : function(win) {  
396 - EditorManager.activeEditor.windowManager.close(win);  
397 - },  
398 -  
399 - getOuterHTML : function(e) {  
400 - return tinymce.DOM.getOuterHTML(e);  
401 - },  
402 -  
403 - setOuterHTML : function(e, h, d) {  
404 - return tinymce.DOM.setOuterHTML(e, h, d);  
405 - },  
406 -  
407 - hasPlugin : function(n) {  
408 - return tinymce.PluginManager.get(n) != null;  
409 - },  
410 -  
411 - _setEventsEnabled : function() {  
412 - // Ignore it!!  
413 - },  
414 -  
415 - addPlugin : function(pn, f) {  
416 - var t = this;  
417 -  
418 - function PluginWrapper(ed) {  
419 - tinyMCE.selectedInstance = ed;  
420 -  
421 - ed.onInit.add(function() {  
422 - t.settings = ed.settings;  
423 - t.settings['base_href'] = tinyMCE.documentBasePath;  
424 - tinyMCE.settings = t.settings;  
425 - tinyMCE.documentBasePath = ed.documentBasePath;  
426 - //ed.formElement = DOM.get(ed.id);  
427 -  
428 - if (f.initInstance)  
429 - f.initInstance(ed);  
430 -  
431 - ed.contentDocument = ed.getDoc();  
432 - ed.contentWindow = ed.getWin();  
433 - ed.undoRedo = ed.undoManager;  
434 - ed.startContent = ed.getContent({format : 'raw'});  
435 -  
436 - tinyMCE.instances[ed.id] = ed;  
437 - tinyMCE.loadedFiles = [];  
438 - });  
439 -  
440 - ed.onActivate.add(function() {  
441 - tinyMCE.settings = ed.settings;  
442 - tinyMCE.selectedInstance = ed;  
443 - });  
444 -  
445 - /* if (f.removeInstance) {  
446 - ed.onDestroy.add(function() {  
447 - return f.removeInstance(ed.id);  
448 - });  
449 - }*/  
450 -  
451 - if (f.handleNodeChange) {  
452 - ed.onNodeChange.add(function(ed, cm, n) {  
453 - f.handleNodeChange(ed.id, n, 0, 0, false, !ed.selection.isCollapsed());  
454 - });  
455 - }  
456 -  
457 - if (f.onChange) {  
458 - ed.onChange.add(function(ed, n) {  
459 - return f.onChange(ed);  
460 - });  
461 - }  
462 -  
463 - if (f.cleanup) {  
464 - ed.onGetContent.add(function() {  
465 - //f.cleanup(type, content, inst);  
466 - });  
467 - }  
468 -  
469 - this.getInfo = function() {  
470 - return f.getInfo();  
471 - };  
472 -  
473 - this.createControl = function(n) {  
474 - tinyMCE.pluginURL = tinymce.baseURL + '/plugins/' + pn;  
475 - tinyMCE.themeURL = tinymce.baseURL + '/themes/' + tinyMCE.activeEditor.settings.theme;  
476 -  
477 - if (f.getControlHTML)  
478 - return f.getControlHTML(n);  
479 -  
480 - return null;  
481 - };  
482 -  
483 - this.execCommand = function(cmd, ui, val) {  
484 - if (f.execCommand)  
485 - return f.execCommand(ed.id, ed.getBody(), cmd, ui, val);  
486 -  
487 - return false;  
488 - };  
489 - };  
490 -  
491 - tinymce.PluginManager.add(pn, PluginWrapper);  
492 - },  
493 -  
494 - _getDOM : function() {  
495 - return tinyMCE.activeEditor ? tinyMCE.activeEditor.dom : tinymce.DOM;  
496 - },  
497 -  
498 - convertRelativeToAbsoluteURL : function(b, u) {  
499 - return new tinymce.util.URI(b).toAbsolute(u);  
500 - },  
501 -  
502 - convertAbsoluteURLToRelativeURL : function(b, u) {  
503 - return new tinymce.util.URI(b).toRelative(u);  
504 - }  
505 - });  
506 -  
507 - // Extend Editor class  
508 - tinymce.extend(tinymce.Editor.prototype, {  
509 - getFocusElement : function() {  
510 - return this.selection.getNode();  
511 - },  
512 -  
513 - getData : function(n) {  
514 - if (!this.data)  
515 - this.data = [];  
516 -  
517 - if (!this.data[n])  
518 - this.data[n] = [];  
519 -  
520 - return this.data[n];  
521 - },  
522 -  
523 - hasPlugin : function(n) {  
524 - return this.plugins[n] != null;  
525 - },  
526 -  
527 - getContainerWin : function() {  
528 - return window;  
529 - },  
530 -  
531 - getHTML : function(raw) {  
532 - return this.getContent({ format : raw ? 'raw' : 'html'});  
533 - },  
534 -  
535 - setHTML : function(h) {  
536 - this.setContent(h);  
537 - },  
538 -  
539 - getSel : function() {  
540 - return this.selection.getSel();  
541 - },  
542 -  
543 - getRng : function() {  
544 - return this.selection.getRng();  
545 - },  
546 -  
547 - isHidden : function() {  
548 - var s;  
549 -  
550 - if (!tinymce.isGecko)  
551 - return false;  
552 -  
553 - s = this.getSel();  
554 -  
555 - // Weird, wheres that cursor selection?  
556 - return (!s || !s.rangeCount || s.rangeCount == 0);  
557 - },  
558 -  
559 - translate : function(s) {  
560 - var c = this.settings.language, o;  
561 -  
562 - if (!s)  
563 - return s;  
564 -  
565 - o = tinymce.EditorManager.i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) {  
566 - return tinymce.EditorManager.i18n[c + '.' + b] || '{#' + b + '}';  
567 - });  
568 -  
569 - o = o.replace(/{\$lang_([^}]+)\}/g, function(a, b) {  
570 - return tinymce.EditorManager.i18n[c + '.' + b] || '{$lang_' + b + '}';  
571 - });  
572 -  
573 - return o;  
574 - },  
575 -  
576 - repaint : function() {  
577 - this.execCommand('mceRepaint');  
578 - }  
579 - });  
580 -  
581 - // Extend selection  
582 - tinymce.extend(tinymce.dom.Selection.prototype, {  
583 - getSelectedText : function() {  
584 - return this.getContent({format : 'text'});  
585 - },  
586 -  
587 - getSelectedHTML : function() {  
588 - return this.getContent({format : 'html'});  
589 - },  
590 -  
591 - getFocusElement : function() {  
592 - return this.getNode();  
593 - },  
594 -  
595 - selectNode : function(node, collapse, select_text_node, to_start) {  
596 - var t = this;  
597 -  
598 - t.select(node, select_text_node || 0);  
599 -  
600 - if (!is(collapse))  
601 - collapse = true;  
602 -  
603 - if (collapse) {  
604 - if (!is(to_start))  
605 - to_start = true;  
606 -  
607 - t.collapse(to_start);  
608 - }  
609 - }  
610 - });  
611 - }).call(this);  
612 -  
613 - // Register plugin  
614 - tinymce.PluginManager.add('compat2x', tinymce.plugins.Compat2x);  
615 -})();  
616 -  
public/javascripts/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
1 -(function(){var Event=tinymce.dom.Event,each=tinymce.each,DOM=tinymce.DOM;tinymce.create('tinymce.plugins.ContextMenu',{init:function(ed){var t=this;t.editor=ed;t.onContextMenu=new tinymce.util.Dispatcher(this);ed.onContextMenu.add(function(ed,e){if(!e.ctrlKey){t._getMenu(ed).showMenu(e.clientX,e.clientY);Event.add(ed.getDoc(),'click',hide);Event.cancel(e);}});function hide(){if(t._menu){t._menu.removeAll();t._menu.destroy();Event.remove(ed.getDoc(),'click',hide);}};ed.onMouseDown.add(hide);ed.onKeyDown.add(hide);},getInfo:function(){return{longname:'Contextmenu',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_getMenu:function(ed){var t=this,m=t._menu,se=ed.selection,col=se.isCollapsed(),el=se.getNode()||ed.getBody(),am,p1,p2;if(m){m.removeAll();m.destroy();}p1=DOM.getPos(ed.getContentAreaContainer());p2=DOM.getPos(ed.getContainer());m=ed.controlManager.createDropMenu('contextmenu',{offset_x:p1.x+ed.getParam('contextmenu_offset_x',0),offset_y:p1.y+ed.getParam('contextmenu_offset_y',0),constrain:1});t._menu=m;m.add({title:'advanced.cut_desc',icon:'cut',cmd:'Cut'}).setDisabled(col);m.add({title:'advanced.copy_desc',icon:'copy',cmd:'Copy'}).setDisabled(col);m.add({title:'advanced.paste_desc',icon:'paste',cmd:'Paste'});if((el.nodeName=='A'&&!ed.dom.getAttrib(el,'name'))||!col){m.addSeparator();m.add({title:'advanced.link_desc',icon:'link',cmd:ed.plugins.advlink?'mceAdvLink':'mceLink',ui:true});m.add({title:'advanced.unlink_desc',icon:'unlink',cmd:'UnLink'});}m.addSeparator();m.add({title:'advanced.image_desc',icon:'image',cmd:ed.plugins.advimage?'mceAdvImage':'mceImage',ui:true});m.addSeparator();am=m.addMenu({title:'contextmenu.align'});am.add({title:'contextmenu.left',icon:'justifyleft',cmd:'JustifyLeft'});am.add({title:'contextmenu.center',icon:'justifycenter',cmd:'JustifyCenter'});am.add({title:'contextmenu.right',icon:'justifyright',cmd:'JustifyRight'});am.add({title:'contextmenu.full',icon:'justifyfull',cmd:'JustifyFull'});t.onContextMenu.dispatch(t,m,el,col);return m;}});tinymce.PluginManager.add('contextmenu',tinymce.plugins.ContextMenu);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(g,h){if(!h.ctrlKey){f._getMenu(g).showMenu(h.clientX,h.clientY);a.add(g.getDoc(),"click",e);a.cancel(h)}});function e(){if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(d.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.Directionality',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceDirectionLTR',function(){var e=ed.dom.getParent(ed.selection.getNode(),ed.dom.isBlock);if(e){if(ed.dom.getAttrib(e,"dir")!="ltr")ed.dom.setAttrib(e,"dir","ltr");else ed.dom.setAttrib(e,"dir","");}ed.nodeChanged();});ed.addCommand('mceDirectionRTL',function(){var e=ed.dom.getParent(ed.selection.getNode(),ed.dom.isBlock);if(e){if(ed.dom.getAttrib(e,"dir")!="rtl")ed.dom.setAttrib(e,"dir","rtl");else ed.dom.setAttrib(e,"dir","");}ed.nodeChanged();});ed.addButton('ltr',{title:'directionality.ltr_desc',cmd:'mceDirectionLTR'});ed.addButton('rtl',{title:'directionality.rtl_desc',cmd:'mceDirectionRTL'});ed.onNodeChange.add(t._nodeChange,t);},getInfo:function(){return{longname:'Directionality',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_nodeChange:function(ed,cm,n){var dom=ed.dom,dir;n=dom.getParent(n,dom.isBlock);if(!n){cm.setDisabled('ltr',1);cm.setDisabled('rtl',1);return;}dir=dom.getAttrib(n,'dir');cm.setActive('ltr',dir=="ltr");cm.setDisabled('ltr',0);cm.setActive('rtl',dir=="rtl");cm.setDisabled('rtl',0);}});tinymce.PluginManager.add('directionality',tinymce.plugins.Directionality);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.EmotionsPlugin',{init:function(ed,url){ed.addCommand('mceEmotion',function(){ed.windowManager.open({file:url+'/emotions.htm',width:250+parseInt(ed.getLang('emotions.delta_width',0)),height:160+parseInt(ed.getLang('emotions.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('emotions',{title:'emotions.emotions_desc',cmd:'mceEmotion'});},getInfo:function(){return{longname:'Emotions',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('emotions',tinymce.plugins.EmotionsPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.EmotionsPlugin",{init:function(a,b){a.addCommand("mceEmotion",function(){a.windowManager.open({file:b+"/emotions.htm",width:250+parseInt(a.getLang("emotions.delta_width",0)),height:160+parseInt(a.getLang("emotions.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("emotions",tinymce.plugins.EmotionsPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
1 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <title>{#emotions_dlg.title}</title> 4 <title>{#emotions_dlg.title}</title>
5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script> 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6 <script type="text/javascript" src="js/emotions.js"></script> 6 <script type="text/javascript" src="js/emotions.js"></script>
7 - <base target="_self" />  
8 </head> 7 </head>
9 <body style="display: none"> 8 <body style="display: none">
10 <div align="center"> 9 <div align="center">
public/javascripts/tinymce/jscripts/tiny_mce/plugins/emotions/langs/fr_dlg.js
@@ -3,7 +3,7 @@ title:&quot;Ins\u00E9rer \u00E9motion&quot;, @@ -3,7 +3,7 @@ title:&quot;Ins\u00E9rer \u00E9motion&quot;,
3 desc:"\u00C9motions", 3 desc:"\u00C9motions",
4 cool:"Cool", 4 cool:"Cool",
5 cry:"En pleurs", 5 cry:"En pleurs",
6 -embarassed:"Embarass\u00E9", 6 +embarassed:"Embarrass\u00E9",
7 foot_in_mouth:"Pied de nez", 7 foot_in_mouth:"Pied de nez",
8 frown:"D\u00E9\u00E7u", 8 frown:"D\u00E9\u00E7u",
9 innocent:"Innocent", 9 innocent:"Innocent",
@@ -15,6 +15,6 @@ smile:&quot;Sourire&quot;, @@ -15,6 +15,6 @@ smile:&quot;Sourire&quot;,
15 surprised:"Surpris", 15 surprised:"Surpris",
16 tongue_out:"Langue tir\u00E9e", 16 tongue_out:"Langue tir\u00E9e",
17 undecided:"Non d\u00E9cid\u00E9", 17 undecided:"Non d\u00E9cid\u00E9",
18 -wink:"Clin d'oeil", 18 +wink:"Clin d'\u0153il",
19 yell:"Criant" 19 yell:"Criant"
20 }); 20 });
21 \ No newline at end of file 21 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/emotions/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
  1 +tinyMCE.addI18n('ja.emotions_dlg',{
  2 +title:"\u8868\u60C5\u30A2\u30A4\u30B3\u30F3\u306E\u633F\u5165",
  3 +desc:"\u8868\u60C5\u30A2\u30A4\u30B3\u30F3",
  4 +cool:"Cool",
  5 +cry:"Cry",
  6 +embarassed:"Embarassed",
  7 +foot_in_mouth:"Foot in mouth",
  8 +frown:"Frown",
  9 +innocent:"Innocent",
  10 +kiss:"Kiss",
  11 +laughing:"Laughing",
  12 +money_mouth:"Money mouth",
  13 +sealed:"Sealed",
  14 +smile:"Smile",
  15 +surprised:"Surprised",
  16 +tongue_out:"Tongue out",
  17 +undecided:"Undecided",
  18 +wink:"Wink",
  19 +yell:"Yell"
  20 +});
0 \ No newline at end of file 21 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/emotions/langs/nl_dlg.js
@@ -5,7 +5,7 @@ cool:&quot;Stoer&quot;, @@ -5,7 +5,7 @@ cool:&quot;Stoer&quot;,
5 cry:"Huilen", 5 cry:"Huilen",
6 embarassed:"Schamen", 6 embarassed:"Schamen",
7 foot_in_mouth:"Verstomd", 7 foot_in_mouth:"Verstomd",
8 -frown:"Wenkbrouw ophalen", 8 +frown:"Wenkbrauw ophalen",
9 innocent:"Onschuldig", 9 innocent:"Onschuldig",
10 kiss:"Zoenen", 10 kiss:"Zoenen",
11 laughing:"Lachen", 11 laughing:"Lachen",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js
1 -(function(){tinymce.PluginManager.requireLangPack('example');tinymce.create('tinymce.plugins.ExamplePlugin',{init:function(ed,url){ed.addCommand('mceExample',function(){ed.windowManager.open({file:url+'/dialog.htm',width:320+parseInt(ed.getLang('example.delta_width',0)),height:120+parseInt(ed.getLang('example.delta_height',0)),inline:1},{plugin_url:url,some_custom_arg:'custom arg'});});ed.addButton('example',{title:'example.desc',cmd:'mceExample',image:url+'/img/example.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('example',n.nodeName=='IMG');});},createControl:function(n,cm){return null;},getInfo:function(){return{longname:'Example plugin',author:'Some author',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',version:"1.0"};}});tinymce.PluginManager.add('example',tinymce.plugins.ExamplePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.FullPagePlugin',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceFullPageProperties',function(){ed.windowManager.open({file:url+'/fullpage.htm',width:430+parseInt(ed.getLang('fullpage.delta_width',0)),height:495+parseInt(ed.getLang('fullpage.delta_height',0)),inline:1},{plugin_url:url,head_html:t.head});});ed.addButton('fullpage',{title:'fullpage.desc',cmd:'mceFullPageProperties'});ed.onBeforeSetContent.add(t._setContent,t);ed.onSetContent.add(t._setBodyAttribs,t);ed.onGetContent.add(t._getContent,t);},getInfo:function(){return{longname:'Fullpage',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_setBodyAttribs:function(ed,o){var bdattr,i,len,kv,k,v,t,attr=this.head.match(/body(.*?)>/i);if(attr&&attr[1]){bdattr=attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(bdattr){for(i=0,len=bdattr.length;i<len;i++){kv=bdattr[i].split('=');k=kv[0].replace(/\s/,'');v=kv[1];if(v){v=v.replace(/^\s+/,'').replace(/\s+$/,'');t=v.match(/^["'](.*)["']$/);if(t)v=t[1];}else v=k;ed.dom.setAttrib(ed.getBody(),'style',v);}}}},_createSerializer:function(){return new tinymce.dom.Serializer({dom:this.editor.dom,apply_source_formatting:true});},_setContent:function(ed,o){var t=this,sp,ep,c=o.content,v,st='';c=c.replace(/<(\/?)BODY/gi,'<$1body');sp=c.indexOf('<body');if(sp!=-1){sp=c.indexOf('>',sp);t.head=c.substring(0,sp+1);ep=c.indexOf('</body',sp);if(ep==-1)ep=c.indexOf('</body',ep);o.content=c.substring(sp+1,ep);t.foot=c.substring(ep);function low(s){return s.replace(/<\/?[A-Z]+/g,function(a){return a.toLowerCase();})};t.head=low(t.head);t.foot=low(t.foot);}else{t.head='';if(ed.getParam('fullpage_default_xml_pi'))t.head+='<?xml version="1.0" encoding="'+ed.getParam('fullpage_default_encoding','ISO-8859-1')+'" ?>\n';t.head+=ed.getParam('fullpage_default_doctype','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');t.head+='\n<html>\n<head>\n<title>'+ed.getParam('fullpage_default_title','Untitled document')+'</title>\n';if(v=ed.getParam('fullpage_default_encoding'))t.head+='<meta http-equiv="Content-Type" content="'+v+'" />\n';if(v=ed.getParam('fullpage_default_font_family'))st+='font-family: '+v+';';if(v=ed.getParam('fullpage_default_font_size'))st+='font-size: '+v+';';if(v=ed.getParam('fullpage_default_text_color'))st+='color: '+v+';';t.head+='</head>\n<body'+(st?' style="'+st+'"':'')+'>\n';t.foot='\n</body>\n</html>';}},_getContent:function(ed,o){var t=this;o.content=tinymce.trim(t.head)+'\n'+tinymce.trim(o.content)+'\n'+tinymce.trim(t.foot);}});tinymce.PluginManager.add('fullpage',tinymce.plugins.FullPagePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c<e;c++){g=l[c].split("=");b=g[0].replace(/\s/,"");h=g[1];if(h){h=h.replace(/^\s+/,"").replace(/\s+$/,"");j=h.match(/^["'](.*)["']$/);if(j){h=j[1]}}else{h=b}d.dom.setAttrib(d.getBody(),"style",h)}}}},_createSerializer:function(){return new tinymce.dom.Serializer({dom:this.editor.dom,apply_source_formatting:true})},_setContent:function(d,b){var h=this,a,j,f=b.content,g,i="";if(b.source_view&&d.getParam("fullpage_hide_in_source_view")){return}f=f.replace(/<(\/?)BODY/gi,"<$1body");a=f.indexOf("<body");if(a!=-1){a=f.indexOf(">",a);h.head=f.substring(0,a+1);j=f.indexOf("</body",a);if(j==-1){j=f.indexOf("</body",j)}b.content=f.substring(a+1,j);h.foot=f.substring(j);function e(c){return c.replace(/<\/?[A-Z]+/g,function(k){return k.toLowerCase()})}h.head=e(h.head);h.foot=e(h.foot)}else{h.head="";if(d.getParam("fullpage_default_xml_pi")){h.head+='<?xml version="1.0" encoding="'+d.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}h.head+=d.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');h.head+="\n<html>\n<head>\n<title>"+d.getParam("fullpage_default_title","Untitled document")+"</title>\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='<meta http-equiv="Content-Type" content="'+g+'" />\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="</head>\n<body"+(i?' style="'+i+'"':"")+">\n";h.foot="\n</body>\n</html>"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js
1 /** 1 /**
2 - * $Id: editor_plugin_src.js 920 2008-09-09 14:05:33Z spocke $ 2 + * $Id: editor_plugin_src.js 1029 2009-02-24 22:32:21Z spocke $
3 * 3 *
4 * @author Moxiecode 4 * @author Moxiecode
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. 5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -82,6 +82,9 @@ @@ -82,6 +82,9 @@
82 _setContent : function(ed, o) { 82 _setContent : function(ed, o) {
83 var t = this, sp, ep, c = o.content, v, st = ''; 83 var t = this, sp, ep, c = o.content, v, st = '';
84 84
  85 + if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
  86 + return;
  87 +
85 // Parse out head, body and footer 88 // Parse out head, body and footer
86 c = c.replace(/<(\/?)BODY/gi, '<$1body'); 89 c = c.replace(/<(\/?)BODY/gi, '<$1body');
87 sp = c.indexOf('<body'); 90 sp = c.indexOf('<body');
@@ -133,7 +136,8 @@ @@ -133,7 +136,8 @@
133 _getContent : function(ed, o) { 136 _getContent : function(ed, o) {
134 var t = this; 137 var t = this;
135 138
136 - o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot); 139 + if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view'))
  140 + o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
137 } 141 }
138 }); 142 });
139 143
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm
@@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
7 <script type="text/javascript" src="../../utils/form_utils.js"></script> 7 <script type="text/javascript" src="../../utils/form_utils.js"></script>
8 <script type="text/javascript" src="js/fullpage.js"></script> 8 <script type="text/javascript" src="js/fullpage.js"></script>
9 <link href="css/fullpage.css" rel="stylesheet" type="text/css" /> 9 <link href="css/fullpage.css" rel="stylesheet" type="text/css" />
10 - <base target="_self" />  
11 </head> 10 </head>
12 <body id="advlink" style="display: none"> 11 <body id="advlink" style="display: none">
13 <form onsubmit="updateAction();return false;" name="fullpage" action="#"> 12 <form onsubmit="updateAction();return false;" name="fullpage" action="#">
@@ -26,27 +25,27 @@ @@ -26,27 +25,27 @@
26 25
27 <table border="0" cellpadding="4" cellspacing="0"> 26 <table border="0" cellpadding="4" cellspacing="0">
28 <tr> 27 <tr>
29 - <td nowrap="nowrap"><label for="metatitle">{#fullpage_dlg.meta_title}</label>&nbsp;</td> 28 + <td class="nowrap"><label for="metatitle">{#fullpage_dlg.meta_title}</label>&nbsp;</td>
30 <td><input type="text" id="metatitle" name="metatitle" value="" class="mceFocus" /></td> 29 <td><input type="text" id="metatitle" name="metatitle" value="" class="mceFocus" /></td>
31 </tr> 30 </tr>
32 <tr> 31 <tr>
33 - <td nowrap="nowrap"><label for="metakeywords">{#fullpage_dlg.meta_keywords}</label>&nbsp;</td> 32 + <td class="nowrap"><label for="metakeywords">{#fullpage_dlg.meta_keywords}</label>&nbsp;</td>
34 <td><textarea id="metakeywords" name="metakeywords" rows="4"></textarea></td> 33 <td><textarea id="metakeywords" name="metakeywords" rows="4"></textarea></td>
35 </tr> 34 </tr>
36 <tr> 35 <tr>
37 - <td nowrap="nowrap"><label for="metadescription">{#fullpage_dlg.meta_description}</label>&nbsp;</td> 36 + <td class="nowrap"><label for="metadescription">{#fullpage_dlg.meta_description}</label>&nbsp;</td>
38 <td><textarea id="metadescription" name="metadescription" rows="4"></textarea></td> 37 <td><textarea id="metadescription" name="metadescription" rows="4"></textarea></td>
39 </tr> 38 </tr>
40 <tr> 39 <tr>
41 - <td nowrap="nowrap"><label for="metaauthor">{#fullpage_dlg.author}</label>&nbsp;</td> 40 + <td class="nowrap"><label for="metaauthor">{#fullpage_dlg.author}</label>&nbsp;</td>
42 <td><input type="text" id="metaauthor" name="metaauthor" value="" /></td> 41 <td><input type="text" id="metaauthor" name="metaauthor" value="" /></td>
43 </tr> 42 </tr>
44 <tr> 43 <tr>
45 - <td nowrap="nowrap"><label for="metacopyright">{#fullpage_dlg.copyright}</label>&nbsp;</td> 44 + <td class="nowrap"><label for="metacopyright">{#fullpage_dlg.copyright}</label>&nbsp;</td>
46 <td><input type="text" id="metacopyright" name="metacopyright" value="" /></td> 45 <td><input type="text" id="metacopyright" name="metacopyright" value="" /></td>
47 </tr> 46 </tr>
48 <tr> 47 <tr>
49 - <td nowrap="nowrap"><label for="metarobots">{#fullpage_dlg.meta_robots}</label>&nbsp;</td> 48 + <td class="nowrap"><label for="metarobots">{#fullpage_dlg.meta_robots}</label>&nbsp;</td>
50 <td> 49 <td>
51 <select id="metarobots" name="metarobots"> 50 <select id="metarobots" name="metarobots">
52 <option value="">{#not_set}</option> 51 <option value="">{#not_set}</option>
@@ -73,7 +72,7 @@ @@ -73,7 +72,7 @@
73 </td> 72 </td>
74 </tr> 73 </tr>
75 <tr> 74 <tr>
76 - <td nowrap="nowrap"><label for="doctypes">{#fullpage_dlg.doctypes}</label>&nbsp;</td> 75 + <td class="nowrap"><label for="doctypes">{#fullpage_dlg.doctypes}</label>&nbsp;</td>
77 <td> 76 <td>
78 <select id="doctypes" name="doctypes"> 77 <select id="doctypes" name="doctypes">
79 <option value="">{#not_set}</option> 78 <option value="">{#not_set}</option>
@@ -81,7 +80,7 @@ @@ -81,7 +80,7 @@
81 </td> 80 </td>
82 </tr> 81 </tr>
83 <tr> 82 <tr>
84 - <td nowrap="nowrap"><label for="langcode">{#fullpage_dlg.langcode}</label>&nbsp;</td> 83 + <td class="nowrap"><label for="langcode">{#fullpage_dlg.langcode}</label>&nbsp;</td>
85 <td><input type="text" id="langcode" name="langcode" value="" /></td> 84 <td><input type="text" id="langcode" name="langcode" value="" /></td>
86 </tr> 85 </tr>
87 <tr> 86 <tr>
@@ -95,7 +94,7 @@ @@ -95,7 +94,7 @@
95 </td> 94 </td>
96 </tr> 95 </tr>
97 <tr> 96 <tr>
98 - <td nowrap="nowrap"><label for="xml_pi">{#fullpage_dlg.xml_pi}</label>&nbsp;</td> 97 + <td class="nowrap"><label for="xml_pi">{#fullpage_dlg.xml_pi}</label>&nbsp;</td>
99 <td><input type="checkbox" id="xml_pi" name="xml_pi" class="checkbox" /></td> 98 <td><input type="checkbox" id="xml_pi" name="xml_pi" class="checkbox" /></td>
100 </tr> 99 </tr>
101 </table> 100 </table>
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js
@@ -123,7 +123,7 @@ function init() { @@ -123,7 +123,7 @@ function init() {
123 // Parse xml and doctype 123 // Parse xml and doctype
124 xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); 124 xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
125 xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); 125 xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1);
126 - docType = getReItem(/<\!DOCTYPE.*?>/gi, h, 0); 126 + docType = getReItem(/<\!DOCTYPE.*?>/gi, h.replace(/\n/g, ''), 0).replace(/ +/g, ' ');
127 f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1); 127 f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1);
128 128
129 // Parse title 129 // Parse title
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/de_dlg.js
@@ -14,7 +14,7 @@ langcode:&quot;Sprachcode&quot;, @@ -14,7 +14,7 @@ langcode:&quot;Sprachcode&quot;,
14 langdir:"Sprachrichtung", 14 langdir:"Sprachrichtung",
15 ltr:"Links nach Rechts", 15 ltr:"Links nach Rechts",
16 rtl:"Rechts nach Links", 16 rtl:"Rechts nach Links",
17 -xml_pi:"XML declaration", 17 +xml_pi:"XML Deklaration",
18 encoding:"Zeichencodierung", 18 encoding:"Zeichencodierung",
19 appearance_bgprops:"Hintergrund-Eigenschaften", 19 appearance_bgprops:"Hintergrund-Eigenschaften",
20 appearance_marginprops:"Abst\u00E4nde des Body", 20 appearance_marginprops:"Abst\u00E4nde des Body",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/fr_dlg.js
@@ -71,7 +71,7 @@ href:&quot;Href&quot;, @@ -71,7 +71,7 @@ href:&quot;Href&quot;,
71 target:"Cible", 71 target:"Cible",
72 type:"Type", 72 type:"Type",
73 charset:"Charset", 73 charset:"Charset",
74 -defer:"Def\u00E9rer", 74 +defer:"D\u00E9f\u00E9rer",
75 media:"M\u00E9dia", 75 media:"M\u00E9dia",
76 properties:"Propri\u00E9t\u00E9s", 76 properties:"Propri\u00E9t\u00E9s",
77 name:"Nom", 77 name:"Nom",
@@ -79,7 +79,7 @@ value:&quot;Valeur&quot;, @@ -79,7 +79,7 @@ value:&quot;Valeur&quot;,
79 content:"Contenu", 79 content:"Contenu",
80 rel:"Rel", 80 rel:"Rel",
81 rev:"Rev", 81 rev:"Rev",
82 -hreflang:"Href lang", 82 +hreflang:"langue Href",
83 general_props:"G\u00E9n\u00E9ral", 83 general_props:"G\u00E9n\u00E9ral",
84 advanced_props:"Avanc\u00E9" 84 advanced_props:"Avanc\u00E9"
85 }); 85 });
86 \ No newline at end of file 86 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,85 @@ @@ -0,0 +1,85 @@
  1 +tinyMCE.addI18n('ja.fullpage_dlg',{
  2 +title:"\u30DA\u30FC\u30B8\u8A2D\u5B9A",
  3 +meta_tab:"\u4E00\u822C",
  4 +appearance_tab:"\u8868\u793A",
  5 +advanced_tab:"\u4E0A\u7D1A\u8005\u5411\u3051",
  6 +meta_props:"\u30E1\u30BF\u60C5\u5831",
  7 +langprops:"\u8A00\u8A9E\u3068\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0",
  8 +meta_title:"\u30BF\u30A4\u30C8\u30EB",
  9 +meta_keywords:"\u30AD\u30FC\u30EF\u30FC\u30C9",
  10 +meta_description:"\u8AAC\u660E",
  11 +meta_robots:"\u691C\u7D22\u30ED\u30DC\u30C3\u30C8\u5236\u5FA1",
  12 +doctypes:"DOCTYPE",
  13 +langcode:"\u8A00\u8A9E\u30B3\u30FC\u30C9",
  14 +langdir:"\u6587\u7AE0\u306E\u65B9\u5411",
  15 +ltr:"\u5DE6\u304B\u3089\u53F3",
  16 +rtl:"\u53F3\u304B\u3089\u5DE6",
  17 +xml_pi:"XML\u5BA3\u8A00",
  18 +encoding:"\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0",
  19 +appearance_bgprops:"\u80CC\u666F\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
  20 +appearance_marginprops:"\u4F59\u767D",
  21 +appearance_linkprops:"\u30EA\u30F3\u30AF\u8272",
  22 +appearance_textprops:"\u6587\u5B57\u3082\u30D7\u30ED\u30D1\u30C6\u30A3",
  23 +bgcolor:"\u80CC\u666F\u8272",
  24 +bgimage:"\u80CC\u666F\u753B\u50CF",
  25 +left_margin:"\u5DE6\u4F59\u767D",
  26 +right_margin:"\u53F3\u4F59\u767D",
  27 +top_margin:"\u4E0A\u4F59\u767D",
  28 +bottom_margin:"\u4E0B\u4F59\u767D",
  29 +text_color:"\u6587\u5B57\u8272",
  30 +font_size:"\u6587\u5B57\u30B5\u30A4\u30BA",
  31 +font_face:"\u30D5\u30A9\u30F3\u30C8",
  32 +link_color:"\u30EA\u30F3\u30AF\u8272",
  33 +hover_color:"\u30EA\u30F3\u30AF\u8272(hover)",
  34 +visited_color:"\u30EA\u30F3\u30AF\u8272(visited)",
  35 +active_color:"\u30EA\u30F3\u30AF\u8272(active)",
  36 +textcolor:"\u8272",
  37 +fontsize:"\u6587\u5B57\u30B5\u30A4\u30BA",
  38 +fontface:"\u30D5\u30A9\u30F3\u30C8",
  39 +meta_index_follow:"\u3053\u306E\u30DA\u30FC\u30B8\u3068\u30EA\u30F3\u30AF\u5148\u306E\u5DE1\u56DE\u3092\u8A31\u53EF",
  40 +meta_index_nofollow:"\u3053\u306E\u30DA\u30FC\u30B8\u306E\u5DE1\u56DE\u3092\u8A31\u53EF\u3001\u30EA\u30F3\u30AF\u5148\u306E\u5DE1\u56DE\u3092\u7981\u6B62",
  41 +meta_noindex_follow:"\u3053\u306E\u30DA\u30FC\u30B8\u306E\u5DE1\u56DE\u3092\u7981\u6B62\u3001\u30EA\u30F3\u30AF\u5148\u306E\u5DE1\u56DE\u3092\u8A31\u53EF",
  42 +meta_noindex_nofollow:"\u3053\u306E\u30DA\u30FC\u30B8\u3068\u30EA\u30F3\u30AF\u5148\u306E\u5DE1\u56DE\u3092\u7981\u6B62",
  43 +appearance_style:"\u30B9\u30BF\u30A4\u30EB\u8A2D\u5B9A",
  44 +stylesheet:"\u30B9\u30BF\u30A4\u30EB\u30B7\u30FC\u30C8",
  45 +style:"\u30B9\u30BF\u30A4\u30EB",
  46 +author:"\u4F5C\u8005",
  47 +copyright:"\u30B3\u30D4\u30FC\u30E9\u30A4\u30C8",
  48 +add:"\u30A8\u30EC\u30E1\u30F3\u30C8\u8FFD\u52A0",
  49 +remove:"\u9078\u629E\u8981\u7D20\u306E\u524A\u9664",
  50 +moveup:"\u9078\u629E\u8981\u7D20\u3092\u4E0A\u3078\u79FB\u52D5",
  51 +movedown:"\u9078\u629E\u8981\u7D20\u3092\u4E0B\u3078\u79FB\u52D5",
  52 +head_elements:"Head\u8981\u7D20",
  53 +info:"\u30A4\u30F3\u30D5\u30A9\u30E1\u30FC\u30B7\u30E7\u30F3",
  54 +add_title:"Title\u8981\u7D20",
  55 +add_meta:"Meta\u8981\u7D20",
  56 +add_script:"Script\u8981\u7D20",
  57 +add_style:"Style\u8981\u7D20",
  58 +add_link:"Link\u8981\u7D20",
  59 +add_base:"Base\u8981\u7D20",
  60 +add_comment:"Comment\u30CE\u30FC\u30C9",
  61 +title_element:"Title\u8981\u7D20",
  62 +script_element:"Script\u8981\u7D20",
  63 +style_element:"Style\u8981\u7D20",
  64 +base_element:"Base\u8981\u7D20",
  65 +link_element:"Link\u8981\u7D20",
  66 +meta_element:"Meta\u8981\u7D20",
  67 +comment_element:"Comment",
  68 +src:"src",
  69 +language:"Language",
  70 +href:"Href",
  71 +target:"Target",
  72 +type:"Type",
  73 +charset:"Charset",
  74 +defer:"Defer",
  75 +media:"Media",
  76 +properties:"Properties",
  77 +name:"Name",
  78 +value:"Value",
  79 +content:"Content",
  80 +rel:"Rel",
  81 +rev:"Rev",
  82 +hreflang:"Href lang",
  83 +general_props:"\u4E00\u822C",
  84 +advanced_props:"\u4E0A\u7D1A\u8005\u5411\u3051"
  85 +});
0 \ No newline at end of file 86 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/pt_dlg.js
@@ -4,13 +4,13 @@ meta_tab:&quot;Geral&quot;, @@ -4,13 +4,13 @@ meta_tab:&quot;Geral&quot;,
4 appearance_tab:"Apar\u00EAncia", 4 appearance_tab:"Apar\u00EAncia",
5 advanced_tab:"Avan\u00E7ado", 5 advanced_tab:"Avan\u00E7ado",
6 meta_props:"Meta-informa\u00E7\u00E3o", 6 meta_props:"Meta-informa\u00E7\u00E3o",
7 -langprops:"Linguagem e codifica\u00E7\u00E3o", 7 +langprops:"Idioma e codifica\u00E7\u00E3o",
8 meta_title:"T\u00EDtulo", 8 meta_title:"T\u00EDtulo",
9 meta_keywords:"Palavras-chave", 9 meta_keywords:"Palavras-chave",
10 meta_description:"Descri\u00E7\u00E3o", 10 meta_description:"Descri\u00E7\u00E3o",
11 meta_robots:"Robots", 11 meta_robots:"Robots",
12 doctypes:"Doctype", 12 doctypes:"Doctype",
13 -langcode:"C\u00F3digo de linguagem", 13 +langcode:"C\u00F3digo de idioma",
14 langdir:"Dire\u00E7\u00E3o do texto", 14 langdir:"Dire\u00E7\u00E3o do texto",
15 ltr:"Esquerda para direita", 15 ltr:"Esquerda para direita",
16 rtl:"Direita para esquerda", 16 rtl:"Direita para esquerda",
@@ -45,7 +45,7 @@ stylesheet:&quot;Folha de estilo&quot;, @@ -45,7 +45,7 @@ stylesheet:&quot;Folha de estilo&quot;,
45 style:"Estilo", 45 style:"Estilo",
46 author:"Autor", 46 author:"Autor",
47 copyright:"Copyright", 47 copyright:"Copyright",
48 -add:"Acrescentar Novo elemento", 48 +add:"Acrescentar novo elemento",
49 remove:"Remover elemento selecionado", 49 remove:"Remover elemento selecionado",
50 moveup:"Subir elemento selecionado", 50 moveup:"Subir elemento selecionado",
51 movedown:"Descer elemento selecionado", 51 movedown:"Descer elemento selecionado",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js
1 -(function(){var DOM=tinymce.DOM;tinymce.create('tinymce.plugins.FullScreenPlugin',{init:function(ed,url){var t=this,s={},vp;t.editor=ed;ed.addCommand('mceFullScreen',function(){var win,de=DOM.doc.documentElement;if(ed.getParam('fullscreen_is_enabled')){if(ed.getParam('fullscreen_new_window'))closeFullscreen();else{DOM.win.setTimeout(function(){tinymce.dom.Event.remove(DOM.win,'resize',t.resizeFunc);tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent({format:'raw'}),{format:'raw'});tinyMCE.remove(ed);DOM.remove('mce_fullscreen_container');de.style.overflow=ed.getParam('fullscreen_html_overflow');DOM.setStyle(DOM.doc.body,'overflow',ed.getParam('fullscreen_overflow'));DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'),ed.getParam('fullscreen_scrolly'));tinyMCE.settings=tinyMCE.oldSettings;},10);}return;}if(ed.getParam('fullscreen_new_window')){win=DOM.win.open(url+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{win.resizeTo(screen.availWidth,screen.availHeight);}catch(e){}}else{tinyMCE.oldSettings=tinyMCE.settings;s.fullscreen_overflow=DOM.getStyle(DOM.doc.body,'overflow',1)||'auto';s.fullscreen_html_overflow=DOM.getStyle(de,'overflow',1);vp=DOM.getViewPort();s.fullscreen_scrollx=vp.x;s.fullscreen_scrolly=vp.y;if(tinymce.isOpera&&s.fullscreen_overflow=='visible')s.fullscreen_overflow='auto';if(tinymce.isIE&&s.fullscreen_overflow=='scroll')s.fullscreen_overflow='auto';if(tinymce.isIE&&(s.fullscreen_html_overflow=='visible'||s.fullscreen_html_overflow=='scroll'))s.fullscreen_html_overflow='auto';if(s.fullscreen_overflow=='0px')s.fullscreen_overflow='';DOM.setStyle(DOM.doc.body,'overflow','hidden');de.style.overflow='hidden';vp=DOM.getViewPort();DOM.win.scrollTo(0,0);if(tinymce.isIE)vp.h-=1;n=DOM.add(DOM.doc.body,'div',{id:'mce_fullscreen_container',style:'position:'+(tinymce.isIE6||(tinymce.isIE&&!DOM.boxModel)?'absolute':'fixed')+';top:0;left:0;width:'+vp.w+'px;height:'+vp.h+'px;z-index:200000;'});DOM.add(n,'div',{id:'mce_fullscreen'});tinymce.each(ed.settings,function(v,n){s[n]=v;});s.id='mce_fullscreen';s.width=n.clientWidth;s.height=n.clientHeight-15;s.fullscreen_is_enabled=true;s.fullscreen_editor_id=ed.id;s.theme_advanced_resizing=false;s.save_onsavecallback=function(){ed.setContent(tinyMCE.get(s.id).getContent({format:'raw'}),{format:'raw'});ed.execCommand('mceSave');};tinymce.each(ed.getParam('fullscreen_settings'),function(v,k){s[k]=v;});if(s.theme_advanced_toolbar_location==='external')s.theme_advanced_toolbar_location='top';t.fullscreenEditor=new tinymce.Editor('mce_fullscreen',s);t.fullscreenEditor.onInit.add(function(){t.fullscreenEditor.setContent(ed.getContent());t.fullscreenEditor.focus();});t.fullscreenEditor.render();tinyMCE.add(t.fullscreenEditor);t.fullscreenElement=new tinymce.dom.Element('mce_fullscreen_container');t.fullscreenElement.update();t.resizeFunc=tinymce.dom.Event.add(DOM.win,'resize',function(){var vp=tinymce.DOM.getViewPort();t.fullscreenEditor.theme.resizeTo(vp.w,vp.h);});}});ed.addButton('fullscreen',{title:'fullscreen.desc',cmd:'mceFullScreen'});ed.onNodeChange.add(function(ed,cm){cm.setActive('fullscreen',ed.getParam('fullscreen_is_enabled'));});},getInfo:function(){return{longname:'Fullscreen',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('fullscreen',tinymce.plugins.FullScreenPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(c,d){var e=this,f={},b;e.editor=c;c.addCommand("mceFullScreen",function(){var h,i=a.doc.documentElement;if(c.getParam("fullscreen_is_enabled")){if(c.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",e.resizeFunc);tinyMCE.get(c.getParam("fullscreen_editor_id")).setContent(c.getContent({format:"raw"}),{format:"raw"});tinyMCE.remove(c);a.remove("mce_fullscreen_container");i.style.overflow=c.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",c.getParam("fullscreen_overflow"));a.win.scrollTo(c.getParam("fullscreen_scrollx"),c.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(c.getParam("fullscreen_new_window")){h=a.win.open(d+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{h.resizeTo(screen.availWidth,screen.availHeight)}catch(g){}}else{tinyMCE.oldSettings=tinyMCE.settings;f.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";f.fullscreen_html_overflow=a.getStyle(i,"overflow",1);b=a.getViewPort();f.fullscreen_scrollx=b.x;f.fullscreen_scrolly=b.y;if(tinymce.isOpera&&f.fullscreen_overflow=="visible"){f.fullscreen_overflow="auto"}if(tinymce.isIE&&f.fullscreen_overflow=="scroll"){f.fullscreen_overflow="auto"}if(tinymce.isIE&&(f.fullscreen_html_overflow=="visible"||f.fullscreen_html_overflow=="scroll")){f.fullscreen_html_overflow="auto"}if(f.fullscreen_overflow=="0px"){f.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");i.style.overflow="hidden";b=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){b.h-=1}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+(tinymce.isIE6||(tinymce.isIE&&!a.boxModel)?"absolute":"fixed")+";top:0;left:0;width:"+b.w+"px;height:"+b.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(c.settings,function(j,k){f[k]=j});f.id="mce_fullscreen";f.width=n.clientWidth;f.height=n.clientHeight-15;f.fullscreen_is_enabled=true;f.fullscreen_editor_id=c.id;f.theme_advanced_resizing=false;f.save_onsavecallback=function(){c.setContent(tinyMCE.get(f.id).getContent({format:"raw"}),{format:"raw"});c.execCommand("mceSave")};tinymce.each(c.getParam("fullscreen_settings"),function(l,j){f[j]=l});if(f.theme_advanced_toolbar_location==="external"){f.theme_advanced_toolbar_location="top"}e.fullscreenEditor=new tinymce.Editor("mce_fullscreen",f);e.fullscreenEditor.onInit.add(function(){e.fullscreenEditor.setContent(c.getContent());e.fullscreenEditor.focus()});e.fullscreenEditor.render();tinyMCE.add(e.fullscreenEditor);e.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");e.fullscreenElement.update();e.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var j=tinymce.DOM.getViewPort();e.fullscreenEditor.theme.resizeTo(j.w,j.h)})}});c.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});c.onNodeChange.add(function(h,g){g.setActive("fullscreen",h.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm
@@ -96,7 +96,6 @@ @@ -96,7 +96,6 @@
96 // Add onunload 96 // Add onunload
97 tinymce.dom.Event.add(window, "beforeunload", unloadHandler); 97 tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
98 </script> 98 </script>
99 - <base target="_self" />  
100 </head> 99 </head>
101 <body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no"> 100 <body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
102 <form onsubmit="doParentSubmit();"> 101 <form onsubmit="doParentSubmit();">
public/javascripts/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.IESpell',{init:function(ed,url){var t=this,sp;if(!tinymce.isIE)return;t.editor=ed;ed.addCommand('mceIESpell',function(){try{sp=new ActiveXObject("ieSpell.ieSpellExtension");sp.CheckDocumentNode(ed.getDoc().documentElement);}catch(e){if(e.number==-2146827859){ed.windowManager.confirm(ed.getLang("iespell.download"),function(s){if(s)window.open('http://www.iespell.com/download.php','ieSpellDownload','');});}else ed.windowManager.alert("Error Loading ieSpell: Exception "+e.number);}});ed.addButton('iespell',{title:'iespell.iespell_desc',cmd:'mceIESpell'});},getInfo:function(){return{longname:'IESpell (IE Only)',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('iespell',tinymce.plugins.IESpell);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js
1 -(function(){var DOM=tinymce.DOM,Element=tinymce.dom.Element,Event=tinymce.dom.Event,each=tinymce.each,is=tinymce.is;tinymce.create('tinymce.plugins.InlinePopups',{init:function(ed,url){ed.onBeforeRenderUI.add(function(){ed.windowManager=new tinymce.InlineWindowManager(ed);DOM.loadCSS(url+'/skins/'+(ed.settings.inlinepopups_skin||'clearlooks2')+"/window.css");});},getInfo:function(){return{longname:'InlinePopups',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager',{InlineWindowManager:function(ed){var t=this;t.parent(ed);t.zIndex=300000;t.count=0;t.windows={};},open:function(f,p){var t=this,id,opt='',ed=t.editor,dw=0,dh=0,vp,po,mdf,clf,we,w,u;f=f||{};p=p||{};if(!f.inline)return t.parent(f,p);if(!f.type)t.bookmark=ed.selection.getBookmark('simple');id=DOM.uniqueId();vp=DOM.getViewPort();f.width=parseInt(f.width||320);f.height=parseInt(f.height||240)+(tinymce.isIE?8:0);f.min_width=parseInt(f.min_width||150);f.min_height=parseInt(f.min_height||100);f.max_width=parseInt(f.max_width||2000);f.max_height=parseInt(f.max_height||2000);f.left=f.left||Math.round(Math.max(vp.x,vp.x+(vp.w/ 2.0) - (f.width /2.0)));f.top=f.top||Math.round(Math.max(vp.y,vp.y+(vp.h/ 2.0) - (f.height /2.0)));f.movable=f.resizable=true;p.mce_width=f.width;p.mce_height=f.height;p.mce_inline=true;p.mce_window_id=id;p.mce_auto_focus=f.auto_focus;t.features=f;t.params=p;t.onOpen.dispatch(t,f,p);if(f.type){opt+=' mceModal';if(f.type)opt+=' mce'+f.type.substring(0,1).toUpperCase()+f.type.substring(1);f.resizable=false;}if(f.statusbar)opt+=' mceStatusbar';if(f.resizable)opt+=' mceResizable';if(f.minimizable)opt+=' mceMinimizable';if(f.maximizable)opt+=' mceMaximizable';if(f.movable)opt+=' mceMovable';t._addAll(DOM.doc.body,['div',{id:id,'class':ed.settings.inlinepopups_skin||'clearlooks2',style:'width:100px;height:100px'},['div',{id:id+'_wrapper','class':'mceWrapper'+opt},['div',{id:id+'_top','class':'mceTop'},['div',{'class':'mceLeft'}],['div',{'class':'mceCenter'}],['div',{'class':'mceRight'}],['span',{id:id+'_title'},f.title||'']],['div',{id:id+'_middle','class':'mceMiddle'},['div',{id:id+'_left','class':'mceLeft'}],['span',{id:id+'_content'}],['div',{id:id+'_right','class':'mceRight'}]],['div',{id:id+'_bottom','class':'mceBottom'},['div',{'class':'mceLeft'}],['div',{'class':'mceCenter'}],['div',{'class':'mceRight'}],['span',{id:id+'_status'},'Content']],['a',{'class':'mceMove',tabindex:'-1',href:'javascript:;'}],['a',{'class':'mceMin',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceMax',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceMed',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{'class':'mceClose',tabindex:'-1',href:'javascript:;',onmousedown:'return false;'}],['a',{id:id+'_resize_n','class':'mceResize mceResizeN',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_s','class':'mceResize mceResizeS',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_w','class':'mceResize mceResizeW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_e','class':'mceResize mceResizeE',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_nw','class':'mceResize mceResizeNW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_ne','class':'mceResize mceResizeNE',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_sw','class':'mceResize mceResizeSW',tabindex:'-1',href:'javascript:;'}],['a',{id:id+'_resize_se','class':'mceResize mceResizeSE',tabindex:'-1',href:'javascript:;'}]]]);DOM.setStyles(id,{top:-10000,left:-10000});if(tinymce.isGecko)DOM.setStyle(id,'overflow','auto');if(!f.type){dw+=DOM.get(id+'_left').clientWidth;dw+=DOM.get(id+'_right').clientWidth;dh+=DOM.get(id+'_top').clientHeight;dh+=DOM.get(id+'_bottom').clientHeight;}DOM.setStyles(id,{top:f.top,left:f.left,width:f.width+dw,height:f.height+dh});u=f.url||f.file;if(u){if(tinymce.relaxedDomain)u+=(u.indexOf('?')==-1?'?':'&')+'mce_rdomain='+tinymce.relaxedDomain;u=tinymce._addVer(u);}if(!f.type){DOM.add(id+'_content','iframe',{id:id+'_ifr',src:'javascript:""',frameBorder:0,style:'border:0;width:10px;height:10px'});DOM.setStyles(id+'_ifr',{width:f.width,height:f.height});DOM.setAttrib(id+'_ifr','src',u);}else{DOM.add(id+'_wrapper','a',{id:id+'_ok','class':'mceButton mceOk',href:'javascript:;',onmousedown:'return false;'},'Ok');if(f.type=='confirm')DOM.add(id+'_wrapper','a',{'class':'mceButton mceCancel',href:'javascript:;',onmousedown:'return false;'},'Cancel');DOM.add(id+'_middle','div',{'class':'mceIcon'});DOM.setHTML(id+'_content',f.content.replace('\n','<br />'));}mdf=Event.add(id,'mousedown',function(e){var n=e.target,w,vp;w=t.windows[id];t.focus(id);if(n.nodeName=='A'||n.nodeName=='a'){if(n.className=='mceMax'){w.oldPos=w.element.getXY();w.oldSize=w.element.getSize();vp=DOM.getViewPort();vp.w-=2;vp.h-=2;w.element.moveTo(vp.x,vp.y);w.element.resizeTo(vp.w,vp.h);DOM.setStyles(id+'_ifr',{width:vp.w-w.deltaWidth,height:vp.h-w.deltaHeight});DOM.addClass(id+'_wrapper','mceMaximized');}else if(n.className=='mceMed'){w.element.moveTo(w.oldPos.x,w.oldPos.y);w.element.resizeTo(w.oldSize.w,w.oldSize.h);w.iframeElement.resizeTo(w.oldSize.w-w.deltaWidth,w.oldSize.h-w.deltaHeight);DOM.removeClass(id+'_wrapper','mceMaximized');}else if(n.className=='mceMove')return t._startDrag(id,e,n.className);else if(DOM.hasClass(n,'mceResize'))return t._startDrag(id,e,n.className.substring(13));}});clf=Event.add(id,'click',function(e){var n=e.target;t.focus(id);if(n.nodeName=='A'||n.nodeName=='a'){switch(n.className){case'mceClose':t.close(null,id);return Event.cancel(e);case'mceButton mceOk':case'mceButton mceCancel':f.button_func(n.className=='mceButton mceOk');return Event.cancel(e);}}});w=t.windows[id]={id:id,mousedown_func:mdf,click_func:clf,element:new Element(id,{blocker:1,container:ed.getContainer()}),iframeElement:new Element(id+'_ifr'),features:f,deltaWidth:dw,deltaHeight:dh};w.iframeElement.on('focus',function(){t.focus(id);});if(t.count==0&&t.editor.getParam('dialog_type','modal')=='modal'){DOM.add(DOM.doc.body,'div',{id:'mceModalBlocker','class':(t.editor.settings.inlinepopups_skin||'clearlooks2')+'_modalBlocker',style:{zIndex:t.zIndex-1}});DOM.show('mceModalBlocker');}else DOM.setStyle('mceModalBlocker','z-index',t.zIndex-1);if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!DOM.boxModel))DOM.setStyles('mceModalBlocker',{position:'absolute',width:vp.w-2,height:vp.h-2});t.focus(id);t._fixIELayout(id,1);if(DOM.get(id+'_ok'))DOM.get(id+'_ok').focus();t.count++;return w;},focus:function(id){var t=this,w;if(w=t.windows[id]){w.zIndex=this.zIndex++;w.element.setStyle('zIndex',w.zIndex);w.element.update();id=id+'_wrapper';DOM.removeClass(t.lastId,'mceFocus');DOM.addClass(id,'mceFocus');t.lastId=id;}},_addAll:function(te,ne){var i,n,t=this,dom=tinymce.DOM;if(is(ne,'string'))te.appendChild(dom.doc.createTextNode(ne));else if(ne.length){te=te.appendChild(dom.create(ne[0],ne[1]));for(i=2;i<ne.length;i++)t._addAll(te,ne[i]);}},_startDrag:function(id,se,ac){var t=this,mu,mm,d=DOM.doc,eb,w=t.windows[id],we=w.element,sp=we.getXY(),p,sz,ph,cp,vp,sx,sy,sex,sey,dx,dy,dw,dh;cp={x:0,y:0};vp=DOM.getViewPort();vp.w-=2;vp.h-=2;sex=se.screenX;sey=se.screenY;dx=dy=dw=dh=0;mu=Event.add(d,'mouseup',function(e){Event.remove(d,'mouseup',mu);Event.remove(d,'mousemove',mm);if(eb)eb.remove();we.moveBy(dx,dy);we.resizeBy(dw,dh);sz=we.getSize();DOM.setStyles(id+'_ifr',{width:sz.w-w.deltaWidth,height:sz.h-w.deltaHeight});t._fixIELayout(id,1);return Event.cancel(e);});if(ac!='Move')startMove();function startMove(){if(eb)return;t._fixIELayout(id,0);DOM.add(d.body,'div',{id:'mceEventBlocker','class':'mceEventBlocker '+(t.editor.settings.inlinepopups_skin||'clearlooks2'),style:{zIndex:t.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!DOM.boxModel))DOM.setStyles('mceEventBlocker',{position:'absolute',width:vp.w-2,height:vp.h-2});eb=new Element('mceEventBlocker');eb.update();p=we.getXY();sz=we.getSize();sx=cp.x+p.x-vp.x;sy=cp.y+p.y-vp.y;DOM.add(eb.get(),'div',{id:'mcePlaceHolder','class':'mcePlaceHolder',style:{left:sx,top:sy,width:sz.w,height:sz.h}});ph=new Element('mcePlaceHolder');};mm=Event.add(d,'mousemove',function(e){var x,y,v;startMove();x=e.screenX-sex;y=e.screenY-sey;switch(ac){case'ResizeW':dx=x;dw=0-x;break;case'ResizeE':dw=x;break;case'ResizeN':case'ResizeNW':case'ResizeNE':if(ac=="ResizeNW"){dx=x;dw=0-x;}else if(ac=="ResizeNE")dw=x;dy=y;dh=0-y;break;case'ResizeS':case'ResizeSW':case'ResizeSE':if(ac=="ResizeSW"){dx=x;dw=0-x;}else if(ac=="ResizeSE")dw=x;dh=y;break;case'mceMove':dx=x;dy=y;break;}if(dw<(v=w.features.min_width-sz.w)){if(dx!==0)dx+=dw-v;dw=v;}if(dh<(v=w.features.min_height-sz.h)){if(dy!==0)dy+=dh-v;dh=v;}dw=Math.min(dw,w.features.max_width-sz.w);dh=Math.min(dh,w.features.max_height-sz.h);dx=Math.max(dx,vp.x-(sx+vp.x));dy=Math.max(dy,vp.y-(sy+vp.y));dx=Math.min(dx,(vp.w+vp.x)-(sx+sz.w+vp.x));dy=Math.min(dy,(vp.h+vp.y)-(sy+sz.h+vp.y));if(dx+dy!==0){if(sx+dx<0)dx=0;if(sy+dy<0)dy=0;ph.moveTo(sx+dx,sy+dy);}if(dw+dh!==0)ph.resizeTo(sz.w+dw,sz.h+dh);return Event.cancel(e);});return Event.cancel(se);},resizeBy:function(dw,dh,id){var w=this.windows[id];if(w){w.element.resizeBy(dw,dh);w.iframeElement.resizeBy(dw,dh);}},close:function(win,id){var t=this,w,d=DOM.doc,ix=0,fw,id;id=t._findId(id||win);if(!t.windows[id]){t.parent(win);return;}t.count--;if(t.count==0)DOM.remove('mceModalBlocker');if(w=t.windows[id]){t.onClose.dispatch(t);Event.remove(d,'mousedown',w.mousedownFunc);Event.remove(d,'click',w.clickFunc);Event.clear(id);Event.clear(id+'_ifr');DOM.setAttrib(id+'_ifr','src','javascript:""');w.element.remove();delete t.windows[id];each(t.windows,function(w){if(w.zIndex>ix){fw=w;ix=w.zIndex;}});if(fw)t.focus(fw.id);}},setTitle:function(w,ti){var e;w=this._findId(w);if(e=DOM.get(w+'_title'))e.innerHTML=DOM.encode(ti);},alert:function(txt,cb,s){var t=this,w;w=t.open({title:t,type:'alert',button_func:function(s){if(cb)cb.call(s||t,s);t.close(null,w.id);},content:DOM.encode(t.editor.getLang(txt,txt)),inline:1,width:400,height:130});},confirm:function(txt,cb,s){var t=this,w;w=t.open({title:t,type:'confirm',button_func:function(s){if(cb)cb.call(s||t,s);t.close(null,w.id);},content:DOM.encode(t.editor.getLang(txt,txt)),inline:1,width:400,height:130});},_findId:function(w){var t=this;if(typeof(w)=='string')return w;each(t.windows,function(wo){var ifr=DOM.get(wo.id+'_ifr');if(ifr&&w==ifr.contentWindow){w=wo.id;return false;}});return w;},_fixIELayout:function(id,s){var w,img;if(!tinymce.isIE6)return;each(['n','s','w','e','nw','ne','sw','se'],function(v){var e=DOM.get(id+'_resize_'+v);DOM.setStyles(e,{width:s?e.clientWidth:'',height:s?e.clientHeight:'',cursor:DOM.getStyle(e,'cursor',1)});DOM.setStyle(id+"_bottom",'bottom','-1px');e=0;});if(w=this.windows[id]){w.element.hide();w.element.show();each(DOM.select('div,a',id),function(e,i){if(e.currentStyle.backgroundImage!='none'){img=new Image();img.src=e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,'$1');}});DOM.get(id).style.filter='';}}});tinymce.PluginManager.add('inlinepopups',tinymce.plugins.InlinePopups);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","<br />"))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(j,l){var h=this,g,k=d.doc,f=0,i,l;l=h._findId(l||j);if(!h.windows[l]){h.parent(j);return}h.count--;if(h.count==0){d.remove("mceModalBlocker")}if(g=h.windows[l]){h.onClose.dispatch(h);a.remove(k,"mousedown",g.mousedownFunc);a.remove(k,"click",g.clickFunc);a.clear(l);a.clear(l+"_ifr");d.setAttrib(l+"_ifr","src",'javascript:""');g.element.remove();delete h.windows[l];e(h.windows,function(m){if(m.zIndex>f){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
1 /** 1 /**
2 - * $Id: editor_plugin_src.js 961 2008-11-14 10:31:07Z spocke $ 2 + * $Id: editor_plugin_src.js 1150 2009-06-01 11:50:46Z spocke $
3 * 3 *
4 * @author Moxiecode 4 * @author Moxiecode
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. 5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 50
51 // Only store selection if the type is a normal window 51 // Only store selection if the type is a normal window
52 if (!f.type) 52 if (!f.type)
53 - t.bookmark = ed.selection.getBookmark('simple'); 53 + t.bookmark = ed.selection.getBookmark(1);
54 54
55 id = DOM.uniqueId(); 55 id = DOM.uniqueId();
56 vp = DOM.getViewPort(); 56 vp = DOM.getViewPort();
@@ -266,7 +266,7 @@ @@ -266,7 +266,7 @@
266 DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1); 266 DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1);
267 267
268 if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel)) 268 if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel))
269 - DOM.setStyles('mceModalBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2}); 269 + DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
270 270
271 t.focus(id); 271 t.focus(id);
272 t._fixIELayout(id, 1); 272 t._fixIELayout(id, 1);
@@ -358,7 +358,7 @@ @@ -358,7 +358,7 @@
358 }); 358 });
359 359
360 if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel)) 360 if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel))
361 - DOM.setStyles('mceEventBlocker', {position : 'absolute', width : vp.w - 2, height : vp.h - 2}); 361 + DOM.setStyles('mceEventBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
362 362
363 eb = new Element('mceEventBlocker'); 363 eb = new Element('mceEventBlocker');
364 eb.update(); 364 eb.update();
public/javascripts/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.InsertDateTime',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceInsertDate',function(){var str=t._getDateTime(new Date(),ed.getParam("plugin_insertdate_dateFormat",ed.getLang('insertdatetime.date_fmt')));ed.execCommand('mceInsertContent',false,str);});ed.addCommand('mceInsertTime',function(){var str=t._getDateTime(new Date(),ed.getParam("plugin_insertdate_timeFormat",ed.getLang('insertdatetime.time_fmt')));ed.execCommand('mceInsertContent',false,str);});ed.addButton('insertdate',{title:'insertdatetime.insertdate_desc',cmd:'mceInsertDate'});ed.addButton('inserttime',{title:'insertdatetime.inserttime_desc',cmd:'mceInsertTime'});},getInfo:function(){return{longname:'Insert date/time',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_getDateTime:function(d,fmt){var ed=this.editor;function addZeros(value,len){value=""+value;if(value.length<len){for(var i=0;i<(len-value.length);i++)value="0"+value;}return value;};fmt=fmt.replace("%D","%m/%d/%y");fmt=fmt.replace("%r","%I:%M:%S %p");fmt=fmt.replace("%Y",""+d.getFullYear());fmt=fmt.replace("%y",""+d.getYear());fmt=fmt.replace("%m",addZeros(d.getMonth()+1,2));fmt=fmt.replace("%d",addZeros(d.getDate(),2));fmt=fmt.replace("%H",""+addZeros(d.getHours(),2));fmt=fmt.replace("%M",""+addZeros(d.getMinutes(),2));fmt=fmt.replace("%S",""+addZeros(d.getSeconds(),2));fmt=fmt.replace("%I",""+((d.getHours()+11)%12+1));fmt=fmt.replace("%p",""+(d.getHours()<12?"AM":"PM"));fmt=fmt.replace("%B",""+ed.getLang("insertdatetime.months_long").split(',')[d.getMonth()]);fmt=fmt.replace("%b",""+ed.getLang("insertdatetime.months_short").split(',')[d.getMonth()]);fmt=fmt.replace("%A",""+ed.getLang("insertdatetime.day_long").split(',')[d.getDay()]);fmt=fmt.replace("%a",""+ed.getLang("insertdatetime.day_short").split(',')[d.getDay()]);fmt=fmt.replace("%%","%");return fmt;}});tinymce.PluginManager.add('insertdatetime',tinymce.plugins.InsertDateTime);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.InsertDateTime",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertDate",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_dateFormat",a.getLang("insertdatetime.date_fmt")));a.execCommand("mceInsertContent",false,d)});a.addCommand("mceInsertTime",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_timeFormat",a.getLang("insertdatetime.time_fmt")));a.execCommand("mceInsertContent",false,d)});a.addButton("insertdate",{title:"insertdatetime.insertdate_desc",cmd:"mceInsertDate"});a.addButton("inserttime",{title:"insertdatetime.inserttime_desc",cmd:"mceInsertTime"})},getInfo:function(){return{longname:"Insert date/time",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getDateTime:function(e,a){var c=this.editor;function b(g,d){g=""+g;if(g.length<d){for(var f=0;f<(d-g.length);f++){g="0"+g}}return g}a=a.replace("%D","%m/%d/%y");a=a.replace("%r","%I:%M:%S %p");a=a.replace("%Y",""+e.getFullYear());a=a.replace("%y",""+e.getYear());a=a.replace("%m",b(e.getMonth()+1,2));a=a.replace("%d",b(e.getDate(),2));a=a.replace("%H",""+b(e.getHours(),2));a=a.replace("%M",""+b(e.getMinutes(),2));a=a.replace("%S",""+b(e.getSeconds(),2));a=a.replace("%I",""+((e.getHours()+11)%12+1));a=a.replace("%p",""+(e.getHours()<12?"AM":"PM"));a=a.replace("%B",""+c.getLang("insertdatetime.months_long").split(",")[e.getMonth()]);a=a.replace("%b",""+c.getLang("insertdatetime.months_short").split(",")[e.getMonth()]);a=a.replace("%A",""+c.getLang("insertdatetime.day_long").split(",")[e.getDay()]);a=a.replace("%a",""+c.getLang("insertdatetime.day_short").split(",")[e.getDay()]);a=a.replace("%%","%");return a}});tinymce.PluginManager.add("insertdatetime",tinymce.plugins.InsertDateTime)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.Layer',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceInsertLayer',t._insertLayer,t);ed.addCommand('mceMoveForward',function(){t._move(1);});ed.addCommand('mceMoveBackward',function(){t._move(-1);});ed.addCommand('mceMakeAbsolute',function(){t._toggleAbsolute();});ed.addButton('moveforward',{title:'layer.forward_desc',cmd:'mceMoveForward'});ed.addButton('movebackward',{title:'layer.backward_desc',cmd:'mceMoveBackward'});ed.addButton('absolute',{title:'layer.absolute_desc',cmd:'mceMakeAbsolute'});ed.addButton('insertlayer',{title:'layer.insertlayer_desc',cmd:'mceInsertLayer'});ed.onInit.add(function(){if(tinymce.isIE)ed.getDoc().execCommand('2D-Position',false,true);});ed.onNodeChange.add(t._nodeChange,t);ed.onVisualAid.add(t._visualAid,t);},getInfo:function(){return{longname:'Layer',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_nodeChange:function(ed,cm,n){var le,p;le=this._getParentLayer(n);p=ed.dom.getParent(n,'DIV,P,IMG');if(!p){cm.setDisabled('absolute',1);cm.setDisabled('moveforward',1);cm.setDisabled('movebackward',1);}else{cm.setDisabled('absolute',0);cm.setDisabled('moveforward',!le);cm.setDisabled('movebackward',!le);cm.setActive('absolute',le&&le.style.position.toLowerCase()=="absolute");}},_visualAid:function(ed,e,s){var dom=ed.dom;tinymce.each(dom.select('div,p',e),function(e){if(/^(absolute|relative|static)$/i.test(e.style.position)){if(s)dom.addClass(e,'mceItemVisualAid');else dom.removeClass(e,'mceItemVisualAid');}});},_move:function(d){var ed=this.editor,i,z=[],le=this._getParentLayer(ed.selection.getNode()),ci=-1,fi=-1,nl;nl=[];tinymce.walk(ed.getBody(),function(n){if(n.nodeType==1&&/^(absolute|relative|static)$/i.test(n.style.position))nl.push(n);},'childNodes');for(i=0;i<nl.length;i++){z[i]=nl[i].style.zIndex?parseInt(nl[i].style.zIndex):0;if(ci<0&&nl[i]==le)ci=i;}if(d<0){for(i=0;i<z.length;i++){if(z[i]<z[ci]){fi=i;break;}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci];}else{if(z[ci]>0)nl[ci].style.zIndex=z[ci]-1;}}else{for(i=0;i<z.length;i++){if(z[i]>z[ci]){fi=i;break;}}if(fi>-1){nl[ci].style.zIndex=z[fi];nl[fi].style.zIndex=z[ci];}else nl[ci].style.zIndex=z[ci]+1;}ed.execCommand('mceRepaint');},_getParentLayer:function(n){return this.editor.dom.getParent(n,function(n){return n.nodeType==1&&/^(absolute|relative|static)$/i.test(n.style.position);});},_insertLayer:function(){var ed=this.editor,p=ed.dom.getPos(ed.dom.getParent(ed.selection.getNode(),'*'));ed.dom.add(ed.getBody(),'div',{style:{position:'absolute',left:p.x,top:(p.y>20?p.y:20),width:100,height:100},'class':'mceItemVisualAid'},ed.selection.getContent()||ed.getLang('layer.content'));},_toggleAbsolute:function(){var ed=this.editor,le=this._getParentLayer(ed.selection.getNode());if(!le)le=ed.dom.getParent(ed.selection.getNode(),'DIV,P,IMG');if(le){if(le.style.position.toLowerCase()=="absolute"){ed.dom.setStyles(le,{position:'',left:'',top:'',width:'',height:''});ed.dom.removeClass(le,'mceItemVisualAid');}else{if(le.style.left=="")le.style.left=20+'px';if(le.style.top=="")le.style.top=20+'px';if(le.style.width=="")le.style.width=le.width?(le.width+'px'):'100px';if(le.style.height=="")le.style.height=le.height?(le.height+'px'):'100px';le.style.position="absolute";ed.addVisual(ed.getBody());}ed.execCommand('mceRepaint');ed.nodeChanged();}}});tinymce.PluginManager.add('layer',tinymce.plugins.Layer);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.Layer",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertLayer",c._insertLayer,c);a.addCommand("mceMoveForward",function(){c._move(1)});a.addCommand("mceMoveBackward",function(){c._move(-1)});a.addCommand("mceMakeAbsolute",function(){c._toggleAbsolute()});a.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"});a.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"});a.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"});a.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"});a.onInit.add(function(){if(tinymce.isIE){a.getDoc().execCommand("2D-Position",false,true)}});a.onNodeChange.add(c._nodeChange,c);a.onVisualAid.add(c._visualAid,c)},getInfo:function(){return{longname:"Layer",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var c,d;c=this._getParentLayer(e);d=b.dom.getParent(e,"DIV,P,IMG");if(!d){a.setDisabled("absolute",1);a.setDisabled("moveforward",1);a.setDisabled("movebackward",1)}else{a.setDisabled("absolute",0);a.setDisabled("moveforward",!c);a.setDisabled("movebackward",!c);a.setActive("absolute",c&&c.style.position.toLowerCase()=="absolute")}},_visualAid:function(a,c,b){var d=a.dom;tinymce.each(d.select("div,p",c),function(f){if(/^(absolute|relative|static)$/i.test(f.style.position)){if(b){d.addClass(f,"mceItemVisualAid")}else{d.removeClass(f,"mceItemVisualAid")}}})},_move:function(h){var b=this.editor,f,g=[],e=this._getParentLayer(b.selection.getNode()),c=-1,j=-1,a;a=[];tinymce.walk(b.getBody(),function(d){if(d.nodeType==1&&/^(absolute|relative|static)$/i.test(d.style.position)){a.push(d)}},"childNodes");for(f=0;f<a.length;f++){g[f]=a[f].style.zIndex?parseInt(a[f].style.zIndex):0;if(c<0&&a[f]==e){c=f}}if(h<0){for(f=0;f<g.length;f++){if(g[f]<g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;f<g.length;f++){if(g[f]>g[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js
1 -(function(){var each=tinymce.each;tinymce.create('tinymce.plugins.MediaPlugin',{init:function(ed,url){var t=this;t.editor=ed;t.url=url;function isMediaElm(n){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(n.className);};ed.onPreInit.add(function(){ed.serializer.addRules('param[name|value|_mce_value]');});ed.addCommand('mceMedia',function(){ed.windowManager.open({file:url+'/media.htm',width:430+parseInt(ed.getLang('media.delta_width',0)),height:470+parseInt(ed.getLang('media.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('media',{title:'media.desc',cmd:'mceMedia'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('media',n.nodeName=='IMG'&&isMediaElm(n));});ed.onInit.add(function(){var lo={mceItemFlash:'flash',mceItemShockWave:'shockwave',mceItemWindowsMedia:'windowsmedia',mceItemQuickTime:'quicktime',mceItemRealMedia:'realmedia'};ed.selection.onSetContent.add(function(){t._spansToImgs(ed.getBody());});ed.selection.onBeforeSetContent.add(t._objectsToSpans,t);if(ed.settings.content_css!==false)ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.name=='img'){each(lo,function(v,k){if(ed.dom.hasClass(o.node,k)){o.name=v;o.title=ed.dom.getAttrib(o.node,'title');return false;}});}});}if(ed&&ed.plugins.contextmenu){ed.plugins.contextmenu.onContextMenu.add(function(th,m,e){if(e.nodeName=='IMG'&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(e.className)){m.add({title:'media.edit',icon:'media',cmd:'mceMedia'});}});}});ed.onBeforeSetContent.add(t._objectsToSpans,t);ed.onSetContent.add(function(){t._spansToImgs(ed.getBody());});ed.onPreProcess.add(function(ed,o){var dom=ed.dom;if(o.set){t._spansToImgs(o.node);each(dom.select('IMG',o.node),function(n){var p;if(isMediaElm(n)){p=t._parse(n.title);dom.setAttrib(n,'width',dom.getAttrib(n,'width',p.width||100));dom.setAttrib(n,'height',dom.getAttrib(n,'height',p.height||100));}});}if(o.get){each(dom.select('IMG',o.node),function(n){var ci,cb,mt;if(ed.getParam('media_use_script')){if(isMediaElm(n))n.className=n.className.replace(/mceItem/g,'mceTemp');return;}switch(n.className){case'mceItemFlash':ci='d27cdb6e-ae6d-11cf-96b8-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='application/x-shockwave-flash';break;case'mceItemShockWave':ci='166b1bca-3f9c-11cf-8075-444553540000';cb='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0';mt='application/x-director';break;case'mceItemWindowsMedia':ci=ed.getParam('media_wmp6_compatible')?'05589fa1-c356-11ce-bf01-00aa0055595a':'6bf52a52-394a-11d3-b153-00c04f79faa6';cb='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701';mt='application/x-mplayer2';break;case'mceItemQuickTime':ci='02bf25d5-8c17-4b23-bc80-d3488abddc6b';cb='http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0';mt='video/quicktime';break;case'mceItemRealMedia':ci='cfcdaa03-8be4-11cf-b84b-0020afbbccfa';cb='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0';mt='audio/x-pn-realaudio-plugin';break;}if(ci){dom.replace(t._buildObj({classid:ci,codebase:cb,type:mt},n),n);}});}});ed.onPostProcess.add(function(ed,o){o.content=o.content.replace(/_mce_value=/g,'value=');});if(ed.getParam('media_use_script')){function getAttr(s,n){n=new RegExp(n+'=\"([^\"]+)\"','g').exec(s);return n?ed.dom.decode(n[1]):'';};ed.onPostProcess.add(function(ed,o){o.content=o.content.replace(/<img[^>]+>/g,function(im){var cl=getAttr(im,'class');if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(cl)){at=t._parse(getAttr(im,'title'));at.width=getAttr(im,'width');at.height=getAttr(im,'height');im='<script type="text/javascript">write'+cl.substring(7)+'({'+t._serialize(at)+'});</script>';}return im;});});}},getInfo:function(){return{longname:'Media',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_objectsToSpans:function(ed,o){var t=this,h=o.content;h=h.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,function(a,b,c){var o=t._parse(c);return'<img class="mceItem'+b+'" title="'+ed.dom.encode(c)+'" src="'+t.url+'/img/trans.gif" width="'+o.width+'" height="'+o.height+'" />'});h=h.replace(/<object([^>]*)>/gi,'<span class="mceItemObject" $1>');h=h.replace(/<embed([^>]*)\/?>/gi,'<span class="mceItemEmbed" $1></span>');h=h.replace(/<embed([^>]*)>/gi,'<span class="mceItemEmbed" $1>');h=h.replace(/<\/(object)([^>]*)>/gi,'</span>');h=h.replace(/<\/embed>/gi,'');h=h.replace(/<param([^>]*)>/gi,function(a,b){return'<span '+b.replace(/value=/gi,'_mce_value=')+' class="mceItemParam"></span>'});h=h.replace(/\/ class=\"mceItemParam\"><\/span>/gi,'class="mceItemParam"></span>');o.content=h;},_buildObj:function(o,n){var ob,ed=this.editor,dom=ed.dom,p=this._parse(n.title),stc;stc=ed.getParam('media_strict',true)&&o.type=='application/x-shockwave-flash';p.width=o.width=dom.getAttrib(n,'width')||100;p.height=o.height=dom.getAttrib(n,'height')||100;if(p.src)p.src=ed.convertURL(p.src,'src',n);if(stc){ob=dom.create('span',{mce_name:'object',type:'application/x-shockwave-flash',data:p.src,width:o.width,height:o.height});}else{ob=dom.create('span',{mce_name:'object',classid:"clsid:"+o.classid,codebase:o.codebase,width:o.width,height:o.height});}each(p,function(v,k){if(!/^(width|height|codebase|classid|_cx|_cy)$/.test(k)){if(o.type=='application/x-mplayer2'&&k=='src')k='url';if(v)dom.add(ob,'span',{mce_name:'param',name:k,'_mce_value':v});}});if(!stc)dom.add(ob,'span',tinymce.extend({mce_name:'embed',type:o.type},p));return ob;},_spansToImgs:function(p){var t=this,dom=t.editor.dom,im,ci;each(dom.select('span',p),function(n){if(dom.getAttrib(n,'class')=='mceItemObject'){ci=dom.getAttrib(n,"classid").toLowerCase().replace(/\s+/g,'');switch(ci){case'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000':dom.replace(t._createImg('mceItemFlash',n),n);break;case'clsid:166b1bca-3f9c-11cf-8075-444553540000':dom.replace(t._createImg('mceItemShockWave',n),n);break;case'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6':case'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95':case'clsid:05589fa1-c356-11ce-bf01-00aa0055595a':dom.replace(t._createImg('mceItemWindowsMedia',n),n);break;case'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b':dom.replace(t._createImg('mceItemQuickTime',n),n);break;case'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa':dom.replace(t._createImg('mceItemRealMedia',n),n);break;default:dom.replace(t._createImg('mceItemFlash',n),n);}return;}if(dom.getAttrib(n,'class')=='mceItemEmbed'){switch(dom.getAttrib(n,'type')){case'application/x-shockwave-flash':dom.replace(t._createImg('mceItemFlash',n),n);break;case'application/x-director':dom.replace(t._createImg('mceItemShockWave',n),n);break;case'application/x-mplayer2':dom.replace(t._createImg('mceItemWindowsMedia',n),n);break;case'video/quicktime':dom.replace(t._createImg('mceItemQuickTime',n),n);break;case'audio/x-pn-realaudio-plugin':dom.replace(t._createImg('mceItemRealMedia',n),n);break;default:dom.replace(t._createImg('mceItemFlash',n),n);}}});},_createImg:function(cl,n){var im,dom=this.editor.dom,pa={},ti='',args;args=['id','name','width','height','bgcolor','align','flashvars','src','wmode','allowfullscreen','quality'];im=dom.create('img',{src:this.url+'/img/trans.gif',width:dom.getAttrib(n,'width')||100,height:dom.getAttrib(n,'height')||100,'class':cl});each(args,function(na){var v=dom.getAttrib(n,na);if(v)pa[na]=v;});each(dom.select('span',n),function(n){if(dom.hasClass(n,'mceItemParam'))pa[dom.getAttrib(n,'name')]=dom.getAttrib(n,'_mce_value');});if(pa.movie){pa.src=pa.movie;delete pa.movie;}n=dom.select('.mceItemEmbed',n)[0];if(n){each(args,function(na){var v=dom.getAttrib(n,na);if(v&&!pa[na])pa[na]=v;});}delete pa.width;delete pa.height;im.title=this._serialize(pa);return im;},_parse:function(s){return tinymce.util.JSON.parse('{'+s+'}');},_serialize:function(o){return tinymce.util.JSON.serialize(o).replace(/[{}]/g,'');}});tinymce.PluginManager.add('media',tinymce.plugins.MediaPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/<img[^>]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j='<script type="text/javascript">write'+i.substring(7)+"({"+e._serialize(at)+"});<\/script>"}return j})}})},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_objectsToSpans:function(b,e){var c=this,d=e.content;d=d.replace(/<script[^>]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi,function(g,f,i){var h=c._parse(i);return'<img class="mceItem'+f+'" title="'+b.dom.encode(i)+'" src="'+c.url+'/img/trans.gif" width="'+h.width+'" height="'+h.height+'" />'});d=d.replace(/<object([^>]*)>/gi,'<span class="mceItemObject" $1>');d=d.replace(/<embed([^>]*)\/?>/gi,'<span class="mceItemEmbed" $1></span>');d=d.replace(/<embed([^>]*)>/gi,'<span class="mceItemEmbed" $1>');d=d.replace(/<\/(object)([^>]*)>/gi,"</span>");d=d.replace(/<\/embed>/gi,"");d=d.replace(/<param([^>]*)>/gi,function(g,f){return"<span "+f.replace(/value=/gi,"_mce_value=")+' class="mceItemParam"></span>'});d=d.replace(/\/ class=\"mceItemParam\"><\/span>/gi,'class="mceItemParam"></span>');e.content=d},_buildObj:function(g,h){var d,c=this.editor,f=c.dom,e=this._parse(h.title),b;b=c.getParam("media_strict",true)&&g.type=="application/x-shockwave-flash";e.width=g.width=f.getAttrib(h,"width")||100;e.height=g.height=f.getAttrib(h,"height")||100;if(e.src){e.src=c.convertURL(e.src,"src",h)}if(b){d=f.create("span",{id:e.id,mce_name:"object",type:"application/x-shockwave-flash",data:e.src,style:f.getAttrib(h,"style"),width:g.width,height:g.height})}else{d=f.create("span",{id:e.id,mce_name:"object",classid:"clsid:"+g.classid,style:f.getAttrib(h,"style"),codebase:g.codebase,width:g.width,height:g.height})}a(e,function(j,i){if(!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(i)){if(g.type=="application/x-mplayer2"&&i=="src"&&!e.url){i="url"}if(j){f.add(d,"span",{mce_name:"param",name:i,_mce_value:j})}}});if(!b){f.add(d,"span",tinymce.extend({mce_name:"embed",type:g.type,style:f.getAttrib(h,"style")},e))}return d},_spansToImgs:function(e){var d=this,f=d.editor.dom,b,c;a(f.select("span",e),function(g){if(f.getAttrib(g,"class")=="mceItemObject"){c=f.getAttrib(g,"classid").toLowerCase().replace(/\s+/g,"");switch(c){case"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000":f.replace(d._createImg("mceItemFlash",g),g);break;case"clsid:166b1bca-3f9c-11cf-8075-444553540000":f.replace(d._createImg("mceItemShockWave",g),g);break;case"clsid:6bf52a52-394a-11d3-b153-00c04f79faa6":case"clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95":case"clsid:05589fa1-c356-11ce-bf01-00aa0055595a":f.replace(d._createImg("mceItemWindowsMedia",g),g);break;case"clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b":f.replace(d._createImg("mceItemQuickTime",g),g);break;case"clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa":f.replace(d._createImg("mceItemRealMedia",g),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}return}if(f.getAttrib(g,"class")=="mceItemEmbed"){switch(f.getAttrib(g,"type")){case"application/x-shockwave-flash":f.replace(d._createImg("mceItemFlash",g),g);break;case"application/x-director":f.replace(d._createImg("mceItemShockWave",g),g);break;case"application/x-mplayer2":f.replace(d._createImg("mceItemWindowsMedia",g),g);break;case"video/quicktime":f.replace(d._createImg("mceItemQuickTime",g),g);break;case"audio/x-pn-realaudio-plugin":f.replace(d._createImg("mceItemRealMedia",g),g);break;default:f.replace(d._createImg("mceItemFlash",g),g)}}})},_createImg:function(c,h){var b,g=this.editor.dom,f={},e="",d;d=["id","name","width","height","bgcolor","align","flashvars","src","wmode","allowfullscreen","quality","data"];b=g.create("img",{src:this.url+"/img/trans.gif",width:g.getAttrib(h,"width")||100,height:g.getAttrib(h,"height")||100,style:g.getAttrib(h,"style"),"class":c});a(d,function(i){var j=g.getAttrib(h,i);if(j){f[i]=j}});a(g.select("span",h),function(i){if(g.hasClass(i,"mceItemParam")){f[g.getAttrib(i,"name")]=g.getAttrib(i,"_mce_value")}});if(f.movie){f.src=f.movie;delete f.movie}if(!f.src){f.src=f.data;delete f.data}h=g.select(".mceItemEmbed",h)[0];if(h){a(d,function(i){var j=g.getAttrib(h,i);if(j&&!f[i]){f[i]=j}})}delete f.width;delete f.height;b.title=this._serialize(f);return b},_parse:function(b){return tinymce.util.JSON.parse("{"+b+"}")},_serialize:function(b){return tinymce.util.JSON.serialize(b).replace(/[{}]/g,"")}});tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js
1 /** 1 /**
2 - * $Id: editor_plugin_src.js 952 2008-11-03 17:56:04Z spocke $ 2 + * $Id: editor_plugin_src.js 1222 2009-09-03 17:26:47Z spocke $
3 * 3 *
4 * @author Moxiecode 4 * @author Moxiecode
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. 5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 if (ed.settings.content_css !== false) 61 if (ed.settings.content_css !== false)
62 ed.dom.loadCSS(url + "/css/content.css"); 62 ed.dom.loadCSS(url + "/css/content.css");
63 63
64 - if (ed.theme.onResolveName) { 64 + if (ed.theme && ed.theme.onResolveName) {
65 ed.theme.onResolveName.add(function(th, o) { 65 ed.theme.onResolveName.add(function(th, o) {
66 if (o.name == 'img') { 66 if (o.name == 'img') {
67 each(lo, function(v, k) { 67 each(lo, function(v, k) {
@@ -165,14 +165,14 @@ @@ -165,14 +165,14 @@
165 o.content = o.content.replace(/_mce_value=/g, 'value='); 165 o.content = o.content.replace(/_mce_value=/g, 'value=');
166 }); 166 });
167 167
168 - if (ed.getParam('media_use_script')) {  
169 - function getAttr(s, n) {  
170 - n = new RegExp(n + '=\"([^\"]+)\"', 'g').exec(s); 168 + function getAttr(s, n) {
  169 + n = new RegExp(n + '=\"([^\"]+)\"', 'g').exec(s);
171 170
172 - return n ? ed.dom.decode(n[1]) : '';  
173 - }; 171 + return n ? ed.dom.decode(n[1]) : '';
  172 + };
174 173
175 - ed.onPostProcess.add(function(ed, o) { 174 + ed.onPostProcess.add(function(ed, o) {
  175 + if (ed.getParam('media_use_script')) {
176 o.content = o.content.replace(/<img[^>]+>/g, function(im) { 176 o.content = o.content.replace(/<img[^>]+>/g, function(im) {
177 var cl = getAttr(im, 'class'); 177 var cl = getAttr(im, 'class');
178 178
@@ -185,8 +185,8 @@ @@ -185,8 +185,8 @@
185 185
186 return im; 186 return im;
187 }); 187 });
188 - });  
189 - } 188 + }
  189 + });
190 }, 190 },
191 191
192 getInfo : function() { 192 getInfo : function() {
@@ -233,16 +233,20 @@ @@ -233,16 +233,20 @@
233 233
234 if (stc) { 234 if (stc) {
235 ob = dom.create('span', { 235 ob = dom.create('span', {
  236 + id : p.id,
236 mce_name : 'object', 237 mce_name : 'object',
237 type : 'application/x-shockwave-flash', 238 type : 'application/x-shockwave-flash',
238 data : p.src, 239 data : p.src,
  240 + style : dom.getAttrib(n, 'style'),
239 width : o.width, 241 width : o.width,
240 height : o.height 242 height : o.height
241 }); 243 });
242 } else { 244 } else {
243 ob = dom.create('span', { 245 ob = dom.create('span', {
  246 + id : p.id,
244 mce_name : 'object', 247 mce_name : 'object',
245 classid : "clsid:" + o.classid, 248 classid : "clsid:" + o.classid,
  249 + style : dom.getAttrib(n, 'style'),
246 codebase : o.codebase, 250 codebase : o.codebase,
247 width : o.width, 251 width : o.width,
248 height : o.height 252 height : o.height
@@ -250,9 +254,9 @@ @@ -250,9 +254,9 @@
250 } 254 }
251 255
252 each (p, function(v, k) { 256 each (p, function(v, k) {
253 - if (!/^(width|height|codebase|classid|_cx|_cy)$/.test(k)) { 257 + if (!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(k)) {
254 // Use url instead of src in IE for Windows media 258 // Use url instead of src in IE for Windows media
255 - if (o.type == 'application/x-mplayer2' && k == 'src') 259 + if (o.type == 'application/x-mplayer2' && k == 'src' && !p.url)
256 k = 'url'; 260 k = 'url';
257 261
258 if (v) 262 if (v)
@@ -261,7 +265,7 @@ @@ -261,7 +265,7 @@
261 }); 265 });
262 266
263 if (!stc) 267 if (!stc)
264 - dom.add(ob, 'span', tinymce.extend({mce_name : 'embed', type : o.type}, p)); 268 + dom.add(ob, 'span', tinymce.extend({mce_name : 'embed', type : o.type, style : dom.getAttrib(n, 'style')}, p));
265 269
266 return ob; 270 return ob;
267 }, 271 },
@@ -337,13 +341,14 @@ @@ -337,13 +341,14 @@
337 _createImg : function(cl, n) { 341 _createImg : function(cl, n) {
338 var im, dom = this.editor.dom, pa = {}, ti = '', args; 342 var im, dom = this.editor.dom, pa = {}, ti = '', args;
339 343
340 - args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality']; 344 + args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality', 'data'];
341 345
342 // Create image 346 // Create image
343 im = dom.create('img', { 347 im = dom.create('img', {
344 src : this.url + '/img/trans.gif', 348 src : this.url + '/img/trans.gif',
345 width : dom.getAttrib(n, 'width') || 100, 349 width : dom.getAttrib(n, 'width') || 100,
346 height : dom.getAttrib(n, 'height') || 100, 350 height : dom.getAttrib(n, 'height') || 100,
  351 + style : dom.getAttrib(n, 'style'),
347 'class' : cl 352 'class' : cl
348 }); 353 });
349 354
@@ -367,6 +372,12 @@ @@ -367,6 +372,12 @@
367 delete pa.movie; 372 delete pa.movie;
368 } 373 }
369 374
  375 + // No src try data
  376 + if (!pa.src) {
  377 + pa.src = pa.data;
  378 + delete pa.data;
  379 + }
  380 +
370 // Merge with embed args 381 // Merge with embed args
371 n = dom.select('.mceItemEmbed', n)[0]; 382 n = dom.select('.mceItemEmbed', n)[0];
372 if (n) { 383 if (n) {
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/js/media.js
@@ -218,7 +218,7 @@ function insertMedia() { @@ -218,7 +218,7 @@ function insertMedia() {
218 break; 218 break;
219 } 219 }
220 220
221 - if (fe.width != f.width.value || fe.height != f.height.height) 221 + if (fe.width != f.width.value || fe.height != f.height.value)
222 ed.execCommand('mceRepaint'); 222 ed.execCommand('mceRepaint');
223 223
224 fe.title = serializeParameters(); 224 fe.title = serializeParameters();
@@ -469,7 +469,7 @@ function setBool(pl, p, n) { @@ -469,7 +469,7 @@ function setBool(pl, p, n) {
469 if (typeof(pl[n]) == "undefined") 469 if (typeof(pl[n]) == "undefined")
470 return; 470 return;
471 471
472 - document.forms[0].elements[p + "_" + n].checked = pl[n]; 472 + document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';
473 } 473 }
474 474
475 function setStr(pl, p, n) { 475 function setStr(pl, p, n) {
@@ -490,7 +490,7 @@ function getBool(p, n, d, tv, fv) { @@ -490,7 +490,7 @@ function getBool(p, n, d, tv, fv) {
490 tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'"; 490 tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";
491 fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'"; 491 fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";
492 492
493 - return (v == d) ? '' : n + (v ? ':' + tv + ',' : ':' + fv + ','); 493 + return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");
494 } 494 }
495 495
496 function getStr(p, n, d) { 496 function getStr(p, n, d) {
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/langs/de_dlg.js
1 tinyMCE.addI18n('de.media_dlg',{ 1 tinyMCE.addI18n('de.media_dlg',{
2 -title:"Multimedia-Inhalte einf\u00FCgen / bearbeiten", 2 +title:"Multimedia-Inhalte einf\u00FCgen/bearbeiten",
3 general:"Allgemein", 3 general:"Allgemein",
4 advanced:"Erweitert", 4 advanced:"Erweitert",
5 file:"Datei/URL", 5 file:"Datei/URL",
@@ -78,7 +78,7 @@ swstretchvalign:&quot;Stretch V-Ausrichtung&quot;, @@ -78,7 +78,7 @@ swstretchvalign:&quot;Stretch V-Ausrichtung&quot;,
78 sound:"Ton", 78 sound:"Ton",
79 progress:"Fortschritt", 79 progress:"Fortschritt",
80 qtsrc:"QT Src", 80 qtsrc:"QT Src",
81 -qt_stream_warn:"In den Erweiterten Einstellungen sollten im Feld 'QT Src' gestreamte rtsp Resourcen hinzugef\u00FCgt werden.\nzus\u00E4tzlich sollten Sie dort auch eine nicht-gestreamte Resource angeben.", 81 +qt_stream_warn:"In den Erweiterten Einstellungen sollten im Feld 'QT Src' gestreamte RTSP Resourcen hinzugef\u00FCgt werden.\nZus\u00E4tzlich sollten Sie dort auch eine nicht-gestreamte Resource angeben.",
82 align_top:"Oben", 82 align_top:"Oben",
83 align_right:"Rechts", 83 align_right:"Rechts",
84 align_bottom:"Unten", 84 align_bottom:"Unten",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/langs/fr_dlg.js
@@ -28,7 +28,7 @@ liveconnect:&quot;SWLiveConnect&quot;, @@ -28,7 +28,7 @@ liveconnect:&quot;SWLiveConnect&quot;,
28 autohref:"AutoHREF", 28 autohref:"AutoHREF",
29 cache:"Cache", 29 cache:"Cache",
30 hidden:"Cach\u00E9", 30 hidden:"Cach\u00E9",
31 -controller:"Controlleur", 31 +controller:"Contr\u00F4leur",
32 kioskmode:"Mode kiosque", 32 kioskmode:"Mode kiosque",
33 playeveryframe:"Jouer toutes les images", 33 playeveryframe:"Jouer toutes les images",
34 targetcache:"Cache cible", 34 targetcache:"Cache cible",
@@ -78,7 +78,7 @@ swstretchvalign:&quot;Stretch vertical&quot;, @@ -78,7 +78,7 @@ swstretchvalign:&quot;Stretch vertical&quot;,
78 sound:"Son", 78 sound:"Son",
79 progress:"Progr\u00E8s", 79 progress:"Progr\u00E8s",
80 qtsrc:"QT Src", 80 qtsrc:"QT Src",
81 -qt_stream_warn:"Les ressources stream\u00E9es rtsp doivent \u00EAtre ajout\u00E9es au champs QT Src dans l'onglet avanc\u00E9.\nVous devriez aussi ajouter une version non stream\u00E9e au QT src.", 81 +qt_stream_warn:"Les ressources stream\u00E9es rtsp doivent \u00EAtre ajout\u00E9es aux champs QT Src dans l'onglet avanc\u00E9.\nVous devriez aussi ajouter une version non stream\u00E9e au QT src.",
82 align_top:"Haut", 82 align_top:"Haut",
83 align_right:"Droit", 83 align_right:"Droit",
84 align_bottom:"Bas", 84 align_bottom:"Bas",
@@ -95,7 +95,7 @@ flv_startimage:&quot;Image de d\u00E9but&quot;, @@ -95,7 +95,7 @@ flv_startimage:&quot;Image de d\u00E9but&quot;,
95 flv_starttime:"Temps au d\u00E9but", 95 flv_starttime:"Temps au d\u00E9but",
96 flv_defaultvolume:"Volume par d\u00E9faut", 96 flv_defaultvolume:"Volume par d\u00E9faut",
97 flv_hiddengui:"Interface utilisateur cach\u00E9e", 97 flv_hiddengui:"Interface utilisateur cach\u00E9e",
98 -flv_autostart:"D\u00E9marage automatique", 98 +flv_autostart:"D\u00E9marrage automatique",
99 flv_loop:"En boucle", 99 flv_loop:"En boucle",
100 flv_showscalemodes:"Montrer les diff\u00E9rentes \u00E9chelles", 100 flv_showscalemodes:"Montrer les diff\u00E9rentes \u00E9chelles",
101 flv_smoothvideo:"Vid\u00E9o adoucie", 101 flv_smoothvideo:"Vid\u00E9o adoucie",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,103 @@ @@ -0,0 +1,103 @@
  1 +tinyMCE.addI18n('ja.media_dlg',{
  2 +title:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2\u306E\u633F\u5165/\u7DE8\u96C6",
  3 +general:"\u4E00\u822C",
  4 +advanced:"\u4E0A\u7D1A\u8005\u5411\u3051",
  5 +file:"\u30D5\u30A1\u30A4\u30EB/URL",
  6 +list:"\u4E00\u89A7\u304B\u3089\u9078\u3076",
  7 +size:"\u30B5\u30A4\u30BA",
  8 +preview:"\u30D7\u30EC\u30D3\u30E5\u30FC",
  9 +constrain_proportions:"\u7E26\u6A2A\u6BD4\u3092\u4FDD\u5B58",
  10 +type:"\u30BF\u30A4\u30D7",
  11 +id:"ID",
  12 +name:"\u540D\u524D",
  13 +class_name:"\u30AF\u30E9\u30B9",
  14 +vspace:"\u4E0A\u4E0B\u4F59\u767D",
  15 +hspace:"\u5DE6\u53F3\u4F59\u767D",
  16 +play:"\u81EA\u52D5\u518D\u751F",
  17 +loop:"\u7E70\u308A\u8FD4\u3057\u518D\u751F",
  18 +menu:"\u30E1\u30CB\u30E5\u30FC\u3092\u8868\u793A",
  19 +quality:"\u54C1\u8CEA",
  20 +scale:"\u4F38\u7E2E",
  21 +align:"\u914D\u7F6E",
  22 +salign:"SAlign",
  23 +wmode:"WMode",
  24 +bgcolor:"\u80CC\u666F\u8272",
  25 +base:"Base",
  26 +flashvars:"Flashvars",
  27 +liveconnect:"SWLiveConnect",
  28 +autohref:"\u81EA\u52D5\u8AAD\u8FBC",
  29 +cache:"\u30AD\u30E3\u30C3\u30B7\u30E5",
  30 +hidden:"\u975E\u8868\u793A",
  31 +controller:"\u30B3\u30F3\u30C8\u30ED\u30FC\u30E9\u8868\u793A",
  32 +kioskmode:"Kiosk\u30E2\u30FC\u30C9",
  33 +playeveryframe:"\u5168\u30D5\u30EC\u30FC\u30E0\u518D\u751F",
  34 +targetcache:"\u30BF\u30FC\u30B2\u30C3\u30C8\u30AD\u30E3\u30C3\u30B7\u30E5",
  35 +correction:"No correction",
  36 +enablejavascript:"JavaScript\u3092\u6709\u52B9\u306B\u3059\u308B",
  37 +starttime:"\u958B\u59CB\u30D5\u30EC\u30FC\u30E0",
  38 +endtime:"\u7D42\u4E86\u30D5\u30EC\u30FC\u30E0",
  39 +href:"\u30EA\u30F3\u30AF\u5148URL",
  40 +qtsrcchokespeed:"\u518D\u751F\u30C7\u30FC\u30BF\u30EC\u30FC\u30C8",
  41 +target:"\u30BF\u30FC\u30B2\u30C3\u30C8",
  42 +volume:"\u97F3\u91CF",
  43 +autostart:"\u81EA\u52D5\u518D\u751F",
  44 +enabled:"\u6709\u52B9\u306B\u3059\u308B",
  45 +fullscreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",
  46 +invokeurls:"URL\u3092\u958B\u304F",
  47 +mute:"\u30DF\u30E5\u30FC\u30C8",
  48 +stretchtofit:"\u81EA\u52D5\u30B5\u30A4\u30BA\u5909\u66F4",
  49 +windowlessvideo:"windowless\u30E2\u30FC\u30C9",
  50 +balance:"\u30B9\u30C6\u30EC\u30AA\u306E\u30D0\u30E9\u30F3\u30B9",
  51 +baseurl:"Base URL",
  52 +captioningid:"\u30AD\u30E3\u30D7\u30B7\u30E7\u30F3\u8868\u793A\u8981\u7D20ID",
  53 +currentmarker:"\u30DE\u30FC\u30AB\u30FC\u756A\u53F7",
  54 +currentposition:"\u518D\u751F\u4F4D\u7F6E\uFF08\u79D2\u5358\u4F4D\uFF09",
  55 +defaultframe:"\u30C7\u30D5\u30A9\u30EB\u30C8\u30D5\u30EC\u30FC\u30E0",
  56 +playcount:"\u518D\u751F\u56DE\u6570",
  57 +rate:"\u518D\u751F\u30EC\u30FC\u30C8",
  58 +uimode:"UI\u8868\u793A\u30E2\u30FC\u30C9",
  59 +flash_options:"Flash\u30AA\u30D7\u30B7\u30E7\u30F3",
  60 +qt_options:"Quicktime\u30AA\u30D7\u30B7\u30E7\u30F3",
  61 +wmp_options:"Windows media player\u30AA\u30D7\u30B7\u30E7\u30F3",
  62 +rmp_options:"Real media player\u30AA\u30D7\u30B7\u30E7\u30F3",
  63 +shockwave_options:"Shockwave\u30AA\u30D7\u30B7\u30E7\u30F3",
  64 +autogotourl:"autogotourl",
  65 +center:"\u30BB\u30F3\u30BF\u30EA\u30F3\u30B0",
  66 +imagestatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u8868\u793A",
  67 +maintainaspect:"\u7E26\u6A2A\u6BD4\u4FDD\u5B58",
  68 +nojava:"Java\u3092\u7981\u6B62",
  69 +prefetch:"\u30D7\u30EA\u30D5\u30A7\u30C3\u30C1",
  70 +shuffle:"\u30B7\u30E3\u30C3\u30D5\u30EB",
  71 +console:"\u30B3\u30F3\u30BD\u30FC\u30EB",
  72 +numloop:"\u7E70\u308A\u8FD4\u3057\u56DE\u6570",
  73 +controls:"\u30B3\u30F3\u30C8\u30ED\u30FC\u30E9\u8868\u793A",
  74 +scriptcallbacks:"\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u30A4\u30D9\u30F3\u30C8",
  75 +swstretchstyle:"\u4F38\u7E2E",
  76 +swstretchhalign:"\u6C34\u5E73\u4F4D\u7F6E",
  77 +swstretchvalign:"\u5782\u76F4\u4F4D\u7F6E",
  78 +sound:"\u30B5\u30A6\u30F3\u30C9",
  79 +progress:"Progress",
  80 +qtsrc:"QT Src",
  81 +qt_stream_warn:"rtsp\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30EA\u30BD\u30FC\u30B9\u3092\u300C\u4E0A\u7D1A\u8005\u5411\u3051\u300D\u30BF\u30D6\u306E\u300CQT Src\u300D\u6B04\u306B\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\n\u307E\u305F\u3001\u300CSrc\u300D\u6B04\u306B\u306F\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u3067\u306F\u306A\u3044\u30D0\u30FC\u30B8\u30E7\u30FC\u30F3\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
  82 +align_top:"\u4E0A",
  83 +align_right:"\u53F3",
  84 +align_bottom:"\u4E0B",
  85 +align_left:"\u5DE6",
  86 +align_center:"\u4E2D\u592E",
  87 +align_top_left:"\u5DE6\u4E0A",
  88 +align_top_right:"\u53F3\u4E0A",
  89 +align_bottom_left:"\u5DE6\u4E0B",
  90 +align_bottom_right:"\u53F3\u4E0B",
  91 +flv_options:"Flash video\u30AA\u30D7\u30B7\u30E7\u30F3",
  92 +flv_scalemode:"\u4F38\u7E2E\u30E2\u30FC\u30C9",
  93 +flv_buffer:"\u30D0\u30C3\u30D5\u30A1\u79D2\u6570",
  94 +flv_startimage:"\u521D\u671F\u753B\u50CFURL",
  95 +flv_starttime:"\u958B\u59CB\u30D5\u30EC\u30FC\u30E0",
  96 +flv_defaultvolume:"\u97F3\u91CF",
  97 +flv_hiddengui:"\u30B3\u30F3\u30C8\u30ED\u30FC\u30E9\u975E\u8868\u793A",
  98 +flv_autostart:"\u81EA\u52D5\u518D\u751F",
  99 +flv_loop:"\u7E70\u308A\u8FD4\u3057\u518D\u751F",
  100 +flv_showscalemodes:"\u4F38\u7E2E\u5207\u66FF\u30DC\u30BF\u30F3\u8868\u793A",
  101 +flv_smoothvideo:"\u30B9\u30E0\u30FC\u30B8\u30F3\u30B0",
  102 +flv_jscallback:"JS\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF"
  103 +});
0 \ No newline at end of file 104 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/langs/nl_dlg.js
@@ -93,7 +93,7 @@ flv_scalemode:&quot;Schaalmodus&quot;, @@ -93,7 +93,7 @@ flv_scalemode:&quot;Schaalmodus&quot;,
93 flv_buffer:"Buffer", 93 flv_buffer:"Buffer",
94 flv_startimage:"Startafbeelding", 94 flv_startimage:"Startafbeelding",
95 flv_starttime:"Starttijd", 95 flv_starttime:"Starttijd",
96 -flv_defaultvolume:"Standaard volumne", 96 +flv_defaultvolume:"Standaard volume",
97 flv_hiddengui:"GUI verbergen", 97 flv_hiddengui:"GUI verbergen",
98 flv_autostart:"Automatisch afspelen", 98 flv_autostart:"Automatisch afspelen",
99 flv_loop:"Herhalen", 99 flv_loop:"Herhalen",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/langs/pt_dlg.js
@@ -41,7 +41,7 @@ qtsrcchokespeed:&quot;Choke speed&quot;, @@ -41,7 +41,7 @@ qtsrcchokespeed:&quot;Choke speed&quot;,
41 target:"Alvo", 41 target:"Alvo",
42 volume:"Volume", 42 volume:"Volume",
43 autostart:"Execu\u00E7\u00E3o autom\u00E1tica", 43 autostart:"Execu\u00E7\u00E3o autom\u00E1tica",
44 -enabled:"Activado", 44 +enabled:"Ativado",
45 fullscreen:"Tela inteira", 45 fullscreen:"Tela inteira",
46 invokeurls:"Invocar URLs", 46 invokeurls:"Invocar URLs",
47 mute:"Mudo", 47 mute:"Mudo",
public/javascripts/tinymce/jscripts/tiny_mce/plugins/media/media.htm
@@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
9 <script type="text/javascript" src="../../utils/form_utils.js"></script> 9 <script type="text/javascript" src="../../utils/form_utils.js"></script>
10 <script type="text/javascript" src="../../utils/editable_selects.js"></script> 10 <script type="text/javascript" src="../../utils/editable_selects.js"></script>
11 <link href="css/media.css" rel="stylesheet" type="text/css" /> 11 <link href="css/media.css" rel="stylesheet" type="text/css" />
12 - <base target="_self" />  
13 </head> 12 </head>
14 <body style="display: none"> 13 <body style="display: none">
15 <form onsubmit="insertMedia();return false;" action="#"> 14 <form onsubmit="insertMedia();return false;" action="#">
@@ -52,7 +51,7 @@ @@ -52,7 +51,7 @@
52 </tr> 51 </tr>
53 <tr id="linklistrow"> 52 <tr id="linklistrow">
54 <td><label for="linklist">{#media_dlg.list}</label></td> 53 <td><label for="linklist">{#media_dlg.list}</label></td>
55 - <td id="linklistcontainer">&nbsp;</td> 54 + <td id="linklistcontainer"><select id="linklist"><option value=""></option></select></td>
56 </tr> 55 </tr>
57 <tr> 56 <tr>
58 <td><label for="width">{#media_dlg.size}</label></td> 57 <td><label for="width">{#media_dlg.size}</label></td>
@@ -260,8 +259,7 @@ @@ -260,8 +259,7 @@
260 <td><label for="flv_defaultvolume">{#media_dlg.flv_defaultvolume}</label></td> 259 <td><label for="flv_defaultvolume">{#media_dlg.flv_defaultvolume}</label></td>
261 <td><input type="text" id="flv_defaultvolume" name="flv_defaultvolume" onchange="generatePreview();" /></td> 260 <td><input type="text" id="flv_defaultvolume" name="flv_defaultvolume" onchange="generatePreview();" /></td>
262 261
263 - <td><label for="flv_starttime">{#media_dlg.flv_starttime}</label></td>  
264 - <td><input type="text" id="flv_starttime" name="flv_starttime" onchange="generatePreview();" /></td> 262 +
265 </tr> 263 </tr>
266 264
267 <tr> 265 <tr>
public/javascripts/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.Nonbreaking',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceNonBreaking',function(){ed.execCommand('mceInsertContent',false,(ed.plugins.visualchars&&ed.plugins.visualchars.state)?'<span class="mceItemHidden mceVisualNbsp">&middot;</span>':'&nbsp;');});ed.addButton('nonbreaking',{title:'nonbreaking.nonbreaking_desc',cmd:'mceNonBreaking'});if(ed.getParam('nonbreaking_force_tab')){ed.onKeyDown.add(function(ed,e){if(tinymce.isIE&&e.keyCode==9){ed.execCommand('mceNonBreaking');ed.execCommand('mceNonBreaking');ed.execCommand('mceNonBreaking');tinymce.dom.Event.cancel(e);}});}},getInfo:function(){return{longname:'Nonbreaking space',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('nonbreaking',tinymce.plugins.Nonbreaking);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'<span class="mceItemHidden mceVisualNbsp">&middot;</span>':"&nbsp;")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js
1 -(function(){var Event=tinymce.dom.Event;tinymce.create('tinymce.plugins.NonEditablePlugin',{init:function(ed,url){var t=this,editClass,nonEditClass;t.editor=ed;editClass=ed.getParam("noneditable_editable_class","mceEditable");nonEditClass=ed.getParam("noneditable_noneditable_class","mceNonEditable");ed.onNodeChange.addToTop(function(ed,cm,n){var sc,ec;sc=ed.dom.getParent(ed.selection.getStart(),function(n){return ed.dom.hasClass(n,nonEditClass);});ec=ed.dom.getParent(ed.selection.getEnd(),function(n){return ed.dom.hasClass(n,nonEditClass);});if(sc||ec){t._setDisabled(1);return false;}else t._setDisabled(0);});},getInfo:function(){return{longname:'Non editable elements',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_block:function(ed,e){var k=e.keyCode;if((k>32&&k<41)||(k>111&&k<124))return;return Event.cancel(e);},_setDisabled:function(s){var t=this,ed=t.editor;tinymce.each(ed.controlManager.controls,function(c){c.setDisabled(s);});if(s!==t.disabled){if(s){ed.onKeyDown.addToTop(t._block);ed.onKeyPress.addToTop(t._block);ed.onKeyUp.addToTop(t._block);ed.onPaste.addToTop(t._block);}else{ed.onKeyDown.remove(t._block);ed.onKeyPress.remove(t._block);ed.onKeyUp.remove(t._block);ed.onPaste.remove(t._block);}t.disabled=s;}}});tinymce.PluginManager.add('noneditable',tinymce.plugins.NonEditablePlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js
1 -(function(){tinymce.create('tinymce.plugins.PageBreakPlugin',{init:function(ed,url){var pb='<img src="'+url+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',cls='mcePageBreak',sep=ed.getParam('pagebreak_separator','<!-- pagebreak -->'),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a;}),'g');ed.addCommand('mcePageBreak',function(){ed.execCommand('mceInsertContent',0,pb);});ed.addButton('pagebreak',{title:'pagebreak.desc',cmd:cls});ed.onInit.add(function(){if(ed.settings.content_css!==false)ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='pagebreak';});}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e);});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('pagebreak',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls));});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb);});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/<img[^>]+>/g,function(im){if(im.indexOf('class="mcePageBreak')!==-1)im=sep;return im;});});},getInfo:function(){return{longname:'PageBreak',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('pagebreak',tinymce.plugins.PageBreakPlugin);})();  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='<img src="'+d+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',a="mcePageBreak",c=b.getParam("pagebreak_separator","<!-- pagebreak -->"),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.settings.content_css!==false){b.dom.loadCSS(d+"/css/content.css")}if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/<img[^>]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})();
3 \ No newline at end of file 3 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/blank.htm
@@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
1 -<html xmlns="http://www.w3.org/1999/xhtml">  
2 -<head>  
3 -<title>blank_page</title>  
4 -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
5 -<link href="css/blank.css" rel="stylesheet" type="text/css" />  
6 -<base target="_self" />  
7 -<script type="text/javascript">  
8 -function init() {  
9 - if (parent.tinymce.isIE)  
10 - document.body.contentEditable = true;  
11 - else  
12 - document.designMode = 'on';  
13 -  
14 - parent.initIframe(document);  
15 - window.focus();  
16 -}  
17 -</script>  
18 -</head>  
19 -<body onload="init();">  
20 -  
21 -</body>  
22 -</html>  
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/css/blank.css
@@ -1,14 +0,0 @@ @@ -1,14 +0,0 @@
1 -html, body {height:98%}  
2 -body {  
3 -background-color: #FFFFFF;  
4 -font-family: Verdana, Arial, Helvetica, sans-serif;  
5 -font-size: 10px;  
6 -scrollbar-3dlight-color: #F0F0EE;  
7 -scrollbar-arrow-color: #676662;  
8 -scrollbar-base-color: #F0F0EE;  
9 -scrollbar-darkshadow-color: #DDDDDD;  
10 -scrollbar-face-color: #E0E0DD;  
11 -scrollbar-highlight-color: #F0F0EE;  
12 -scrollbar-shadow-color: #F0F0EE;  
13 -scrollbar-track-color: #F5F5F5;  
14 -}  
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/css/pasteword.css
@@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
1 -.sourceIframe {  
2 - border: 1px solid #808080;  
3 -}  
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js
1 -(function(){var Event=tinymce.dom.Event;tinymce.create('tinymce.plugins.PastePlugin',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mcePasteText',function(ui,v){if(ui){if((ed.getParam('paste_use_dialog',true))||(!tinymce.isIE)){ed.windowManager.open({file:url+'/pastetext.htm',width:450,height:400,inline:1},{plugin_url:url});}else t._insertText(clipboardData.getData("Text"),true);}else t._insertText(v.html,v.linebreaks);});ed.addCommand('mcePasteWord',function(ui,v){if(ui){if((ed.getParam('paste_use_dialog',true))||(!tinymce.isIE)){ed.windowManager.open({file:url+'/pasteword.htm',width:450,height:400,inline:1},{plugin_url:url});}else t._insertText(t._clipboardHTML());}else t._insertWordContent(v);});ed.addCommand('mceSelectAll',function(){ed.execCommand('selectall');});ed.addButton('pastetext',{title:'paste.paste_text_desc',cmd:'mcePasteText',ui:true});ed.addButton('pasteword',{title:'paste.paste_word_desc',cmd:'mcePasteWord',ui:true});ed.addButton('selectall',{title:'paste.selectall_desc',cmd:'mceSelectAll'});if(ed.getParam("paste_auto_cleanup_on_paste",false)){ed.onPaste.add(function(ed,e){return t._handlePasteEvent(e)});}if(!tinymce.isIE&&ed.getParam("paste_auto_cleanup_on_paste",false)){ed.onKeyDown.add(function(ed,e){if(e.ctrlKey&&e.keyCode==86){window.setTimeout(function(){ed.execCommand("mcePasteWord",true);},1);Event.cancel(e);}});}},getInfo:function(){return{longname:'Paste text/word',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_handlePasteEvent:function(e){var html=this._clipboardHTML(),ed=this.editor,sel=ed.selection,r;if(ed&&(r=sel.getRng())&&r.text.length>0)ed.execCommand('delete');if(html&&html.length>0)ed.execCommand('mcePasteWord',false,html);return Event.cancel(e);},_insertText:function(content,bLinebreaks){content=this.editor.dom.encode(content);if(content&&content.length>0){if(!this.editor.selection.isCollapsed())this.editor.execCommand("Delete");if(bLinebreaks){if(this.editor.getParam("paste_create_paragraphs",true)){var rl=this.editor.getParam("paste_replace_list",'\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i<rl.length;i+=2)content=content.replace(new RegExp(rl[i],'gi'),rl[i+1]);content=content.replace(/\r\n\r\n/g,'</p><p>');content=content.replace(/\r\r/g,'</p><p>');content=content.replace(/\n\n/g,'</p><p>');if((pos=content.indexOf('</p><p>'))!=-1){this.editor.execCommand("Delete");var node=this.editor.selection.getNode();var breakElms=[];do{if(node.nodeType==1){if(node.nodeName=="TD"||node.nodeName=="BODY")break;breakElms[breakElms.length]=node;}}while(node=node.parentNode);var before="",after="</p>";before+=content.substring(0,pos);for(var i=0;i<breakElms.length;i++){before+="</"+breakElms[i].nodeName+">";after+="<"+breakElms[(breakElms.length-1)-i].nodeName+">";}before+="<p>";content=before+content.substring(pos+7)+after;}}if(this.editor.getParam("paste_create_linebreaks",true)){content=content.replace(/\r\n/g,'<br />');content=content.replace(/\r/g,'<br />');content=content.replace(/\n/g,'<br />');}}this.editor.execCommand("mceInsertRawHTML",false,content);}},_insertWordContent:function(content){var t=this,ed=t.editor;if(content&&content.length>0){var bull=String.fromCharCode(8226);var middot=String.fromCharCode(183);if(ed.getParam('paste_insert_word_content_callback'))content=ed.execCallback('paste_insert_word_content_callback','before',content);var rl=ed.getParam("paste_replace_list",'\u2122,<sup>TM</sup>,\u2026,...,\x93|\x94|\u201c|\u201d,",\x60|\x91|\x92|\u2018|\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');for(var i=0;i<rl.length;i+=2)content=content.replace(new RegExp(rl[i],'gi'),rl[i+1]);if(this.editor.getParam("paste_convert_headers_to_strong",false)){content=content.replace(new RegExp('<p class=MsoHeading.*?>(.*?)<\/p>','gi'),'<p><b>$1</b></p>');}content=content.replace(new RegExp('tab-stops: list [0-9]+.0pt">','gi'),'">'+"--list--");content=content.replace(new RegExp(bull+"(.*?)<BR>","gi"),"<p>"+middot+"$1</p>");content=content.replace(new RegExp('<SPAN style="mso-list: Ignore">','gi'),"<span>"+bull);content=content.replace(/<o:p><\/o:p>/gi,"");content=content.replace(new RegExp('<br style="page-break-before: always;.*>','gi'),'-- page break --');content=content.replace(/<!--([\s\S]*?)-->|<style>[\s\S]*?<\/style>/g,"");content=content.replace(/<(meta|link)[^>]+>/g,"");if(this.editor.getParam("paste_remove_spans",true))content=content.replace(/<\/?span[^>]*>/gi,"");if(this.editor.getParam("paste_remove_styles",true))content=content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)','gi'),"<$1$3");content=content.replace(/<\/?font[^>]*>/gi,"");switch(this.editor.getParam("paste_strip_class_attributes","all")){case"all":content=content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi,"<$1$3");break;case"mso":content=content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)','gi'),"<$1$3");break;}content=content.replace(new RegExp('href="?'+this._reEscape(""+document.location)+'','gi'),'href="'+this.editor.documentBaseURI.getURI());content=content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");content=content.replace(/<\\?\?xml[^>]*>/gi,"");content=content.replace(/<\/?\w+:[^>]*>/gi,"");content=content.replace(/-- page break --\s*<p>&nbsp;<\/p>/gi,"");content=content.replace(/-- page break --/gi,"");if(!this.editor.getParam('force_p_newlines')){content=content.replace('','','gi');content=content.replace('</p>','<br /><br />','gi');}if(!tinymce.isIE&&!this.editor.getParam('force_p_newlines')){content=content.replace(/<\/?p[^>]*>/gi,"");}content=content.replace(/<\/?div[^>]*>/gi,"");if(this.editor.getParam("paste_convert_middot_lists",true)){var div=ed.dom.create("div",null,content);var className=this.editor.getParam("paste_unindented_list_class","unIndentedList");while(this._convertMiddots(div,"--list--"));while(this._convertMiddots(div,middot,className));while(this._convertMiddots(div,bull));content=div.innerHTML;}if(this.editor.getParam("paste_convert_headers_to_strong",false)){content=content.replace(/<h[1-6]>&nbsp;<\/h[1-6]>/gi,'<p>&nbsp;&nbsp;</p>');content=content.replace(/<h[1-6]>/gi,'<p><b>');content=content.replace(/<\/h[1-6]>/gi,'</b></p>');content=content.replace(/<b>&nbsp;<\/b>/gi,'<b>&nbsp;&nbsp;</b>');content=content.replace(/^(&nbsp;)*/gi,'');}content=content.replace(/--list--/gi,"");if(ed.getParam('paste_insert_word_content_callback'))content=ed.execCallback('paste_insert_word_content_callback','after',content);this.editor.execCommand("mceInsertContent",false,content);if(this.editor.getParam('paste_force_cleanup_wordpaste',true)){var ed=this.editor;window.setTimeout(function(){ed.execCommand("mceCleanup");},1);}}},_reEscape:function(s){var l="?.\\*[](){}+^$:";var o="";for(var i=0;i<s.length;i++){var c=s.charAt(i);if(l.indexOf(c)!=-1)o+='\\'+c;else o+=c;}return o;},_convertMiddots:function(div,search,class_name){var ed=this.editor,mdot=String.fromCharCode(183),bull=String.fromCharCode(8226);var nodes,prevul,i,p,ul,li,np,cp,li;nodes=div.getElementsByTagName("p");for(i=0;i<nodes.length;i++){p=nodes[i];if(p.innerHTML.indexOf(search)==0){ul=ed.dom.create("ul");if(class_name)ul.className=class_name;li=ed.dom.create("li");li.innerHTML=p.innerHTML.replace(new RegExp(''+mdot+'|'+bull+'|--list--|&nbsp;',"gi"),'');ul.appendChild(li);np=p.nextSibling;while(np){if(np.nodeType==3&&new RegExp('^\\s$','m').test(np.nodeValue)){np=np.nextSibling;continue;}if(search==mdot){if(np.nodeType==1&&new RegExp('^o(\\s+|&nbsp;)').test(np.innerHTML)){if(!prevul){prevul=ul;ul=ed.dom.create("ul");prevul.appendChild(ul);}np.innerHTML=np.innerHTML.replace(/^o/,'');}else{if(prevul){ul=prevul;prevul=null;}if(np.nodeType!=1||np.innerHTML.indexOf(search)!=0)break;}}else{if(np.nodeType!=1||np.innerHTML.indexOf(search)!=0)break;}cp=np.nextSibling;li=ed.dom.create("li");li.innerHTML=np.innerHTML.replace(new RegExp(''+mdot+'|'+bull+'|--list--|&nbsp;',"gi"),'');np.parentNode.removeChild(np);ul.appendChild(li);np=cp;}p.parentNode.replaceChild(ul,p);return true;}}return false;},_clipboardHTML:function(){var div=document.getElementById('_TinyMCE_clipboardHTML');if(!div){var div=document.createElement('DIV');div.id='_TinyMCE_clipboardHTML';with(div.style){visibility='hidden';overflow='hidden';position='absolute';width=1;height=1;}document.body.appendChild(div);}div.innerHTML='';var rng=document.body.createTextRange();rng.moveToElementText(div);rng.execCommand('Paste');var html=div.innerHTML;div.innerHTML='';return html;}});tinymce.PluginManager.add('paste',tinymce.plugins.PastePlugin);})(); 1 +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.PastePlugin",{init:function(c,d){var e=this,b;e.editor=c;e.url=d;e.onPreProcess=new tinymce.util.Dispatcher(e);e.onPostProcess=new tinymce.util.Dispatcher(e);e.onPreProcess.add(e._preProcess);e.onPostProcess.add(e._postProcess);e.onPreProcess.add(function(h,i){c.execCallback("paste_preprocess",h,i)});e.onPostProcess.add(function(h,i){c.execCallback("paste_postprocess",h,i)});function g(i){var h=c.dom;e.onPreProcess.dispatch(e,i);i.node=h.create("div",0,i.content);e.onPostProcess.dispatch(e,i);i.content=c.serializer.serialize(i.node,{getInner:1});if(/<(p|h[1-6]|ul|ol)/.test(i.content)){e._insertBlockContent(c,h,i.content)}else{e._insert(i.content)}}c.addCommand("mceInsertClipboardContent",function(h,i){g(i)});function f(l){var p,k,i,j=c.selection,o=c.dom,h=c.getBody(),m;if(o.get("_mcePaste")){return}p=o.add(h,"div",{id:"_mcePaste"},"\uFEFF");if(h!=c.getDoc().body){m=o.getPos(c.selection.getStart(),h).y}else{m=h.scrollTop}o.setStyles(p,{position:"absolute",left:-10000,top:m,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){i=o.doc.body.createTextRange();i.moveToElementText(p);i.execCommand("Paste");o.remove(p);if(p.innerHTML==="\uFEFF"){c.execCommand("mcePasteWord");l.preventDefault();return}g({content:p.innerHTML});return tinymce.dom.Event.cancel(l)}else{k=c.selection.getRng();p=p.firstChild;i=c.getDoc().createRange();i.setStart(p,0);i.setEnd(p,1);j.setRng(i);window.setTimeout(function(){var q="",n=o.select("div[id=_mcePaste]");a(n,function(r){q+=(o.select("> span.Apple-style-span div",r)[0]||o.select("> span.Apple-style-span",r)[0]||r).innerHTML});a(n,function(r){o.remove(r)});if(k){j.setRng(k)}g({content:q})},0)}}if(c.getParam("paste_auto_cleanup_on_paste",true)){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){c.onKeyDown.add(function(h,i){if(((tinymce.isMac?i.metaKey:i.ctrlKey)&&i.keyCode==86)||(i.shiftKey&&i.keyCode==45)){f(i)}})}else{c.onPaste.addToTop(function(h,i){return f(i)})}}if(c.getParam("paste_block_drop")){c.onInit.add(function(){c.dom.bind(c.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(h){h.preventDefault();h.stopPropagation();return false})})}e._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(d,i){var b=this.editor,c=i.content,g,f;function g(h){a(h,function(j){if(j.constructor==RegExp){c=c.replace(j,"")}else{c=c.replace(j[0],j[1])}})}if(/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(c)||i.wordContent){i.wordContent=true;g([/^\s*(&nbsp;)+/g,/(&nbsp;|<br[^>]*>)+\s*$/g]);if(b.getParam("paste_convert_middot_lists",true)){g([[/<!--\[if !supportLists\]-->/gi,"$&__MCE_ITEM__"],[/(<span[^>]+:\s*symbol[^>]+>)/gi,"$1__MCE_ITEM__"],[/(<span[^>]+mso-list:[^>]+>)/gi,"$1__MCE_ITEM__"]])}g([/<!--[\s\S]+?-->/gi,/<\/?(img|font|meta|link|style|div|v:\w+)[^>]*>/gi,/<\\?\?xml[^>]*>/gi,/<\/?o:[^>]*>/gi,/ (id|name|language|type|on\w+|v:\w+)=\"([^\"]*)\"/gi,/ (id|name|language|type|on\w+|v:\w+)=(\w+)/gi,[/<(\/?)s>/gi,"<$1strike>"],/<script[^>]+>[\s\S]*?<\/script>/gi,[/&nbsp;/g,"\u00a0"]]);if(!b.getParam("paste_retain_style_properties")){g([/<\/?(span)[^>]*>/gi])}}f=b.getParam("paste_strip_class_attributes");if(f!="none"){function e(l,h){var k,j="";if(f=="all"){return""}h=tinymce.explode(h," ");for(k=h.length-1;k>=0;k--){if(!/^(Mso)/i.test(h[k])){j+=(!j?"":" ")+h[k]}}return' class="'+j+'"'}g([[/ class=\"([^\"]*)\"/gi,e],[/ class=(\w+)/gi,e]])}if(b.getParam("paste_remove_spans")){g([/<\/?(span)[^>]*>/gi])}i.content=c},_postProcess:function(e,g){var d=this,c=d.editor,f=c.dom,b;if(g.wordContent){a(f.select("a",g.node),function(h){if(!h.href||h.href.indexOf("#_Toc")!=-1){f.remove(h,1)}});if(d.editor.getParam("paste_convert_middot_lists",true)){d._convertLists(e,g)}b=c.getParam("paste_retain_style_properties");if(tinymce.is(b,"string")){b=tinymce.explode(b)}a(f.select("*",g.node),function(l){var m={},j=0,k,n,h;if(b){for(k=0;k<b.length;k++){n=b[k];h=f.getStyle(l,n);if(h){m[n]=h;j++}}}f.setAttrib(l,"style","");if(b&&j>0){f.setStyles(l,m)}else{if(l.nodeName=="SPAN"&&!l.className){f.remove(l,true)}}})}if(c.getParam("paste_remove_styles")||(c.getParam("paste_remove_styles_if_webkit")&&tinymce.isWebKit)){a(f.select("*[style]",g.node),function(h){h.removeAttribute("style");h.removeAttribute("mce_style")})}else{if(tinymce.isWebKit){a(f.select("*",g.node),function(h){h.removeAttribute("mce_style")})}}},_convertLists:function(e,c){var g=e.editor.dom,f,j,b=-1,d,k=[],i,h;a(g.select("p",c.node),function(r){var n,s="",q,o,l,m;for(n=r.firstChild;n&&n.nodeType==3;n=n.nextSibling){s+=n.nodeValue}s=r.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/&nbsp;/g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(s)){q="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(s)){q="ol"}if(q){d=parseFloat(r.style.marginLeft||0);if(d>b){k.push(d)}if(!f||q!=i){f=g.create(q);g.insertAfter(f,r)}else{if(d>b){f=j.appendChild(g.create(q))}else{if(d<b){l=tinymce.inArray(k,d);m=g.getParents(f.parentNode,q);f=m[m.length-1-l]||f}}}a(g.select("span",r),function(t){var p=t.innerHTML.replace(/<\/?\w+[^>]*>/gi,"");if(q=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(p)){g.remove(t)}else{if(/^[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(p)){g.remove(t)}}});o=r.innerHTML;if(q=="ul"){o=r.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*(&nbsp;|\u00a0)+\s*/,"")}else{o=r.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/,"")}j=f.appendChild(g.create("li",0,o));g.remove(r);b=d;i=q}else{f=b=0}});h=c.node.innerHTML;if(h.indexOf("__MCE_ITEM__")!=-1){c.node.innerHTML=h.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(h,e,i){var c,g,d=h.selection,m,j,b,k,f;function l(p){var o;if(tinymce.isIE){o=h.getDoc().body.createTextRange();o.moveToElementText(p);o.collapse(false);o.select()}else{d.select(p,1);d.collapse(false)}}this._insert('<span id="_marker">&nbsp;</span>',1);g=e.get("_marker");c=e.getParent(g,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(c&&!/TD|TH/.test(c.nodeName)){g=e.split(c,g);a(e.create("div",0,i).childNodes,function(o){m=g.parentNode.insertBefore(o.cloneNode(true),g)});l(m)}else{e.setOuterHTML(g,i);d.select(h.getBody(),1);d.collapse(0)}e.remove("_marker");j=d.getStart();b=e.getViewPort(h.getWin());k=h.dom.getPos(j).y;f=j.clientHeight;if(k<b.y||k+f>b.y+b.h){h.getDoc().body.scrollTop=k<b.y?k:k-b.h+25}},_insert:function(d,b){var c=this.editor;if(!c.selection.isCollapsed()){c.getDoc().execCommand("Delete",false,null)}c.execCommand(tinymce.isGecko?"insertHTML":"mceInsertContent",false,d,{skip_undo:b})},_legacySupport:function(){var c=this,b=c.editor;a(["mcePasteText","mcePasteWord"],function(d){b.addCommand(d,function(){b.windowManager.open({file:c.url+(d=="mcePasteText"?"/pastetext.htm":"/pasteword.htm"),width:parseInt(b.getParam("paste_dialog_width","450")),height:parseInt(b.getParam("paste_dialog_height","400")),inline:1})})});b.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});b.addButton("pasteword",{title:"paste.paste_word_desc",cmd:"mcePasteWord"});b.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"})}});tinymce.PluginManager.add("paste",tinymce.plugins.PastePlugin)})();
2 \ No newline at end of file 2 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
1 /** 1 /**
2 - * $Id: editor_plugin_src.js 919 2008-09-08 20:31:23Z spocke $ 2 + * $Id: editor_plugin_src.js 1225 2009-09-07 19:06:19Z spocke $
3 * 3 *
4 * @author Moxiecode 4 * @author Moxiecode
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. 5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
6 */ 6 */
7 7
8 (function() { 8 (function() {
9 - var Event = tinymce.dom.Event; 9 + var each = tinymce.each;
10 10
11 tinymce.create('tinymce.plugins.PastePlugin', { 11 tinymce.create('tinymce.plugins.PastePlugin', {
12 init : function(ed, url) { 12 init : function(ed, url) {
13 - var t = this;  
14 -  
15 - t.editor = ed;  
16 -  
17 - // Register commands  
18 - ed.addCommand('mcePasteText', function(ui, v) {  
19 - if (ui) {  
20 - if ((ed.getParam('paste_use_dialog', true)) || (!tinymce.isIE)) {  
21 - ed.windowManager.open({  
22 - file : url + '/pastetext.htm',  
23 - width : 450,  
24 - height : 400,  
25 - inline : 1  
26 - }, {  
27 - plugin_url : url  
28 - });  
29 - } else  
30 - t._insertText(clipboardData.getData("Text"), true);  
31 - } else  
32 - t._insertText(v.html, v.linebreaks); 13 + var t = this, cb;
  14 +
  15 + t.editor = ed;
  16 + t.url = url;
  17 +
  18 + // Setup plugin events
  19 + t.onPreProcess = new tinymce.util.Dispatcher(t);
  20 + t.onPostProcess = new tinymce.util.Dispatcher(t);
  21 +
  22 + // Register default handlers
  23 + t.onPreProcess.add(t._preProcess);
  24 + t.onPostProcess.add(t._postProcess);
  25 +
  26 + // Register optional preprocess handler
  27 + t.onPreProcess.add(function(pl, o) {
  28 + ed.execCallback('paste_preprocess', pl, o);
33 }); 29 });
34 30
35 - ed.addCommand('mcePasteWord', function(ui, v) {  
36 - if (ui) {  
37 - if ((ed.getParam('paste_use_dialog', true)) || (!tinymce.isIE)) {  
38 - ed.windowManager.open({  
39 - file : url + '/pasteword.htm',  
40 - width : 450,  
41 - height : 400,  
42 - inline : 1  
43 - }, {  
44 - plugin_url : url  
45 - });  
46 - } else  
47 - t._insertText(t._clipboardHTML());  
48 - } else  
49 - t._insertWordContent(v); 31 + // Register optional postprocess
  32 + t.onPostProcess.add(function(pl, o) {
  33 + ed.execCallback('paste_postprocess', pl, o);
50 }); 34 });
51 35
52 - ed.addCommand('mceSelectAll', function() {  
53 - ed.execCommand('selectall'); 36 + // This function executes the process handlers and inserts the contents
  37 + function process(o) {
  38 + var dom = ed.dom;
  39 +
  40 + // Execute pre process handlers
  41 + t.onPreProcess.dispatch(t, o);
  42 +
  43 + // Create DOM structure
  44 + o.node = dom.create('div', 0, o.content);
  45 +
  46 + // Execute post process handlers
  47 + t.onPostProcess.dispatch(t, o);
  48 +
  49 + // Serialize content
  50 + o.content = ed.serializer.serialize(o.node, {getInner : 1});
  51 +
  52 + // Insert cleaned content. We need to handle insertion of contents containing block elements separately
  53 + if (/<(p|h[1-6]|ul|ol)/.test(o.content))
  54 + t._insertBlockContent(ed, dom, o.content);
  55 + else
  56 + t._insert(o.content);
  57 + };
  58 +
  59 + // Add command for external usage
  60 + ed.addCommand('mceInsertClipboardContent', function(u, o) {
  61 + process(o);
54 }); 62 });
55 63
56 - // Register buttons  
57 - ed.addButton('pastetext', {title : 'paste.paste_text_desc', cmd : 'mcePasteText', ui : true});  
58 - ed.addButton('pasteword', {title : 'paste.paste_word_desc', cmd : 'mcePasteWord', ui : true});  
59 - ed.addButton('selectall', {title : 'paste.selectall_desc', cmd : 'mceSelectAll'}); 64 + // This function grabs the contents from the clipboard by adding a
  65 + // hidden div and placing the caret inside it and after the browser paste
  66 + // is done it grabs that contents and processes that
  67 + function grabContent(e) {
  68 + var n, or, rng, sel = ed.selection, dom = ed.dom, body = ed.getBody(), posY;
  69 +
  70 + if (dom.get('_mcePaste'))
  71 + return;
  72 +
  73 + // Create container to paste into
  74 + n = dom.add(body, 'div', {id : '_mcePaste'}, '\uFEFF');
60 75
61 - if (ed.getParam("paste_auto_cleanup_on_paste", false)) {  
62 - ed.onPaste.add(function(ed, e) {  
63 - return t._handlePasteEvent(e) 76 + // If contentEditable mode we need to find out the position of the closest element
  77 + if (body != ed.getDoc().body)
  78 + posY = dom.getPos(ed.selection.getStart(), body).y;
  79 + else
  80 + posY = body.scrollTop;
  81 +
  82 + // Styles needs to be applied after the element is added to the document since WebKit will otherwise remove all styles
  83 + dom.setStyles(n, {
  84 + position : 'absolute',
  85 + left : -10000,
  86 + top : posY,
  87 + width : 1,
  88 + height : 1,
  89 + overflow : 'hidden'
64 }); 90 });
  91 +
  92 + if (tinymce.isIE) {
  93 + // Select the container
  94 + rng = dom.doc.body.createTextRange();
  95 + rng.moveToElementText(n);
  96 + rng.execCommand('Paste');
  97 +
  98 + // Remove container
  99 + dom.remove(n);
  100 +
  101 + // Check if the contents was changed, if it wasn't then clipboard extraction failed probably due
  102 + // to IE security settings so we pass the junk though better than nothing right
  103 + if (n.innerHTML === '\uFEFF') {
  104 + ed.execCommand('mcePasteWord');
  105 + e.preventDefault();
  106 + return;
  107 + }
  108 +
  109 + // Process contents
  110 + process({content : n.innerHTML});
  111 +
  112 + // Block the real paste event
  113 + return tinymce.dom.Event.cancel(e);
  114 + } else {
  115 + or = ed.selection.getRng();
  116 +
  117 + // Move caret into hidden div
  118 + n = n.firstChild;
  119 + rng = ed.getDoc().createRange();
  120 + rng.setStart(n, 0);
  121 + rng.setEnd(n, 1);
  122 + sel.setRng(rng);
  123 +
  124 + // Wait a while and grab the pasted contents
  125 + window.setTimeout(function() {
  126 + var h = '', nl = dom.select('div[id=_mcePaste]');
  127 +
  128 + // WebKit will split the div into multiple ones so this will loop through then all and join them to get the whole HTML string
  129 + each(nl, function(n) {
  130 + h += (dom.select('> span.Apple-style-span div', n)[0] || dom.select('> span.Apple-style-span', n)[0] || n).innerHTML;
  131 + });
  132 +
  133 + // Remove the nodes
  134 + each(nl, function(n) {
  135 + dom.remove(n);
  136 + });
  137 +
  138 + // Restore the old selection
  139 + if (or)
  140 + sel.setRng(or);
  141 +
  142 + process({content : h});
  143 + }, 0);
  144 + }
  145 + };
  146 +
  147 + // Check if we should use the new auto process method
  148 + if (ed.getParam('paste_auto_cleanup_on_paste', true)) {
  149 + // Is it's Opera or older FF use key handler
  150 + if (tinymce.isOpera || /Firefox\/2/.test(navigator.userAgent)) {
  151 + ed.onKeyDown.add(function(ed, e) {
  152 + if (((tinymce.isMac ? e.metaKey : e.ctrlKey) && e.keyCode == 86) || (e.shiftKey && e.keyCode == 45))
  153 + grabContent(e);
  154 + });
  155 + } else {
  156 + // Grab contents on paste event on Gecko and WebKit
  157 + ed.onPaste.addToTop(function(ed, e) {
  158 + return grabContent(e);
  159 + });
  160 + }
65 } 161 }
66 162
67 - if (!tinymce.isIE && ed.getParam("paste_auto_cleanup_on_paste", false)) {  
68 - // Force paste dialog if non IE browser  
69 - ed.onKeyDown.add(function(ed, e) {  
70 - if (e.ctrlKey && e.keyCode == 86) {  
71 - window.setTimeout(function() {  
72 - ed.execCommand("mcePasteText", true);  
73 - }, 1); 163 + // Block all drag/drop events
  164 + if (ed.getParam('paste_block_drop')) {
  165 + ed.onInit.add(function() {
  166 + ed.dom.bind(ed.getBody(), ['dragend', 'dragover', 'draggesture', 'dragdrop', 'drop', 'drag'], function(e) {
  167 + e.preventDefault();
  168 + e.stopPropagation();
74 169
75 - Event.cancel(e);  
76 - } 170 + return false;
  171 + });
77 }); 172 });
78 } 173 }
  174 +
  175 + // Add legacy support
  176 + t._legacySupport();
79 }, 177 },
80 178
81 getInfo : function() { 179 getInfo : function() {
@@ -88,304 +186,343 @@ @@ -88,304 +186,343 @@
88 }; 186 };
89 }, 187 },
90 188
91 - // Private methods  
92 -  
93 - _handlePasteEvent : function(e) {  
94 - var html = this._clipboardHTML(), ed = this.editor, sel = ed.selection, r; 189 + _preProcess : function(pl, o) {
  190 + var ed = this.editor, h = o.content, process, stripClass;
95 191
96 - // Removes italic, strong etc, the if was needed due to bug #1437114  
97 - if (ed && (r = sel.getRng()) && r.text.length > 0)  
98 - ed.execCommand('delete'); 192 + //console.log('Before preprocess:' + o.content);
99 193
100 - if (html && html.length > 0)  
101 - ed.execCommand('mcePasteWord', false, html);  
102 -  
103 - return Event.cancel(e);  
104 - }, 194 + function process(items) {
  195 + each(items, function(v) {
  196 + // Remove or replace
  197 + if (v.constructor == RegExp)
  198 + h = h.replace(v, '');
  199 + else
  200 + h = h.replace(v[0], v[1]);
  201 + });
  202 + };
105 203
106 - _insertText : function(content, bLinebreaks) {  
107 - content = this.editor.dom.encode(content);  
108 -  
109 - if (content && content.length > 0) {  
110 - // Delete any highlighted text before pasting  
111 - if (!this.editor.selection.isCollapsed())  
112 - this.editor.execCommand("Delete");  
113 -  
114 - if (bLinebreaks) {  
115 - // Special paragraph treatment  
116 - if (this.editor.getParam("paste_create_paragraphs", true)) {  
117 - var rl = this.editor.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');  
118 - for (var i=0; i<rl.length; i+=2)  
119 - content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);  
120 -  
121 - content = content.replace(/\r\n\r\n/g, '</p><p>');  
122 - content = content.replace(/\r\r/g, '</p><p>');  
123 - content = content.replace(/\n\n/g, '</p><p>');  
124 -  
125 - // Has paragraphs  
126 - if ((pos = content.indexOf('</p><p>')) != -1) {  
127 - this.editor.execCommand("Delete");  
128 -  
129 - var node = this.editor.selection.getNode();  
130 -  
131 - // Get list of elements to break  
132 - var breakElms = [];  
133 -  
134 - do {  
135 - if (node.nodeType == 1) {  
136 - // Don't break tables and break at body  
137 - if (node.nodeName == "TD" || node.nodeName == "BODY")  
138 - break;  
139 -  
140 - breakElms[breakElms.length] = node;  
141 - }  
142 - } while(node = node.parentNode);  
143 -  
144 - var before = "", after = "</p>";  
145 - before += content.substring(0, pos);  
146 -  
147 - for (var i=0; i<breakElms.length; i++) {  
148 - before += "</" + breakElms[i].nodeName + ">";  
149 - after += "<" + breakElms[(breakElms.length-1)-i].nodeName + ">";  
150 - }  
151 -  
152 - before += "<p>";  
153 - content = before + content.substring(pos+7) + after;  
154 - }  
155 - }  
156 -  
157 - if (this.editor.getParam("paste_create_linebreaks", true)) {  
158 - content = content.replace(/\r\n/g, '<br />');  
159 - content = content.replace(/\r/g, '<br />');  
160 - content = content.replace(/\n/g, '<br />');  
161 - }  
162 - } 204 + // Detect Word content and process it more aggressive
  205 + if (/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(h) || o.wordContent) {
  206 + o.wordContent = true; // Mark the pasted contents as word specific content
  207 + //console.log('Word contents detected.');
  208 +
  209 + // Process away some basic content
  210 + process([
  211 + /^\s*(&nbsp;)+/g, // nbsp entities at the start of contents
  212 + /(&nbsp;|<br[^>]*>)+\s*$/g // nbsp entities at the end of contents
  213 + ]);
  214 +
  215 + if (ed.getParam('paste_convert_middot_lists', true)) {
  216 + process([
  217 + [/<!--\[if !supportLists\]-->/gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker
  218 + [/(<span[^>]+:\s*symbol[^>]+>)/gi, '$1__MCE_ITEM__'], // Convert symbol spans to list items
  219 + [/(<span[^>]+mso-list:[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list to item marker
  220 + ]);
  221 + }
163 222
164 - this.editor.execCommand("mceInsertRawHTML", false, content); 223 + process([
  224 + /<!--[\s\S]+?-->/gi, // Word comments
  225 + /<\/?(img|font|meta|link|style|div|v:\w+)[^>]*>/gi, // Remove some tags including VML content
  226 + /<\\?\?xml[^>]*>/gi, // XML namespace declarations
  227 + /<\/?o:[^>]*>/gi, // MS namespaced elements <o:tag>
  228 + / (id|name|language|type|on\w+|v:\w+)=\"([^\"]*)\"/gi, // on.., class, style and language attributes with quotes
  229 + / (id|name|language|type|on\w+|v:\w+)=(\w+)/gi, // on.., class, style and language attributes without quotes (IE)
  230 + [/<(\/?)s>/gi, '<$1strike>'], // Convert <s> into <strike> for line-though
  231 + /<script[^>]+>[\s\S]*?<\/script>/gi, // All scripts elements for msoShowComment for example
  232 + [/&nbsp;/g, '\u00a0'] // Replace nsbp entites to char since it's easier to handle
  233 + ]);
  234 +
  235 + // Remove all spans if no styles is to be retained
  236 + if (!ed.getParam('paste_retain_style_properties')) {
  237 + process([
  238 + /<\/?(span)[^>]*>/gi
  239 + ]);
  240 + }
165 } 241 }
166 - },  
167 242
168 - _insertWordContent : function(content) {  
169 - var t = this, ed = t.editor; 243 + // Allow for class names to be retained if desired; either all, or just the ones from Word
  244 + // Note that the paste_strip_class_attributes: 'none, verify_css_classes: true is also a good variation.
  245 + stripClass = ed.getParam('paste_strip_class_attributes');
  246 + if (stripClass != 'none') {
  247 + // Cleans everything but mceItem... classes
  248 + function cleanClasses(str, cls) {
  249 + var i, out = '';
170 250
171 - if (content && content.length > 0) {  
172 - // Cleanup Word content  
173 - var bull = String.fromCharCode(8226);  
174 - var middot = String.fromCharCode(183); 251 + // Remove all classes
  252 + if (stripClass == 'all')
  253 + return '';
175 254
176 - if (ed.getParam('paste_insert_word_content_callback'))  
177 - content = ed.execCallback('paste_insert_word_content_callback', 'before', content); 255 + cls = tinymce.explode(cls, ' ');
178 256
179 - var rl = ed.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\x93|\x94|\u201c|\u201d,",\x60|\x91|\x92|\u2018|\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');  
180 - for (var i=0; i<rl.length; i+=2)  
181 - content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);  
182 -  
183 - if (this.editor.getParam("paste_convert_headers_to_strong", false)) {  
184 - content = content.replace(new RegExp('<p class=MsoHeading.*?>(.*?)<\/p>', 'gi'), '<p><b>$1</b></p>');  
185 - } 257 + for (i = cls.length - 1; i >= 0; i--) {
  258 + // Remove Mso classes
  259 + if (!/^(Mso)/i.test(cls[i]))
  260 + out += (!out ? '' : ' ') + cls[i];
  261 + }
186 262
187 - content = content.replace(new RegExp('tab-stops: list [0-9]+.0pt">', 'gi'), '">' + "--list--");  
188 - content = content.replace(new RegExp(bull + "(.*?)<BR>", "gi"), "<p>" + middot + "$1</p>");  
189 - content = content.replace(new RegExp('<SPAN style="mso-list: Ignore">', 'gi'), "<span>" + bull); // Covert to bull list  
190 - content = content.replace(/<o:p><\/o:p>/gi, "");  
191 - content = content.replace(new RegExp('<br style="page-break-before: always;.*>', 'gi'), '-- page break --'); // Replace pagebreaks  
192 - content = content.replace(/<!--([\s\S]*?)-->|<style>[\s\S]*?<\/style>/g, ""); // Word comments  
193 - content = content.replace(/<(meta|link)[^>]+>/g, ""); // Header elements 263 + return ' class="' + out + '"';
  264 + };
194 265
195 - if (this.editor.getParam("paste_remove_spans", true))  
196 - content = content.replace(/<\/?span[^>]*>/gi, ""); 266 + process([
  267 + [/ class=\"([^\"]*)\"/gi, cleanClasses], // class attributes with quotes
  268 + [/ class=(\w+)/gi, cleanClasses] // class attributes without quotes (IE)
  269 + ]);
  270 + }
197 271
198 - if (this.editor.getParam("paste_remove_styles", true))  
199 - content = content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)', 'gi'), "<$1$3"); 272 + // Remove spans option
  273 + if (ed.getParam('paste_remove_spans')) {
  274 + process([
  275 + /<\/?(span)[^>]*>/gi
  276 + ]);
  277 + }
200 278
201 - content = content.replace(/<\/?font[^>]*>/gi, ""); 279 + //console.log('After preprocess:' + h);
202 280
203 - // Strips class attributes.  
204 - switch (this.editor.getParam("paste_strip_class_attributes", "all")) {  
205 - case "all":  
206 - content = content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");  
207 - break; 281 + o.content = h;
  282 + },
208 283
209 - case "mso":  
210 - content = content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)', 'gi'), "<$1$3");  
211 - break;  
212 - } 284 + /**
  285 + * Various post process items.
  286 + */
  287 + _postProcess : function(pl, o) {
  288 + var t = this, ed = t.editor, dom = ed.dom, styleProps;
  289 +
  290 + if (o.wordContent) {
  291 + // Remove named anchors or TOC links
  292 + each(dom.select('a', o.node), function(a) {
  293 + if (!a.href || a.href.indexOf('#_Toc') != -1)
  294 + dom.remove(a, 1);
  295 + });
213 296
214 - content = content.replace(new RegExp('href="?' + this._reEscape("" + document.location) + '', 'gi'), 'href="' + this.editor.documentBaseURI.getURI());  
215 - content = content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");  
216 - content = content.replace(/<\\?\?xml[^>]*>/gi, "");  
217 - content = content.replace(/<\/?\w+:[^>]*>/gi, "");  
218 - content = content.replace(/-- page break --\s*<p>&nbsp;<\/p>/gi, ""); // Remove pagebreaks  
219 - content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks 297 + if (t.editor.getParam('paste_convert_middot_lists', true))
  298 + t._convertLists(pl, o);
220 299
221 - // content = content.replace(/\/?&nbsp;*/gi, ""); &nbsp;  
222 - // content = content.replace(/<p>&nbsp;<\/p>/gi, ''); 300 + // Process styles
  301 + styleProps = ed.getParam('paste_retain_style_properties'); // retained properties
223 302
224 - if (!this.editor.getParam('force_p_newlines')) {  
225 - content = content.replace('', '' ,'gi');  
226 - content = content.replace('</p>', '<br /><br />' ,'gi');  
227 - } 303 + // If string property then split it
  304 + if (tinymce.is(styleProps, 'string'))
  305 + styleProps = tinymce.explode(styleProps);
228 306
229 - if (!tinymce.isIE && !this.editor.getParam('force_p_newlines')) {  
230 - content = content.replace(/<\/?p[^>]*>/gi, "");  
231 - } 307 + // Retains some style properties
  308 + each(dom.select('*', o.node), function(el) {
  309 + var newStyle = {}, npc = 0, i, sp, sv;
232 310
233 - content = content.replace(/<\/?div[^>]*>/gi, ""); 311 + // Store a subset of the existing styles
  312 + if (styleProps) {
  313 + for (i = 0; i < styleProps.length; i++) {
  314 + sp = styleProps[i];
  315 + sv = dom.getStyle(el, sp);
234 316
235 - // Convert all middlot lists to UL lists  
236 - if (this.editor.getParam("paste_convert_middot_lists", true)) {  
237 - var div = ed.dom.create("div", null, content); 317 + if (sv) {
  318 + newStyle[sp] = sv;
  319 + npc++;
  320 + }
  321 + }
  322 + }
238 323
239 - // Convert all middot paragraphs to li elements  
240 - var className = this.editor.getParam("paste_unindented_list_class", "unIndentedList"); 324 + // Remove all of the existing styles
  325 + dom.setAttrib(el, 'style', '');
241 326
242 - while (this._convertMiddots(div, "--list--")) ; // bull  
243 - while (this._convertMiddots(div, middot, className)) ; // Middot  
244 - while (this._convertMiddots(div, bull)) ; // bull 327 + if (styleProps && npc > 0)
  328 + dom.setStyles(el, newStyle); // Add back the stored subset of styles
  329 + else // Remove empty span tags that do not have class attributes
  330 + if (el.nodeName == 'SPAN' && !el.className)
  331 + dom.remove(el, true);
  332 + });
  333 + }
245 334
246 - content = div.innerHTML; 335 + // Remove all style information or only specifically on WebKit to avoid the style bug on that browser
  336 + if (ed.getParam("paste_remove_styles") || (ed.getParam("paste_remove_styles_if_webkit") && tinymce.isWebKit)) {
  337 + each(dom.select('*[style]', o.node), function(el) {
  338 + el.removeAttribute('style');
  339 + el.removeAttribute('mce_style');
  340 + });
  341 + } else {
  342 + if (tinymce.isWebKit) {
  343 + // We need to compress the styles on WebKit since if you paste <img border="0" /> it will become <img border="0" style="... lots of junk ..." />
  344 + // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles
  345 + each(dom.select('*', o.node), function(el) {
  346 + el.removeAttribute('mce_style');
  347 + });
247 } 348 }
  349 + }
  350 + },
248 351
249 - // Replace all headers with strong and fix some other issues  
250 - if (this.editor.getParam("paste_convert_headers_to_strong", false)) {  
251 - content = content.replace(/<h[1-6]>&nbsp;<\/h[1-6]>/gi, '<p>&nbsp;&nbsp;</p>');  
252 - content = content.replace(/<h[1-6]>/gi, '<p><b>');  
253 - content = content.replace(/<\/h[1-6]>/gi, '</b></p>');  
254 - content = content.replace(/<b>&nbsp;<\/b>/gi, '<b>&nbsp;&nbsp;</b>');  
255 - content = content.replace(/^(&nbsp;)*/gi, '');  
256 - } 352 + /**
  353 + * Converts the most common bullet and number formats in Office into a real semantic UL/LI list.
  354 + */
  355 + _convertLists : function(pl, o) {
  356 + var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html;
  357 +
  358 + // Convert middot lists into real semantic lists
  359 + each(dom.select('p', o.node), function(p) {
  360 + var sib, val = '', type, html, idx, parents;
  361 +
  362 + // Get text node value at beginning of paragraph
  363 + for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling)
  364 + val += sib.nodeValue;
  365 +
  366 + val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/&nbsp;/g, '\u00a0');
  367 +
  368 + // Detect unordered lists look for bullets
  369 + if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(val))
  370 + type = 'ul';
  371 +
  372 + // Detect ordered lists 1., a. or ixv.
  373 + if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(val))
  374 + type = 'ol';
  375 +
  376 + // Check if node value matches the list pattern: o&nbsp;&nbsp;
  377 + if (type) {
  378 + margin = parseFloat(p.style.marginLeft || 0);
  379 +
  380 + if (margin > lastMargin)
  381 + levels.push(margin);
  382 +
  383 + if (!listElm || type != lastType) {
  384 + listElm = dom.create(type);
  385 + dom.insertAfter(listElm, p);
  386 + } else {
  387 + // Nested list element
  388 + if (margin > lastMargin) {
  389 + listElm = li.appendChild(dom.create(type));
  390 + } else if (margin < lastMargin) {
  391 + // Find parent level based on margin value
  392 + idx = tinymce.inArray(levels, margin);
  393 + parents = dom.getParents(listElm.parentNode, type);
  394 + listElm = parents[parents.length - 1 - idx] || listElm;
  395 + }
  396 + }
257 397
258 - content = content.replace(/--list--/gi, ""); // Remove --list-- 398 + // Remove middot or number spans if they exists
  399 + each(dom.select('span', p), function(span) {
  400 + var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, '');
259 401
260 - if (ed.getParam('paste_insert_word_content_callback'))  
261 - content = ed.execCallback('paste_insert_word_content_callback', 'after', content); 402 + // Remove span with the middot or the number
  403 + if (type == 'ul' && /^[\u2022\u00b7\u00a7\u00d8o]/.test(html))
  404 + dom.remove(span);
  405 + else if (/^[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(html))
  406 + dom.remove(span);
  407 + });
262 408
263 - // Insert cleaned content  
264 - this.editor.execCommand("mceInsertContent", false, content); 409 + html = p.innerHTML;
265 410
266 - if (this.editor.getParam('paste_force_cleanup_wordpaste', true)) {  
267 - var ed = this.editor; 411 + // Remove middot/list items
  412 + if (type == 'ul')
  413 + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*(&nbsp;|\u00a0)+\s*/, '');
  414 + else
  415 + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/, '');
268 416
269 - window.setTimeout(function() {  
270 - ed.execCommand("mceCleanup");  
271 - }, 1); // Do normal cleanup detached from this thread  
272 - }  
273 - }  
274 - },  
275 -  
276 - _reEscape : function(s) {  
277 - var l = "?.\\*[](){}+^$:";  
278 - var o = "";  
279 -  
280 - for (var i=0; i<s.length; i++) {  
281 - var c = s.charAt(i); 417 + // Create li and add paragraph data into the new li
  418 + li = listElm.appendChild(dom.create('li', 0, html));
  419 + dom.remove(p);
282 420
283 - if (l.indexOf(c) != -1)  
284 - o += '\\' + c;  
285 - else  
286 - o += c;  
287 - } 421 + lastMargin = margin;
  422 + lastType = type;
  423 + } else
  424 + listElm = lastMargin = 0; // End list element
  425 + });
288 426
289 - return o; 427 + // Remove any left over makers
  428 + html = o.node.innerHTML;
  429 + if (html.indexOf('__MCE_ITEM__') != -1)
  430 + o.node.innerHTML = html.replace(/__MCE_ITEM__/g, '');
290 }, 431 },
291 432
292 - _convertMiddots : function(div, search, class_name) {  
293 - var ed = this.editor, mdot = String.fromCharCode(183), bull = String.fromCharCode(8226);  
294 - var nodes, prevul, i, p, ul, li, np, cp, li;  
295 -  
296 - nodes = div.getElementsByTagName("p");  
297 - for (i=0; i<nodes.length; i++) {  
298 - p = nodes[i];  
299 -  
300 - // Is middot  
301 - if (p.innerHTML.indexOf(search) == 0) {  
302 - ul = ed.dom.create("ul");  
303 -  
304 - if (class_name)  
305 - ul.className = class_name;  
306 -  
307 - // Add the first one  
308 - li = ed.dom.create("li");  
309 - li.innerHTML = p.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&nbsp;', "gi"), '');  
310 - ul.appendChild(li);  
311 -  
312 - // Add the rest  
313 - np = p.nextSibling;  
314 - while (np) {  
315 - // If the node is whitespace, then  
316 - // ignore it and continue on.  
317 - if (np.nodeType == 3 && new RegExp('^\\s$', 'm').test(np.nodeValue)) {  
318 - np = np.nextSibling;  
319 - continue;  
320 - } 433 + /**
  434 + * This method will split the current block parent and insert the contents inside the split position.
  435 + * This logic can be improved so text nodes at the start/end remain in the start/end block elements
  436 + */
  437 + _insertBlockContent : function(ed, dom, content) {
  438 + var parentBlock, marker, sel = ed.selection, last, elm, vp, y, elmHeight;
  439 +
  440 + function select(n) {
  441 + var r;
  442 +
  443 + if (tinymce.isIE) {
  444 + r = ed.getDoc().body.createTextRange();
  445 + r.moveToElementText(n);
  446 + r.collapse(false);
  447 + r.select();
  448 + } else {
  449 + sel.select(n, 1);
  450 + sel.collapse(false);
  451 + }
  452 + };
321 453
322 - if (search == mdot) {  
323 - if (np.nodeType == 1 && new RegExp('^o(\\s+|&nbsp;)').test(np.innerHTML)) {  
324 - // Second level of nesting  
325 - if (!prevul) {  
326 - prevul = ul;  
327 - ul = ed.dom.create("ul");  
328 - prevul.appendChild(ul);  
329 - }  
330 - np.innerHTML = np.innerHTML.replace(/^o/, '');  
331 - } else {  
332 - // Pop the stack if we're going back up to the first level  
333 - if (prevul) {  
334 - ul = prevul;  
335 - prevul = null;  
336 - }  
337 - // Not element or middot paragraph  
338 - if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)  
339 - break;  
340 - }  
341 - } else {  
342 - // Not element or middot paragraph  
343 - if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)  
344 - break;  
345 - } 454 + // Insert a marker for the caret position
  455 + this._insert('<span id="_marker">&nbsp;</span>', 1);
  456 + marker = dom.get('_marker');
  457 + parentBlock = dom.getParent(marker, 'p,h1,h2,h3,h4,h5,h6,ul,ol,th,td');
346 458
347 - cp = np.nextSibling;  
348 - li = ed.dom.create("li");  
349 - li.innerHTML = np.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&nbsp;', "gi"), '');  
350 - np.parentNode.removeChild(np);  
351 - ul.appendChild(li);  
352 - np = cp;  
353 - } 459 + // If it's a parent block but not a table cell
  460 + if (parentBlock && !/TD|TH/.test(parentBlock.nodeName)) {
  461 + // Split parent block
  462 + marker = dom.split(parentBlock, marker);
354 463
355 - p.parentNode.replaceChild(ul, p); 464 + // Insert nodes before the marker
  465 + each(dom.create('div', 0, content).childNodes, function(n) {
  466 + last = marker.parentNode.insertBefore(n.cloneNode(true), marker);
  467 + });
356 468
357 - return true;  
358 - } 469 + // Move caret after marker
  470 + select(last);
  471 + } else {
  472 + dom.setOuterHTML(marker, content);
  473 + sel.select(ed.getBody(), 1);
  474 + sel.collapse(0);
359 } 475 }
360 476
361 - return false; 477 + dom.remove('_marker'); // Remove marker if it's left
  478 +
  479 + // Get element, position and height
  480 + elm = sel.getStart();
  481 + vp = dom.getViewPort(ed.getWin());
  482 + y = ed.dom.getPos(elm).y;
  483 + elmHeight = elm.clientHeight;
  484 +
  485 + // Is element within viewport if not then scroll it into view
  486 + if (y < vp.y || y + elmHeight > vp.y + vp.h)
  487 + ed.getDoc().body.scrollTop = y < vp.y ? y : y - vp.h + 25;
362 }, 488 },
363 489
364 - _clipboardHTML : function() {  
365 - var div = document.getElementById('_TinyMCE_clipboardHTML'); 490 + /**
  491 + * Inserts the specified contents at the caret position.
  492 + */
  493 + _insert : function(h, skip_undo) {
  494 + var ed = this.editor;
366 495
367 - if (!div) {  
368 - var div = document.createElement('DIV');  
369 - div.id = '_TinyMCE_clipboardHTML'; 496 + // First delete the contents seems to work better on WebKit
  497 + if (!ed.selection.isCollapsed())
  498 + ed.getDoc().execCommand('Delete', false, null);
370 499
371 - with (div.style) {  
372 - visibility = 'hidden';  
373 - overflow = 'hidden';  
374 - position = 'absolute';  
375 - width = 1;  
376 - height = 1;  
377 - } 500 + // It's better to use the insertHTML method on Gecko since it will combine paragraphs correctly before inserting the contents
  501 + ed.execCommand(tinymce.isGecko ? 'insertHTML' : 'mceInsertContent', false, h, {skip_undo : skip_undo});
  502 + },
378 503
379 - document.body.appendChild(div);  
380 - } 504 + /**
  505 + * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine.
  506 + */
  507 + _legacySupport : function() {
  508 + var t = this, ed = t.editor;
  509 +
  510 + // Register commands for backwards compatibility
  511 + each(['mcePasteText', 'mcePasteWord'], function(cmd) {
  512 + ed.addCommand(cmd, function() {
  513 + ed.windowManager.open({
  514 + file : t.url + (cmd == 'mcePasteText' ? '/pastetext.htm' : '/pasteword.htm'),
  515 + width : parseInt(ed.getParam("paste_dialog_width", "450")),
  516 + height : parseInt(ed.getParam("paste_dialog_height", "400")),
  517 + inline : 1
  518 + });
  519 + });
  520 + });
381 521
382 - div.innerHTML = '';  
383 - var rng = document.body.createTextRange();  
384 - rng.moveToElementText(div);  
385 - rng.execCommand('Paste');  
386 - var html = div.innerHTML;  
387 - div.innerHTML = '';  
388 - return html; 522 + // Register buttons for backwards compatibility
  523 + ed.addButton('pastetext', {title : 'paste.paste_text_desc', cmd : 'mcePasteText'});
  524 + ed.addButton('pasteword', {title : 'paste.paste_word_desc', cmd : 'mcePasteWord'});
  525 + ed.addButton('selectall', {title : 'paste.selectall_desc', cmd : 'selectall'});
389 } 526 }
390 }); 527 });
391 528
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js
1 tinyMCEPopup.requireLangPack(); 1 tinyMCEPopup.requireLangPack();
2 2
3 -function saveContent() {  
4 - if (document.forms[0].htmlSource.value == '') { 3 +var PasteTextDialog = {
  4 + init : function() {
  5 + this.resize();
  6 + },
  7 +
  8 + insert : function() {
  9 + var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
  10 +
  11 + // Convert linebreaks into paragraphs
  12 + if (document.getElementById('linebreaks').checked) {
  13 + lines = h.split(/\r?\n/);
  14 + if (lines.length > 1) {
  15 + h = '';
  16 + tinymce.each(lines, function(row) {
  17 + h += '<p>' + row + '</p>';
  18 + });
  19 + }
  20 + }
  21 +
  22 + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
5 tinyMCEPopup.close(); 23 tinyMCEPopup.close();
6 - return false;  
7 - }  
8 -  
9 - tinyMCEPopup.execCommand('mcePasteText', false, {  
10 - html : document.forms[0].htmlSource.value,  
11 - linebreaks : document.forms[0].linebreaks.checked  
12 - });  
13 -  
14 - tinyMCEPopup.close();  
15 -} 24 + },
16 25
17 -function onLoadInit() {  
18 - tinyMCEPopup.resizeToInnerSize(); 26 + resize : function() {
  27 + var vp = tinyMCEPopup.dom.getViewPort(window), el;
19 28
20 - // Remove Gecko spellchecking  
21 - if (tinymce.isGecko)  
22 - document.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck"); 29 + el = document.getElementById('content');
23 30
24 - resizeInputs();  
25 -}  
26 -  
27 -var wHeight=0, wWidth=0, owHeight=0, owWidth=0;  
28 -  
29 -function resizeInputs() {  
30 - if (!tinymce.isIE) {  
31 - wHeight = self.innerHeight-80;  
32 - wWidth = self.innerWidth-17;  
33 - } else {  
34 - wHeight = document.body.clientHeight-80;  
35 - wWidth = document.body.clientWidth-17; 31 + el.style.width = (vp.w - 20) + 'px';
  32 + el.style.height = (vp.h - 90) + 'px';
36 } 33 }
  34 +};
37 35
38 - document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';  
39 - document.forms[0].htmlSource.style.width = Math.abs(wWidth) + 'px';  
40 -}  
41 -  
42 -tinyMCEPopup.onInit.add(onLoadInit);  
43 \ No newline at end of file 36 \ No newline at end of file
  37 +tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js
1 tinyMCEPopup.requireLangPack(); 1 tinyMCEPopup.requireLangPack();
2 2
3 -function saveContent() {  
4 - var html = document.getElementById("frmData").contentWindow.document.body.innerHTML;  
5 -  
6 - if (html == ''){ 3 +var PasteWordDialog = {
  4 + init : function() {
  5 + var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
  6 +
  7 + // Create iframe
  8 + el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';
  9 + ifr = document.getElementById('iframe');
  10 + doc = ifr.contentWindow.document;
  11 +
  12 + // Force absolute CSS urls
  13 + css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")];
  14 + css = css.concat(tinymce.explode(ed.settings.content_css) || []);
  15 + tinymce.each(css, function(u) {
  16 + cssHTML += '<link href="' + ed.documentBaseURI.toAbsolute('' + u) + '" rel="stylesheet" type="text/css" />';
  17 + });
  18 +
  19 + // Write content into iframe
  20 + doc.open();
  21 + doc.write('<html><head>' + cssHTML + '</head><body class="mceContentBody" spellcheck="false"></body></html>');
  22 + doc.close();
  23 +
  24 + doc.designMode = 'on';
  25 + this.resize();
  26 +
  27 + window.setTimeout(function() {
  28 + ifr.contentWindow.focus();
  29 + }, 10);
  30 + },
  31 +
  32 + insert : function() {
  33 + var h = document.getElementById('iframe').contentWindow.document.body.innerHTML;
  34 +
  35 + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true});
7 tinyMCEPopup.close(); 36 tinyMCEPopup.close();
8 - return false;  
9 - }  
10 -  
11 - tinyMCEPopup.execCommand('mcePasteWord', false, html);  
12 - tinyMCEPopup.close();  
13 -}  
14 -  
15 -function onLoadInit() {  
16 - tinyMCEPopup.resizeToInnerSize();  
17 -  
18 - // Fix for endless reloading in FF  
19 - window.setTimeout(createIFrame, 10);  
20 -}  
21 -  
22 -function createIFrame() {  
23 - document.getElementById('iframecontainer').innerHTML = '<iframe id="frmData" name="frmData" class="sourceIframe" src="blank.htm" height="280" width="400" frameborder="0" style="background-color:#FFFFFF; width:100%;" dir="ltr" wrap="soft"></iframe>';  
24 -} 37 + },
25 38
26 -var wHeight=0, wWidth=0, owHeight=0, owWidth=0; 39 + resize : function() {
  40 + var vp = tinyMCEPopup.dom.getViewPort(window), el;
27 41
28 -function initIframe(doc) {  
29 - var dir = tinyMCEPopup.editor.settings.directionality;  
30 -  
31 - doc.body.dir = dir;  
32 -  
33 - // Remove Gecko spellchecking  
34 - if (tinymce.isGecko)  
35 - doc.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");  
36 -  
37 - resizeInputs();  
38 -}  
39 -  
40 -function resizeInputs() {  
41 - if (!tinymce.isIE) {  
42 - wHeight = self.innerHeight - 80;  
43 - wWidth = self.innerWidth - 18;  
44 - } else {  
45 - wHeight = document.body.clientHeight - 80;  
46 - wWidth = document.body.clientWidth - 18;  
47 - } 42 + el = document.getElementById('iframe');
48 43
49 - var elm = document.getElementById('frmData');  
50 - if (elm) {  
51 - elm.style.height = Math.abs(wHeight) + 'px';  
52 - elm.style.width = Math.abs(wWidth) + 'px'; 44 + if (el) {
  45 + el.style.width = (vp.w - 20) + 'px';
  46 + el.style.height = (vp.h - 90) + 'px';
  47 + }
53 } 48 }
54 -} 49 +};
55 50
56 -tinyMCEPopup.onInit.add(onLoadInit); 51 +tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog);
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/langs/ja_dlg.js 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +tinyMCE.addI18n('ja.paste_dlg',{
  2 +text_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
  3 +text_linebreaks:"\u6539\u884C\u3092\u4FDD\u6301\u3059\u308B",
  4 +word_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002"
  5 +});
0 \ No newline at end of file 6 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm
@@ -4,31 +4,30 @@ @@ -4,31 +4,30 @@
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script> 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6 <script type="text/javascript" src="js/pastetext.js"></script> 6 <script type="text/javascript" src="js/pastetext.js"></script>
7 - <base target="_self" />  
8 </head> 7 </head>
9 -<body onresize="resizeInputs();" style="display:none; overflow:hidden;">  
10 -<form name="source" onsubmit="saveContent();return false;" action="#">  
11 - <div style="float: left" class="title">{#paste.paste_text_desc}</div> 8 +<body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
  9 + <form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
  10 + <div style="float: left" class="title">{#paste.paste_text_desc}</div>
12 11
13 - <div style="float: right">  
14 - <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>  
15 - </div> 12 + <div style="float: right">
  13 + <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
  14 + </div>
16 15
17 - <br style="clear: both" /> 16 + <br style="clear: both" />
18 17
19 - <div>{#paste_dlg.text_title}</div> 18 + <div>{#paste_dlg.text_title}</div>
20 19
21 - <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea> 20 + <textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
22 21
23 - <div class="mceActionPanel">  
24 - <div style="float: left">  
25 - <input type="submit" name="insert" value="{#insert}" id="insert" />  
26 - </div> 22 + <div class="mceActionPanel">
  23 + <div style="float: left">
  24 + <input type="submit" name="insert" value="{#insert}" id="insert" />
  25 + </div>
27 26
28 - <div style="float: right">  
29 - <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" /> 27 + <div style="float: right">
  28 + <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
  29 + </div>
30 </div> 30 </div>
31 - </div>  
32 -</form> 31 + </form>
33 </body> 32 </body>
34 </html> 33 </html>
35 \ No newline at end of file 34 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm
@@ -4,11 +4,9 @@ @@ -4,11 +4,9 @@
4 <title>{#paste.paste_word_desc}</title> 4 <title>{#paste.paste_word_desc}</title>
5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script> 5 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6 <script type="text/javascript" src="js/pasteword.js"></script> 6 <script type="text/javascript" src="js/pasteword.js"></script>
7 - <link href="css/pasteword.css" rel="stylesheet" type="text/css" />  
8 - <base target="_self" />  
9 </head> 7 </head>
10 -<body onresize="resizeInputs();" style="display:none; overflow:hidden;">  
11 - <form name="source" onsubmit="saveContent();" action="#"> 8 +<body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
  9 + <form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
12 <div class="title">{#paste.paste_word_desc}</div> 10 <div class="title">{#paste.paste_word_desc}</div>
13 11
14 <div>{#paste_dlg.word_title}</div> 12 <div>{#paste_dlg.word_title}</div>
@@ -17,7 +15,7 @@ @@ -17,7 +15,7 @@
17 15
18 <div class="mceActionPanel"> 16 <div class="mceActionPanel">
19 <div style="float: left"> 17 <div style="float: left">
20 - <input type="button" id="insert" name="insert" value="{#insert}" onclick="saveContent();" /> 18 + <input type="submit" id="insert" name="insert" value="{#insert}" />
21 </div> 19 </div>
22 20
23 <div style="float: right"> 21 <div style="float: right">
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advhr/langs/de_dlg.js
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -tinyMCE.addI18n('de.advhr_dlg',{  
2 -width:"Breite",  
3 -size:"H\u00F6he",  
4 -noshade:"Kein Schatten"  
5 -});  
6 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advhr/langs/fr_dlg.js
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -tinyMCE.addI18n('fr.advhr_dlg',{  
2 -width:"Largeur",  
3 -size:"Hauteur",  
4 -noshade:"Pas d'ombre"  
5 -});  
6 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advhr/langs/nl_dlg.js
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -tinyMCE.addI18n('nl.advhr_dlg',{  
2 -width:"Breedte",  
3 -size:"Hoogte",  
4 -noshade:"Geen schaduw"  
5 -});  
6 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advhr/langs/pt_dlg.js
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -tinyMCE.addI18n('pt.advhr_dlg',{  
2 -width:"Largura",  
3 -size:"Altura",  
4 -noshade:"Sem sombra"  
5 -});  
6 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advimage/langs/de_dlg.js
@@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
1 -tinyMCE.addI18n('de.advimage_dlg',{  
2 -tab_general:"Allgemein",  
3 -tab_appearance:"Aussehen",  
4 -tab_advanced:"Erweitert",  
5 -general:"Allgemein",  
6 -title:"Titel",  
7 -preview:"Vorschau",  
8 -constrain_proportions:"Ausma\u00DFe",  
9 -langdir:"Schriftrichtung",  
10 -langcode:"Sprachcode",  
11 -long_desc:"Ausf\u00FChrliche Beschreibung",  
12 -style:"Format",  
13 -classes:"Klassen",  
14 -ltr:"Links nach rechts",  
15 -rtl:"Rechts nach links",  
16 -id:"ID",  
17 -map:"Image-Map",  
18 -swap_image:"Bild austauschen",  
19 -alt_image:"Alternatives Bild",  
20 -mouseover:"bei Mauskontakt",  
21 -mouseout:"bei keinem Mauskontakt",  
22 -misc:"Verschiedenes",  
23 -example_img:"Aussehen der Vorschau",  
24 -missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugrifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.",  
25 -dialog_title:"Bild einf\u00FCgen/bearbeiten",  
26 -src:"Adresse",  
27 -alt:"Beschreibung",  
28 -list:"Bilderliste",  
29 -border:"Rahmen",  
30 -dimensions:"Ausma\u00DFe",  
31 -vspace:"Vertikaler Abstand",  
32 -hspace:"Horizontaler Abstand",  
33 -align:"Ausrichtung",  
34 -align_baseline:"Zeile",  
35 -align_top:"Oben",  
36 -align_middle:"Mittig",  
37 -align_bottom:"Unten",  
38 -align_texttop:"Oben im Text",  
39 -align_textbottom:"Unten im Text",  
40 -align_left:"Links",  
41 -align_right:"Rechts",  
42 -image_list:"Bilderliste"  
43 -});  
44 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advimage/langs/fr_dlg.js
@@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
1 -tinyMCE.addI18n('fr.advimage_dlg',{  
2 -tab_general:"G\u00E9n\u00E9ral",  
3 -tab_appearance:"Apparence",  
4 -tab_advanced:"Avanc\u00E9",  
5 -general:"G\u00E9n\u00E9ral",  
6 -title:"Titre",  
7 -preview:"Pr\u00E9visualiser",  
8 -constrain_proportions:"Conserver les proportions",  
9 -langdir:"Sens de lecture",  
10 -langcode:"Code de la langue",  
11 -long_desc:"Description longue du lien",  
12 -style:"Style",  
13 -classes:"Classes",  
14 -ltr:"De gauche \u00E0 droite",  
15 -rtl:"De droite \u00E0 gauche",  
16 -id:"Id",  
17 -map:"Carte image",  
18 -swap_image:"Alterner image",  
19 -alt_image:"Image alternative",  
20 -mouseover:"au passage de la souris",  
21 -mouseout:"\u00E0 la sortie de la souris",  
22 -misc:"Divers",  
23 -example_img:"Apparence de l'image",  
24 -missing_alt:"\u00CAtes-vous s\u00FBr de vouloir continuer sans inclure de description de l'image\u00A0? Sans description, l'image peut ne pas \u00EAtre accessible \u00E0 certains utilisateurs handicap\u00E9s visuellement, ceux utilisant un navigateur texte, ou ceux qui naviguent sans affichage des images.",  
25 -dialog_title:"Ins\u00E9rer/\u00C9diter image",  
26 -src:"URL de l'image",  
27 -alt:"Description de l'image",  
28 -list:"Liste d'images",  
29 -border:"Bordure",  
30 -dimensions:"Dimensions",  
31 -vspace:"Espacement vertical",  
32 -hspace:"Espacement horizontal",  
33 -align:"Alignement",  
34 -align_baseline:"Base",  
35 -align_top:"Haut",  
36 -align_middle:"Milieu",  
37 -align_bottom:"Bas",  
38 -align_texttop:"Haut du texte",  
39 -align_textbottom:"Bas du texte",  
40 -align_left:"Gauche",  
41 -align_right:"Droite",  
42 -image_list:"Liste d'images"  
43 -});  
44 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advimage/langs/nl_dlg.js
@@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
1 -tinyMCE.addI18n('nl.advimage_dlg',{  
2 -tab_general:"Algemeen",  
3 -tab_appearance:"Weergave",  
4 -tab_advanced:"Geavanceerd",  
5 -general:"Algemeen",  
6 -title:"Titel",  
7 -preview:"Voorbeeld",  
8 -constrain_proportions:"Verhouding behouden",  
9 -langdir:"Taalrichting",  
10 -langcode:"Taalcode",  
11 -long_desc:"Uitgebreide beschrijving",  
12 -style:"Stijl",  
13 -classes:"Klasses",  
14 -ltr:"Van links naar rechts",  
15 -rtl:"Van rechts naar links",  
16 -id:"Id",  
17 -map:"Afbeeldingsplattegrond",  
18 -swap_image:"Afbeelding wisselen",  
19 -alt_image:"Alternatieve afbeeldingen",  
20 -mouseover:"Bij muis over",  
21 -mouseout:"Bij muis uit",  
22 -misc:"Diversen",  
23 -example_img:"Voorbeeldweergave",  
24 -missing_alt:"Wilt u de afbeelding zonder beschrijving invoegen? De afbeelding wordt dan mogelijk niet opgemerkt door mensen met een visuele handicap, of welke zonder afbeeldingen browsen.",  
25 -dialog_title:"Afbeelding invoegen/bewerken",  
26 -src:"Bestand/URL",  
27 -alt:"Beschrijving",  
28 -list:"Lijst",  
29 -border:"Rand",  
30 -dimensions:"Afmetingen",  
31 -vspace:"Verticale ruimte",  
32 -hspace:"Horizontale ruimte",  
33 -align:"Uitlijning",  
34 -align_baseline:"Basislijn",  
35 -align_top:"Boven",  
36 -align_middle:"Midden",  
37 -align_bottom:"Onder",  
38 -align_texttop:"Bovenkant tekst",  
39 -align_textbottom:"Onderkant tekst",  
40 -align_left:"Links",  
41 -align_right:"Rechts",  
42 -image_list:"Lijst"  
43 -});  
44 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advimage/langs/pt_dlg.js
@@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
1 -tinyMCE.addI18n('pt.advimage_dlg',{  
2 -tab_general:"Geral",  
3 -tab_appearance:"Apar\u00EAncia",  
4 -tab_advanced:"Avan\u00E7ado",  
5 -general:"Geral",  
6 -title:"T\u00EDtulo",  
7 -preview:"Pr\u00E9-Visualiza\u00E7\u00E3o",  
8 -constrain_proportions:"Manter propor\u00E7\u00F5es",  
9 -langdir:"Dire\u00E7\u00E3o do texto",  
10 -langcode:"C\u00F3digo de idioma",  
11 -long_desc:"Descri\u00E7\u00E3o extensa",  
12 -style:"Estilo",  
13 -classes:"Classes",  
14 -ltr:"Da esquerda para a direita",  
15 -rtl:"Da direita para a esquerda",  
16 -id:"Id",  
17 -map:"Mapa de imagem",  
18 -swap_image:"Trocar imagem",  
19 -alt_image:"Imagem alternativa",  
20 -mouseover:"mouseover",  
21 -mouseout:"mouseout",  
22 -misc:"Misto",  
23 -example_img:"Pr\u00E9-visualiza\u00E7\u00E3o",  
24 -missing_alt:"Tem certeza que deseja continuar sem acrescentar uma descri\u00E7\u00E3o \u00E0 imagem? (Isto pode gerar problemas de acessibilidade em alguns navegadores)",  
25 -dialog_title:"Inserir/editar imagem",  
26 -src:"Endere\u00E7o da imagem",  
27 -alt:"Descri\u00E7\u00E3o da imagem",  
28 -list:"Lista de imagens",  
29 -border:"Limite",  
30 -dimensions:"Dimens\u00F5es",  
31 -vspace:"Espa\u00E7o vertical",  
32 -hspace:"Espa\u00E7o horizontal",  
33 -align:"Alinhamento",  
34 -align_baseline:"Sobre a linha de texto",  
35 -align_top:"Topo",  
36 -align_middle:"Meio",  
37 -align_bottom:"Abaixo",  
38 -align_texttop:"Topo do texto",  
39 -align_textbottom:"Base do texto",  
40 -align_left:"Esquerda",  
41 -align_right:"Direita",  
42 -image_list:"Lista de imagens"  
43 -});  
44 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advlink/langs/de_dlg.js
@@ -1,52 +0,0 @@ @@ -1,52 +0,0 @@
1 -tinyMCE.addI18n('de.advlink_dlg',{  
2 -title:"Link einf\u00FCgen/bearbeiten",  
3 -url:"Adresse",  
4 -target:"Fenster",  
5 -titlefield:"Titel",  
6 -is_email:"Bei der Adresse scheint es sich um eine E-Mail-Adresse zu handeln. Wollen Sie das dazu ben\u00F6tigte mailto: voranstellen?",  
7 -is_external:"Bei der Adresse scheint es sich um einen externen Link zu handeln. M\u00F6chten Sie, dass zur korrekten Verlinkung ein http:// vorangestellt wird?",  
8 -list:"Linkliste",  
9 -general_tab:"Allgemein",  
10 -popup_tab:"Popup",  
11 -events_tab:"Ereignisse",  
12 -advanced_tab:"Erweitert",  
13 -general_props:"Allemeine Eigenschaften",  
14 -popup_props:"Popup-Eigenschaften",  
15 -event_props:"Ereignisse",  
16 -advanced_props:"Erweiterte Eigenschaften",  
17 -popup_opts:"Optionen",  
18 -anchor_names:"Anker",  
19 -target_same:"Im selben Fenster/Frame \u00F6ffnen",  
20 -target_parent:"Im \u00FCbergeordneten Fenster/Frame \u00F6ffnen",  
21 -target_top:"Im obersten Frame \u00F6ffnen (sprengt das Frameset)",  
22 -target_blank:"In neuem Fenster \u00F6ffnen",  
23 -popup:"JavaScript-Popup",  
24 -popup_url:"Popup-Adresse",  
25 -popup_name:"Name des Fensters",  
26 -popup_return:"Link trotz Popup folgen",  
27 -popup_scrollbars:"Scrollbalken anzeigen",  
28 -popup_statusbar:"Statusleiste anzeigen",  
29 -popup_toolbar:"Werkzeugleisten anzeigen",  
30 -popup_menubar:"Browsermen\u00FC anzeigen",  
31 -popup_location:"Adressleiste anzeigen",  
32 -popup_resizable:"Vergr\u00F6\u00DFern des Fenster zulassen",  
33 -popup_dependent:"Vom Elternfenster abh\u00E4ngig <br /> (nur Mozilla/Firefox) ",  
34 -popup_size:"Gr\u00F6\u00DFe",  
35 -popup_position:"Position (X/Y)",  
36 -id:"ID",  
37 -style:"Format",  
38 -classes:"Klassen",  
39 -target_name:"Name der Zielseite",  
40 -langdir:"Schriftrichtung",  
41 -target_langcode:"Sprache der Zielseite",  
42 -langcode:"Sprachcode",  
43 -encoding:"Zeichenkodierung der Zielseite",  
44 -mime:"MIME-Type der Zielseite",  
45 -rel:"Beziehung der Seite zum Linkziel",  
46 -rev:"Beziehung des Linkziels zur Seite",  
47 -tabindex:"Tabindex",  
48 -accesskey:"Tastenk\u00FCrzel",  
49 -ltr:"Links nach rechts",  
50 -rtl:"Rechts nach links",  
51 -link_list:"Linkliste"  
52 -});  
53 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advlink/langs/fr_dlg.js
@@ -1,52 +0,0 @@ @@ -1,52 +0,0 @@
1 -tinyMCE.addI18n('fr.advlink_dlg',{  
2 -title:"Ins\u00E9rer/\u00C9diter lien",  
3 -url:"URL du lien",  
4 -target:"Cible",  
5 -titlefield:"Titre",  
6 -is_email:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse e-mail, voulez-vous ajouter le pr\u00E9fixe mailto:\u00A0?",  
7 -is_external:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse web externe, voulez-vous ajouter le pr\u00E9fixe http://\u00A0?",  
8 -list:"Liste de liens",  
9 -general_tab:"G\u00E9n\u00E9ral",  
10 -popup_tab:"Popup",  
11 -events_tab:"\u00C9v\u00E9nements",  
12 -advanced_tab:"Advanc\u00E9",  
13 -general_props:"Propri\u00E9t\u00E9s g\u00E9n\u00E9rales",  
14 -popup_props:"Propri\u00E9t\u00E9s du popup",  
15 -event_props:"\u00C9v\u00E9nements",  
16 -advanced_props:"Propri\u00E9t\u00E9s avanc\u00E9es",  
17 -popup_opts:"Options",  
18 -anchor_names:"Ancres",  
19 -target_same:"Ouvrir dans cette fen\u00EAtre / dans ce cadre",  
20 -target_parent:"Ouvrir dans la fen\u00EAtre / le cadre parent",  
21 -target_top:"Ouvrir dans le cadre principal (Remplace tous les cadres)",  
22 -target_blank:"Ouvrir dans une nouvelle fen\u00EAtre",  
23 -popup:"Popup en Javascript",  
24 -popup_url:"URL du popup",  
25 -popup_name:"Nom de la fen\u00EAtre",  
26 -popup_return:"Ins\u00E9rer 'return false'",  
27 -popup_scrollbars:"Afficher les ascenseurs",  
28 -popup_statusbar:"Afficher la barre de status",  
29 -popup_toolbar:"Afficher la barre d'outils",  
30 -popup_menubar:"Afficher la barre de menu",  
31 -popup_location:"Afficher la barre d'adresse",  
32 -popup_resizable:"Rendre la fen\u00EAtre redimensionable",  
33 -popup_dependent:"D\u00E9pendent (Seulement sous Mozilla/Firefox)",  
34 -popup_size:"Taille",  
35 -popup_position:"Position (X/Y)",  
36 -id:"Id",  
37 -style:"Style",  
38 -classes:"Classes",  
39 -target_name:"Nom de la cible",  
40 -langdir:"Sens de lecture",  
41 -target_langcode:"Langue de la cible",  
42 -langcode:"Code de la langue",  
43 -encoding:"Encodage de la cible",  
44 -mime:"Type MIME de la cible",  
45 -rel:"Relation de la page \u00E0 la cible",  
46 -rev:"Relation de la cible \u00E0 la page",  
47 -tabindex:"Tabindex",  
48 -accesskey:"Touche d'acc\u00E8s rapide",  
49 -ltr:"Gauche \u00E0 droite",  
50 -rtl:"Droite \u00E0 gauche",  
51 -link_list:"Liste des liens"  
52 -});  
53 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advlink/langs/nl_dlg.js
@@ -1,52 +0,0 @@ @@ -1,52 +0,0 @@
1 -tinyMCE.addI18n('nl.advlink_dlg',{  
2 -title:"Link invoegen/bewerken",  
3 -url:"URL",  
4 -target:"Doel",  
5 -titlefield:"Titel",  
6 -is_email:"De ingevoerde URL lijkt op een e-mailadres. Wilt u de vereiste mailto: tekst voorvoegen?",  
7 -is_external:"De ingevoerde URL lijkt op een externe link. Wilt u de vereiste http:// tekst voorvoegen?",  
8 -list:"Lijst",  
9 -general_tab:"Algemeen",  
10 -popup_tab:"Popup",  
11 -events_tab:"Gebeurtenissen",  
12 -advanced_tab:"Geavanceerd",  
13 -general_props:"Algemene eigenschappen",  
14 -popup_props:"Popup eigenschappen",  
15 -event_props:"Gebeurtenissen",  
16 -advanced_props:"Geavanceerde eigenschappen",  
17 -popup_opts:"Opties",  
18 -anchor_names:"Ankers",  
19 -target_same:"In dit venster / frame openen",  
20 -target_parent:"In bovenliggend venster / frame openen",  
21 -target_top:"In bovenste frame openen (vervangt gehele pagina)",  
22 -target_blank:"In nieuw venster openen",  
23 -popup:"Javascript popup",  
24 -popup_url:"Popup URL",  
25 -popup_name:"Venstertitel",  
26 -popup_return:"'return false' invoegen",  
27 -popup_scrollbars:"Scrollbalken weergeven",  
28 -popup_statusbar:"Statusbalk weergeven",  
29 -popup_toolbar:"Werkbalk weergeven",  
30 -popup_menubar:"Menubalk weergeven",  
31 -popup_location:"Lokatiebalk weergeven",  
32 -popup_resizable:"Aanpasbaar venster",  
33 -popup_dependent:"Afhankelijk (Alleen Mozilla/Firefox)",  
34 -popup_size:"Grootte",  
35 -popup_position:"Positie (X/Y)",  
36 -id:"Id",  
37 -style:"Stijl",  
38 -classes:"Klasses",  
39 -target_name:"Doel",  
40 -langdir:"Taalrichting",  
41 -target_langcode:"Taal",  
42 -langcode:"Taalcode",  
43 -encoding:"Taalcodering",  
44 -mime:"MIME type",  
45 -rel:"Relatie van pagina tot doel",  
46 -rev:"Relatie van doel tot pagina",  
47 -tabindex:"Tabvolgorde",  
48 -accesskey:"Toegangstoets",  
49 -ltr:"Van links naar rechts",  
50 -rtl:"Van rechts naar links",  
51 -link_list:"Lijst"  
52 -});  
53 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/advlink/langs/pt_dlg.js
@@ -1,52 +0,0 @@ @@ -1,52 +0,0 @@
1 -tinyMCE.addI18n('pt.advlink_dlg',{  
2 -title:"Inserir/editar hyperlink",  
3 -url:"URL do hyperlink",  
4 -target:"Alvo",  
5 -titlefield:"T\u00EDtulo",  
6 -is_email:"A URL digitada parece ser um endere\u00E7o de e-mail. Deseja acrescentar o (necess\u00E1rio) prefixo mailto:?",  
7 -is_external:"A URL digitada parece conduzir a um link externo. Deseja acrescentar o (necess\u00E1rio) prefixo http://?",  
8 -list:"Lista de hyperlinks",  
9 -general_tab:"Geral",  
10 -popup_tab:"Popup",  
11 -events_tab:"Eventos",  
12 -advanced_tab:"Avan\u00E7ado",  
13 -general_props:"Propriedades gerais",  
14 -popup_props:"Propriedades de popup",  
15 -event_props:"Eventos",  
16 -advanced_props:"Propriedades avan\u00E7adas",  
17 -popup_opts:"Op\u00E7\u00F5es",  
18 -anchor_names:"\u00E0ncoras",  
19 -target_same:"Abrir nesta janela/quadro",  
20 -target_parent:"Abrir na janela/quadro pai",  
21 -target_top:"Abrir na p\u00E1gina inteira (substitui todos os quadros)",  
22 -target_blank:"Abrir numa nova janela",  
23 -popup:"Popup javascript",  
24 -popup_url:"URL do popup",  
25 -popup_name:"Nome da janela",  
26 -popup_return:"Inserir \"return false\"",  
27 -popup_scrollbars:"Mostrar barras de scroll",  
28 -popup_statusbar:"Mostrar barra de status",  
29 -popup_toolbar:"Mostrar barras de ferramentas",  
30 -popup_menubar:"Mostrar barra de menu",  
31 -popup_location:"Mostrar barra de endere\u00E7os",  
32 -popup_resizable:"Permitir altera\u00E7\u00E3o do tamanho da janela",  
33 -popup_dependent:"Dependente (Mozilla/Firefox apenas)",  
34 -popup_size:"Tamanho",  
35 -popup_position:"Posi\u00E7\u00E3o (X/Y)",  
36 -id:"Id",  
37 -style:"Estilo",  
38 -classes:"Classes",  
39 -target_name:"Nome do alvo",  
40 -langdir:"Dire\u00E7\u00E3o do texto",  
41 -target_langcode:"linguagem alvo",  
42 -langcode:"C\u00F3digo da linguagem",  
43 -encoding:"Codifica\u00E7\u00E3o de caracteres",  
44 -mime:"Tipo MIME alvo",  
45 -rel:"Rela\u00E7\u00E3o p\u00E1gina/alvo",  
46 -rev:"Rela\u00E7\u00E3o alvo/p\u00E1gina",  
47 -tabindex:"Tabindex",  
48 -accesskey:"Chave de acesso",  
49 -ltr:"Da esquerda para a direita",  
50 -rtl:"Da direita para a esquerda",  
51 -link_list:"Lista de hyperlinks"  
52 -});  
53 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/emotions/langs/de_dlg.js
@@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
1 -tinyMCE.addI18n('de.emotions_dlg',{  
2 -title:"Smiley einf\u00FCgen",  
3 -desc:"Smilies",  
4 -cool:"Cool",  
5 -cry:"Weinend",  
6 -embarassed:"Verlegen",  
7 -foot_in_mouth:"Reingefallen",  
8 -frown:"Stirnrunzelnd",  
9 -innocent:"Unschuldig",  
10 -kiss:"K\u00FCssend",  
11 -laughing:"Lachend",  
12 -money_mouth:"Geld",  
13 -sealed:"Verschlossen",  
14 -smile:"L\u00E4chelnd",  
15 -surprised:"\u00DCberrascht",  
16 -tongue_out:"Zunge raus",  
17 -undecided:"Unentschlossen",  
18 -wink:"Zwinkernd",  
19 -yell:"Br\u00FCllend"  
20 -});  
21 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/emotions/langs/fr_dlg.js
@@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
1 -tinyMCE.addI18n('fr.emotions_dlg',{  
2 -title:"Ins\u00E9rer \u00E9motion",  
3 -desc:"\u00C9motions",  
4 -cool:"Cool",  
5 -cry:"En pleurs",  
6 -embarassed:"Embarass\u00E9",  
7 -foot_in_mouth:"Pied de nez",  
8 -frown:"D\u00E9\u00E7u",  
9 -innocent:"Innocent",  
10 -kiss:"Bisou",  
11 -laughing:"Rigolant",  
12 -money_mouth:"Avare",  
13 -sealed:"Bouche cousue",  
14 -smile:"Sourire",  
15 -surprised:"Surpris",  
16 -tongue_out:"Langue tir\u00E9e",  
17 -undecided:"Non d\u00E9cid\u00E9",  
18 -wink:"Clin d'oeil",  
19 -yell:"Criant"  
20 -});  
21 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/emotions/langs/nl_dlg.js
@@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
1 -tinyMCE.addI18n('nl.emotions_dlg',{  
2 -title:"Emotie invoegen",  
3 -desc:"Emoties",  
4 -cool:"Stoer",  
5 -cry:"Huilen",  
6 -embarassed:"Schamen",  
7 -foot_in_mouth:"Verstomd",  
8 -frown:"Wenkbrouw ophalen",  
9 -innocent:"Onschuldig",  
10 -kiss:"Zoenen",  
11 -laughing:"Lachen",  
12 -money_mouth:"Hebberig",  
13 -sealed:"Afgesloten",  
14 -smile:"Lachen",  
15 -surprised:"Verrast",  
16 -tongue_out:"Tong uitsteken",  
17 -undecided:"Onbeslist",  
18 -wink:"Knipogen",  
19 -yell:"Roepen"  
20 -});  
21 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/emotions/langs/pt_dlg.js
@@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
1 -tinyMCE.addI18n('pt.emotions_dlg',{  
2 -title:"Inserir emoticon",  
3 -desc:"Emoticons",  
4 -cool:"Fixe",  
5 -cry:"Chor\u00E3o",  
6 -embarassed:"Embara\u00E7ado",  
7 -foot_in_mouth:"Disse asneira",  
8 -frown:"Decep\u00E7\u00E3o",  
9 -innocent:"Inocente",  
10 -kiss:"Beijo",  
11 -laughing:"Riso",  
12 -money_mouth:"Avarez",  
13 -sealed:"Boca Fechada",  
14 -smile:"Sorriso",  
15 -surprised:"Surpresa",  
16 -tongue_out:"L\u00EDngua de fora",  
17 -undecided:"Indeciso",  
18 -wink:"Piscadela",  
19 -yell:"Irado"  
20 -});  
21 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/fullpage/langs/de_dlg.js
@@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
1 -tinyMCE.addI18n('de.fullpage_dlg',{  
2 -title:"Dokument-Eigenschaften",  
3 -meta_tab:"Allgemein",  
4 -appearance_tab:"Aussehen",  
5 -advanced_tab:"Erweitert",  
6 -meta_props:"Meta-Information",  
7 -langprops:"Sprache und Codierung",  
8 -meta_title:"Titel",  
9 -meta_keywords:"Keywords",  
10 -meta_description:"Beschreibung",  
11 -meta_robots:"Robots",  
12 -doctypes:"DocType",  
13 -langcode:"Sprachcode",  
14 -langdir:"Sprachrichtung",  
15 -ltr:"Links nach Rechts",  
16 -rtl:"Rechts nach Links",  
17 -xml_pi:"XML declaration",  
18 -encoding:"Zeichencodierung",  
19 -appearance_bgprops:"Hintergrund-Eigenschaften",  
20 -appearance_marginprops:"Abst\u00E4nde des Body",  
21 -appearance_linkprops:"Linkfarben",  
22 -appearance_textprops:"Text-Eigenschaften",  
23 -bgcolor:"Hintergrundfarbe",  
24 -bgimage:"Hintergrundbild",  
25 -left_margin:"Linker Abstand",  
26 -right_margin:"Rechter Abstand",  
27 -top_margin:"Oberer Abstand",  
28 -bottom_margin:"Unterer Abstand",  
29 -text_color:"Textfarbe",  
30 -font_size:"Schriftgr\u00F6\u00DFe",  
31 -font_face:"Schriftart",  
32 -link_color:"Linkfarbe",  
33 -hover_color:"Hover-Farbe",  
34 -visited_color:"Visited-Farbe",  
35 -active_color:"Active-Farbe",  
36 -textcolor:"Farbe",  
37 -fontsize:"Schriftgr\u00F6\u00DFe",  
38 -fontface:"Schriftart",  
39 -meta_index_follow:"Indizieren und den Links folgen",  
40 -meta_index_nofollow:"Indizieren, aber den Links nicht folgen",  
41 -meta_noindex_follow:"Nicht indizieren, aber den Links folgen",  
42 -meta_noindex_nofollow:"Nicht indizieren und auch nicht den Links folgen",  
43 -appearance_style:"CSS-Stylesheet und Stileigenschaften",  
44 -stylesheet:"CSS-Stylesheet",  
45 -style:"CSS-Stil",  
46 -author:"Autor",  
47 -copyright:"Copyright",  
48 -add:"Neues Element hinzuf\u00FCgen",  
49 -remove:"Ausgew\u00E4hltes Element entfernen",  
50 -moveup:"Ausgew\u00E4hltes Element nach oben bewegen",  
51 -movedown:"Ausgew\u00E4hltes Element nach unten bewegen",  
52 -head_elements:"\u00DCberschriftenelemente",  
53 -info:"Information",  
54 -add_title:"Titel-Element",  
55 -add_meta:"Meta-Element",  
56 -add_script:"Script-Element",  
57 -add_style:"Style-Element",  
58 -add_link:"Link-Element",  
59 -add_base:"Base-Element",  
60 -add_comment:"HTML-Kommentar",  
61 -title_element:"Titel-Element",  
62 -script_element:"Script-Element",  
63 -style_element:"Style-Element",  
64 -base_element:"Base-Element",  
65 -link_element:"Link-Element",  
66 -meta_element:"Meta_Element",  
67 -comment_element:"Kommentar",  
68 -src:"Src",  
69 -language:"Sprache",  
70 -href:"Href",  
71 -target:"Ziel",  
72 -type:"Typ",  
73 -charset:"Zeichensatz",  
74 -defer:"Defer",  
75 -media:"Media",  
76 -properties:"Eigenschaften",  
77 -name:"Name",  
78 -value:"Wert",  
79 -content:"Inhalt",  
80 -rel:"Rel",  
81 -rev:"Rev",  
82 -hreflang:"Href lang",  
83 -general_props:"Allgemein",  
84 -advanced_props:"Erweitert"  
85 -});  
86 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/fullpage/langs/fr_dlg.js
@@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
1 -tinyMCE.addI18n('fr.fullpage_dlg',{  
2 -title:"Propri\u00E9t\u00E9s du document",  
3 -meta_tab:"G\u00E9n\u00E9ral",  
4 -appearance_tab:"Apparence",  
5 -advanced_tab:"Avanc\u00E9",  
6 -meta_props:"Meta information",  
7 -langprops:"Langue et encodage",  
8 -meta_title:"Titre",  
9 -meta_keywords:"Mots-cl\u00E9s",  
10 -meta_description:"Description",  
11 -meta_robots:"Robots",  
12 -doctypes:"Doctype",  
13 -langcode:"Code de la langue",  
14 -langdir:"Sens de lecture",  
15 -ltr:"De gauche \u00E0 droite",  
16 -rtl:"De droite \u00E0 gauche",  
17 -xml_pi:"D\u00E9claration XML",  
18 -encoding:"Encodage des caract\u00E8res",  
19 -appearance_bgprops:"Propri\u00E9t\u00E9s du fond",  
20 -appearance_marginprops:"Marge du corps de la page",  
21 -appearance_linkprops:"Couleurs des liens",  
22 -appearance_textprops:"Propri\u00E9t\u00E9s du texte",  
23 -bgcolor:"Couleur de fond",  
24 -bgimage:"Image de fond",  
25 -left_margin:"Marge de gauche",  
26 -right_margin:"Marge de droite",  
27 -top_margin:"Marge du haut",  
28 -bottom_margin:"Marge du bas",  
29 -text_color:"Couleur du texte",  
30 -font_size:"Taille de la police",  
31 -font_face:"Nom de la police",  
32 -link_color:"Couleur des liens",  
33 -hover_color:"Couleur au survol",  
34 -visited_color:"Couleur des liens visit\u00E9s",  
35 -active_color:"Couleur du lien actif",  
36 -textcolor:"Couleur",  
37 -fontsize:"Taille de police",  
38 -fontface:"Nom de la police",  
39 -meta_index_follow:"Indexer et suivre les liens",  
40 -meta_index_nofollow:"Indexer et ne pas suivre les liens",  
41 -meta_noindex_follow:"Ne pas indexer et suivre les liens",  
42 -meta_noindex_nofollow:"Ne pas indexer et ne pas suivre les liens",  
43 -appearance_style:"Propri\u00E9t\u00E9s de la feuille de style et du style",  
44 -stylesheet:"Feuille de style",  
45 -style:"Style",  
46 -author:"Auteur",  
47 -copyright:"Copyright",  
48 -add:"Ajouter nouvel \u00E9l\u00E9ment",  
49 -remove:"Enlever l'\u00E9l\u00E9ment s\u00E9lectionn\u00E9",  
50 -moveup:"D\u00E9placer l'\u00E9l\u00E9ment s\u00E9lectionn\u00E9 vers le haut",  
51 -movedown:"D\u00E9placer l'\u00E9l\u00E9ment s\u00E9lectionn\u00E9 vers le bas",  
52 -head_elements:"\u00C9l\u00E9ments de t\u00EAte",  
53 -info:"Information",  
54 -add_title:"\u00C9l\u00E9ment de titre",  
55 -add_meta:"\u00C9l\u00E9ment Meta",  
56 -add_script:"\u00C9l\u00E9ment de script",  
57 -add_style:"\u00C9l\u00E9ment de style",  
58 -add_link:"\u00C9l\u00E9ment de lien",  
59 -add_base:"\u00C9l\u00E9ment de base",  
60 -add_comment:"Commentaire",  
61 -title_element:"\u00C9l\u00E9ment de titre",  
62 -script_element:"\u00C9l\u00E9ment de script",  
63 -style_element:"\u00C9l\u00E9ment de style",  
64 -base_element:"\u00C9l\u00E9ment de base",  
65 -link_element:"\u00C9l\u00E9ment de lien",  
66 -meta_element:"\u00C9l\u00E9ment Meta",  
67 -comment_element:"Commentaire",  
68 -src:"Source",  
69 -language:"Langue",  
70 -href:"Href",  
71 -target:"Cible",  
72 -type:"Type",  
73 -charset:"Charset",  
74 -defer:"Def\u00E9rer",  
75 -media:"M\u00E9dia",  
76 -properties:"Propri\u00E9t\u00E9s",  
77 -name:"Nom",  
78 -value:"Valeur",  
79 -content:"Contenu",  
80 -rel:"Rel",  
81 -rev:"Rev",  
82 -hreflang:"Href lang",  
83 -general_props:"G\u00E9n\u00E9ral",  
84 -advanced_props:"Avanc\u00E9"  
85 -});  
86 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/fullpage/langs/nl_dlg.js
@@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
1 -tinyMCE.addI18n('nl.fullpage_dlg',{  
2 -title:"Documenteigenschappen",  
3 -meta_tab:"Algemeen",  
4 -appearance_tab:"Weergave",  
5 -advanced_tab:"Geavanceerd",  
6 -meta_props:"Meta informatie",  
7 -langprops:"Taal en codering",  
8 -meta_title:"Titel",  
9 -meta_keywords:"Sleutelwoorden",  
10 -meta_description:"Beschrijving",  
11 -meta_robots:"Robots",  
12 -doctypes:"Doctype",  
13 -langcode:"Taalcode",  
14 -langdir:"Taalrichting",  
15 -ltr:"Van links naar rechts",  
16 -rtl:"Van rechts naar links",  
17 -xml_pi:"XML toewijzing",  
18 -encoding:"Karaktercodering",  
19 -appearance_bgprops:"Achtergrondeigenschappen",  
20 -appearance_marginprops:"Bodymarge",  
21 -appearance_linkprops:"Linkkleuren",  
22 -appearance_textprops:"Teksteigenschappen",  
23 -bgcolor:"Achtergrondkleur",  
24 -bgimage:"Achtergrondafbeelding",  
25 -left_margin:"Linkermarge",  
26 -right_margin:"Rechtermarge",  
27 -top_margin:"Bovenmarge",  
28 -bottom_margin:"Ondermarge",  
29 -text_color:"Tekstkleur",  
30 -font_size:"Tekengrootte",  
31 -font_face:"Lettertype",  
32 -link_color:"Linkkleur",  
33 -hover_color:"Hoverkleur",  
34 -visited_color:"Bezocht kleur",  
35 -active_color:"Actieve kleur",  
36 -textcolor:"Kleur",  
37 -fontsize:"Tekengrootte",  
38 -fontface:"Lettertype",  
39 -meta_index_follow:"Links indexeren en volgen",  
40 -meta_index_nofollow:"Links indexeren maar niet volgen",  
41 -meta_noindex_follow:"Links volgen maar niet indexeren",  
42 -meta_noindex_nofollow:"Links niet indexeren en niet volgen",  
43 -appearance_style:"Stijlblad en stijleigenschappen",  
44 -stylesheet:"Stijlblad",  
45 -style:"Stijl",  
46 -author:"Auteur",  
47 -copyright:"Copyright",  
48 -add:"Nieuw element toevoegen",  
49 -remove:"Geselecteerde elementen verwijderen",  
50 -moveup:"Geselecteerde elementen omhoog verplaatsen",  
51 -movedown:"Geselecteerde elementen omlaag verplaatsen",  
52 -head_elements:"Kopelementen",  
53 -info:"Informatie",  
54 -add_title:"Titelelement",  
55 -add_meta:"Meta-element",  
56 -add_script:"Scriptelement",  
57 -add_style:"Stijlelement",  
58 -add_link:"Linkelement",  
59 -add_base:"Basiselement",  
60 -add_comment:"Opmerkingknooppunt",  
61 -title_element:"Titelelement",  
62 -script_element:"Scriptelement",  
63 -style_element:"Stijlelement",  
64 -base_element:"Basiselement",  
65 -link_element:"Linkelement",  
66 -meta_element:"Meta-element",  
67 -comment_element:"Opmerking",  
68 -src:"Bron",  
69 -language:"Taal",  
70 -href:"Href",  
71 -target:"Doel",  
72 -type:"Type",  
73 -charset:"Karakterset",  
74 -defer:"Uitstellen",  
75 -media:"Media",  
76 -properties:"Eigenschappen",  
77 -name:"Naam",  
78 -value:"Waarde",  
79 -content:"Inhoud",  
80 -rel:"Rel",  
81 -rev:"Rev",  
82 -hreflang:"Href taal",  
83 -general_props:"Algemeen",  
84 -advanced_props:"Geavanceerd"  
85 -});  
86 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/fullpage/langs/pt_dlg.js
@@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
1 -tinyMCE.addI18n('pt.fullpage_dlg',{  
2 -title:"Propriedades do documento",  
3 -meta_tab:"Geral",  
4 -appearance_tab:"Apar\u00EAncia",  
5 -advanced_tab:"Avan\u00E7ado",  
6 -meta_props:"Meta-informa\u00E7\u00E3o",  
7 -langprops:"Linguagem e codifica\u00E7\u00E3o",  
8 -meta_title:"T\u00EDtulo",  
9 -meta_keywords:"Palavras-chave",  
10 -meta_description:"Descri\u00E7\u00E3o",  
11 -meta_robots:"Robots",  
12 -doctypes:"Doctype",  
13 -langcode:"C\u00F3digo de linguagem",  
14 -langdir:"Dire\u00E7\u00E3o do texto",  
15 -ltr:"Esquerda para direita",  
16 -rtl:"Direita para esquerda",  
17 -xml_pi:"Declara\u00E7\u00E3o XML",  
18 -encoding:"Codifica\u00E7\u00E3o de caracteres",  
19 -appearance_bgprops:"Propriedades do plano de fundo",  
20 -appearance_marginprops:"Margens (BODY)",  
21 -appearance_linkprops:"Cores dos links",  
22 -appearance_textprops:"Propriedades de texto",  
23 -bgcolor:"Cor de fundo",  
24 -bgimage:"Imagem de fundo",  
25 -left_margin:"Margem esquerda",  
26 -right_margin:"Margem direita",  
27 -top_margin:"Margem topo",  
28 -bottom_margin:"Margem base",  
29 -text_color:"Cor do texto",  
30 -font_size:"Tamanho fonte",  
31 -font_face:"Fonte",  
32 -link_color:"Cores dos links",  
33 -hover_color:"Hover",  
34 -visited_color:"Visitado",  
35 -active_color:"Ativo",  
36 -textcolor:"Cor",  
37 -fontsize:"Tamanho fonte",  
38 -fontface:"Fonte",  
39 -meta_index_follow:"Indexar e seguir os hyperlinks",  
40 -meta_index_nofollow:"Indexar e n\u00E3o seguir os hyperlinks",  
41 -meta_noindex_follow:"Seguir hyperlinks, mas n\u00E3o indexar",  
42 -meta_noindex_nofollow:"N\u00E3o indexar / n\u00E3o seguir hyperlinks.",  
43 -appearance_style:"Propriedades de folhas de estilo",  
44 -stylesheet:"Folha de estilo",  
45 -style:"Estilo",  
46 -author:"Autor",  
47 -copyright:"Copyright",  
48 -add:"Acrescentar Novo elemento",  
49 -remove:"Remover elemento selecionado",  
50 -moveup:"Subir elemento selecionado",  
51 -movedown:"Descer elemento selecionado",  
52 -head_elements:"Elementos HEAD",  
53 -info:"Informa\u00E7\u00E3o",  
54 -add_title:"TITLE",  
55 -add_meta:"META",  
56 -add_script:"SCRIPT",  
57 -add_style:"STYLE",  
58 -add_link:"LINK",  
59 -add_base:"BASE",  
60 -add_comment:"Coment\u00E1rio",  
61 -title_element:"TITLE",  
62 -script_element:"SCRIPT",  
63 -style_element:"STYLE",  
64 -base_element:"BASE",  
65 -link_element:"LINK",  
66 -meta_element:"META",  
67 -comment_element:"Coment\u00E1rio",  
68 -src:"src",  
69 -language:"Idioma",  
70 -href:"href",  
71 -target:"Alvo",  
72 -type:"Tipo",  
73 -charset:"Charset",  
74 -defer:"Adiar",  
75 -media:"Media",  
76 -properties:"Propriedades",  
77 -name:"Nome",  
78 -value:"Valor",  
79 -content:"Conte\u00FAdo",  
80 -rel:"rel",  
81 -rev:"rev",  
82 -hreflang:"href lang",  
83 -general_props:"Geral",  
84 -advanced_props:"Avan\u00E7ado"  
85 -});  
86 \ No newline at end of file 0 \ No newline at end of file
public/javascripts/tinymce/jscripts/tiny_mce/plugins/plugins/media/langs/de_dlg.js
@@ -1,103 +0,0 @@ @@ -1,103 +0,0 @@
1 -tinyMCE.addI18n('de.media_dlg',{  
2 -title:"Multimedia-Inhalte einf\u00FCgen / bearbeiten",  
3 -general:"Allgemein",  
4 -advanced:"Erweitert",  
5 -file:"Datei/URL",  
6 -list:"Liste",  
7 -size:"Abmessungen",  
8 -preview:"Vorschau",  
9 -constrain_proportions:"Proportionen erhalten",  
10 -type:"Typ",  
11 -id:"Id",  
12 -name:"Name",  
13 -class_name:"CSS-Klasse",  
14 -vspace:"Vertikaler Abstand",  
15 -hspace:"Horizontaler Abstand",  
16 -play:"Automatisches Abspielen",  
17 -loop:"Wiederholung",  
18 -menu:"Men\u00FC anzeigen",  
19 -quality:"Qualit\u00E4t",  
20 -scale:"Skalierung",  
21 -align:"Ausrichtung",  
22 -salign:"S-Ausrichtung",  
23 -wmode:"WMode",  
24 -bgcolor:"Hintergrund",  
25 -base:"Base",  
26 -flashvars:"Flashvariablen",  
27 -liveconnect:"SWLiveConnect",  
28 -autohref:"AutoHREF",  
29 -cache:"Zwischenspeicher",  
30 -hidden:"Versteckt",  
31 -controller:"Controller",  
32 -kioskmode:"Kioskmodus",  
33 -playeveryframe:"Jeden Frame abspielen",  
34 -targetcache:"Ziel zwischenspeichern",  
35 -correction:"Ohne Korrektur",  
36 -enablejavascript:"JavaScript aktivieren",  
37 -starttime:"Startzeitpunkt",  
38 -endtime:"Endzeitpunkt",  
39 -href:"Href",  
40 -qtsrcchokespeed:"Choke speed",  
41 -target:"Ziel",  
42 -volume:"Lautst\u00E4rke",  
43 -autostart:"Autostart",  
44 -enabled:"Aktiviert",  
45 -fullscreen:"Vollbild",  
46 -invokeurls:"Invoke URLs",  
47 -mute:"Stumm",  
48 -stretchtofit:"Anzeigefl\u00E4che an verf\u00FCgbaren Platz anpassen",  
49 -windowlessvideo:"Fensterloses Video",  
50 -balance:"Balance",  
51 -baseurl:"Base URL",  
52 -captioningid:"Captioning id",  
53 -currentmarker:"Aktueller Marker",  
54 -currentposition:"Aktuelle Position",  
55 -defaultframe:"Frame-Voreinstellung",  
56 -playcount:"Z\u00E4hler",  
57 -rate:"Rate",  
58 -uimode:"UI Modus",  
59 -flash_options:"Flash-Optionen",  
60 -qt_options:"Quicktime-Optionen",  
61 -wmp_options:"Optionen f\u00FCr Windows Media Player",  
62 -rmp_options:"Optionen f\u00FCr Real Media Player",  
63 -shockwave_options:"Shockwave-Optionen",  
64 -autogotourl:"Auto goto URL",  
65 -center:"Zentriert",  
66 -imagestatus:"Bildstatus",  
67 -maintainaspect:"Bildverh\u00E4ltnis beibehalten",  
68 -nojava:"Kein Java",  
69 -prefetch:"Prefetch",  
70 -shuffle:"Zuf\u00E4llige Wiedergabe",  
71 -console:"Konsole",  
72 -numloop:"Anzahl Wiederholungen",  
73 -controls:"Steuerung",  
74 -scriptcallbacks:"Script callbacks",  
75 -swstretchstyle:"Stretch style",  
76 -swstretchhalign:"Stretch H-Ausrichtung",  
77 -swstretchvalign:"Stretch V-Ausrichtung",  
78 -sound:"Ton",  
79 -progress:"Fortschritt",  
80 -qtsrc:"QT Src",  
81 -qt_stream_warn:"In den Erweiterten Einstellungen sollten im Feld 'QT Src' gestreamte rtsp Resourcen hinzugef\u00FCgt werden.\nzus\u00E4tzlich sollten Sie dort auch eine nicht-gestreamte Resource angeben.",  
82 -align_top:"Oben",  
83 -align_right:"Rechts",  
84 -align_bottom:"Unten",  
85 -align_left:"Links",  
86 -align_center:"Zentriert",  
87 -align_top_left:"Oben Links",  
88 -align_top_right:"Oben Rechts",  
89 -align_bottom_left:"Unten Links",  
90 -align_bottom_right:"Unten Rechts",  
91 -flv_options:"Optionen f\u00FCr Flash Video",  
92 -flv_scalemode:"Skalierungsmodus",  
93 -flv_buffer:"Puffer",  
94 -flv_startimage:"Startbild",  
95 -flv_starttime:"Startzeitpunkt",  
96 -flv_defaultvolume:"Standardlautst\u00E4rke",  
97 -flv_hiddengui:"Versteckte GUI",  
98 -flv_autostart:"Autostart",  
99 -flv_loop:"Wiederholung",  
100 -flv_showscalemodes:"Skalierungsmodi anzeigen",  
101 -flv_smoothvideo:"Smooth Video",  
102 -flv_jscallback:"JS Callback"  
103 -});  
104 \ No newline at end of file 0 \ No newline at end of file