Skip to content

Commit

Permalink
Upgraded TinyMCE to 3.3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Jun 30, 2010
1 parent e2a353b commit 4569fa4
Show file tree
Hide file tree
Showing 185 changed files with 2,014 additions and 1,033 deletions.
33 changes: 17 additions & 16 deletions application/assets/js/tiny_mce/langs/en.js 100755 → 100644
Expand Up @@ -90,7 +90,9 @@ desc:"Edit CSS Style"
paste:{
paste_text_desc:"Paste as Plain Text",
paste_word_desc:"Paste from Word",
selectall_desc:"Select All"
selectall_desc:"Select All",
plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
},
paste_dlg:{
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
Expand Down Expand Up @@ -121,8 +123,8 @@ cell:"Cell"
},
autosave:{
unload_msg:"The changes you made will be lost if you navigate away from this page.",
restore_content: "Restore auto-saved content",
warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?"
restore_content:"Restore auto-saved content.",
warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?."
},
fullscreen:{
desc:"Toggle fullscreen mode"
Expand Down Expand Up @@ -154,16 +156,15 @@ no_mpell:"No misspellings found."
pagebreak:{
desc:"Insert page break."
},
advlist : {
types : 'Types',
def : 'Default',
lower_alpha : "Lower alpha",
lower_greek : "Lower greek",
lower_roman : "Lower roman",
upper_alpha : "Upper alpha",
upper_roman : "Upper roman",
circle : "Circle",
disc : "Disc",
square : "Square"
}
}});
advlist:{
types:"Types",
def:"Default",
lower_alpha:"Lower alpha",
lower_greek:"Lower greek",
lower_roman:"Lower roman",
upper_alpha:"Upper alpha",
upper_roman:"Upper roman",
circle:"Circle",
disc:"Disc",
square:"Square"
}}});
Empty file modified application/assets/js/tiny_mce/plugins/advhr/css/advhr.css 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advhr/editor_plugin.js 100755 → 100644
Empty file.
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advhr/js/rule.js 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advhr/langs/en_dlg.js 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advhr/rule.htm 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advimage/image.htm 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advimage/img/sample.gif 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified application/assets/js/tiny_mce/plugins/advimage/js/image.js 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/advimage/langs/en_dlg.js 100755 → 100644
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -59,37 +59,39 @@
// Define minimum height
t.autoresize_min_height = ed.getElement().offsetHeight;

// Things to do when the editor is ready
ed.onInit.add(function(ed, l) {
// Show throbber until content area is resized properly
ed.setProgressState(true);
t.throbbing = true;

// Hide scrollbars
ed.getBody().style.overflowY = "hidden";
});

// Add appropriate listeners for resizing content area
ed.onChange.add(resize);
ed.onSetContent.add(resize);
ed.onPaste.add(resize);
ed.onKeyUp.add(resize);
ed.onPostRender.add(resize);

ed.onLoadContent.add(function(ed, l) {
resize();
if (ed.getParam('autoresize_on_init', true)) {
// Things to do when the editor is ready
ed.onInit.add(function(ed, l) {
// Show throbber until content area is resized properly
ed.setProgressState(true);
t.throbbing = true;

// Because the content area resizes when its content CSS loads,
// and we can't easily add a listener to its onload event,
// we'll just trigger a resize after a short loading period
setTimeout(function() {
// Hide scrollbars
ed.getBody().style.overflowY = "hidden";
});

ed.onLoadContent.add(function(ed, l) {
resize();

// Disable throbber
ed.setProgressState(false);
t.throbbing = false;
}, 1250);
});
// Because the content area resizes when its content CSS loads,
// and we can't easily add a listener to its onload event,
// we'll just trigger a resize after a short loading period
setTimeout(function() {
resize();

// Disable throbber
ed.setProgressState(false);
t.throbbing = false;
}, 1250);
});
}

// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
ed.addCommand('mceAutoResize', resize);
Expand Down
2 changes: 1 addition & 1 deletion application/assets/js/tiny_mce/plugins/contextmenu/editor_plugin.js 100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 23 additions & 3 deletions application/assets/js/tiny_mce/plugins/contextmenu/editor_plugin_src.js 100755 → 100644
Expand Up @@ -27,7 +27,7 @@
* @param {string} url Absolute URL to where the plugin is located.
*/
init : function(ed) {
var t = this;
var t = this, lastRng;

t.editor = ed;

Expand All @@ -42,13 +42,33 @@

ed.onContextMenu.add(function(ed, e) {
if (!e.ctrlKey) {
// Restore the last selection since it was removed
if (lastRng)
ed.selection.setRng(lastRng);

t._getMenu(ed).showMenu(e.clientX, e.clientY);
Event.add(ed.getDoc(), 'click', hide);
Event.add(ed.getDoc(), 'click', function(e) {
hide(ed, e);
});
Event.cancel(e);
}
});

function hide() {
ed.onRemove.add(function() {
if (t._menu)
t._menu.removeAll();
});

function hide(ed, e) {
lastRng = null;

// Since the contextmenu event moves
// the selection we need to store it away
if (e && e.button == 2) {
lastRng = ed.selection.getRng();
return;
}

if (t._menu) {
t._menu.removeAll();
t._menu.destroy();
Expand Down
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion application/assets/js/tiny_mce/plugins/fullpage/editor_plugin.js 100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions application/assets/js/tiny_mce/plugins/fullpage/editor_plugin_src.js 100755 → 100644
Expand Up @@ -85,6 +85,10 @@
_setContent : function(ed, o) {
var t = this, sp, ep, c = o.content, v, st = '';

// Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate
if (o.format == 'raw' && t.head)
return;

if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
return;

Expand Down
Empty file modified application/assets/js/tiny_mce/plugins/fullpage/fullpage.htm 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/fullpage/js/fullpage.js 100755 → 100644
Empty file.
Empty file modified application/assets/js/tiny_mce/plugins/fullpage/langs/en_dlg.js 100755 → 100644
Empty file.

0 comments on commit 4569fa4

Please sign in to comment.