Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/websdk/static/js/wymeditor/plugins/fullscreen/.svn
diff options
context:
space:
mode:
Diffstat (limited to 'websdk/static/js/wymeditor/plugins/fullscreen/.svn')
-rw-r--r--websdk/static/js/wymeditor/plugins/fullscreen/.svn/entries96
-rw-r--r--websdk/static/js/wymeditor/plugins/fullscreen/.svn/prop-base/icon_fullscreen.gif.svn-base5
-rw-r--r--websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/icon_fullscreen.gif.svn-basebin509 -> 0 bytes
-rw-r--r--websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/jquery.wymeditor.fullscreen.js.svn-base127
4 files changed, 0 insertions, 228 deletions
diff --git a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/entries b/websdk/static/js/wymeditor/plugins/fullscreen/.svn/entries
deleted file mode 100644
index c18dcf7..0000000
--- a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/entries
+++ /dev/null
@@ -1,96 +0,0 @@
-10
-
-dir
-677
-svn://svn.wymeditor.org/wymeditor/trunk/src/wymeditor/plugins/fullscreen
-svn://svn.wymeditor.org/wymeditor
-
-
-
-2010-04-11T19:53:07.572530Z
-659
-mr_lundis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-89e89e35-0a13-0410-8f61-920bba073fa9
-
-jquery.wymeditor.fullscreen.js
-file
-
-
-
-
-2011-07-13T16:45:39.000000Z
-503112698b04abb0774b8697d6309576
-2010-04-11T19:53:07.572530Z
-659
-mr_lundis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-4383
-
-icon_fullscreen.gif
-file
-
-
-
-
-2011-07-13T16:45:39.000000Z
-f443297ce16c5a70b10874e2a3e90b0a
-2009-02-07T19:29:43.660231Z
-576
-jf.hovinne
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-509
-
diff --git a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/prop-base/icon_fullscreen.gif.svn-base b/websdk/static/js/wymeditor/plugins/fullscreen/.svn/prop-base/icon_fullscreen.gif.svn-base
deleted file mode 100644
index 5e9587e..0000000
--- a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/prop-base/icon_fullscreen.gif.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 13
-svn:mime-type
-V 24
-application/octet-stream
-END
diff --git a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/icon_fullscreen.gif.svn-base b/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/icon_fullscreen.gif.svn-base
deleted file mode 100644
index d2a8b0a..0000000
--- a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/icon_fullscreen.gif.svn-base
+++ /dev/null
Binary files differ
diff --git a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/jquery.wymeditor.fullscreen.js.svn-base b/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/jquery.wymeditor.fullscreen.js.svn-base
deleted file mode 100644
index 275c816..0000000
--- a/websdk/static/js/wymeditor/plugins/fullscreen/.svn/text-base/jquery.wymeditor.fullscreen.js.svn-base
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * WYMeditor : what you see is What You Mean web-based editor
- * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
- * Dual licensed under the MIT (MIT-license.txt)
- * and GPL (GPL-license.txt) licenses.
- *
- * For further information visit:
- * http://www.wymeditor.org/
- *
- * File Name:
- * jquery.wymeditor.fullscreen.js
- * Fullscreen plugin for WYMeditor
- *
- * File Authors:
- * Luis Santos (luis.santos a-t openquest dotpt)
- * Jonatan Lundin (jonatan.lundin a-t gmail dotcom)
- * Gerd Riesselmann (gerd a-t gyro-php dot org) : Fixed issue with new skin layout
- */
-
-//Extend WYMeditor
-WYMeditor.editor.prototype.fullscreen = function() {
- var wym = this,
- $box = jQuery(this._box),
- $iframe = jQuery(this._iframe),
- $overlay = null,
- $window = jQuery(window),
-
- editorMargin = 15; // Margin from window (without padding)
-
-
- //construct the button's html
- var html = "<li class='wym_tools_fullscreen'>"
- + "<a name='Fullscreen' href='#'"
- + " style='background-image:"
- + " url(" + wym._options.basePath +"plugins/fullscreen/icon_fullscreen.gif)'>"
- + "Fullscreen"
- + "</a></li>";
-
- //add the button to the tools box
- $box.find(wym._options.toolsSelector + wym._options.toolsListSelector)
- .append(html);
-
- function resize () {
- // Calculate margins
- var uiHeight = $box.outerHeight(true)
- - $iframe.outerHeight(true),
- editorPadding = $box.outerWidth() - $box.width(),
-
- // Calculate heights
- screenHeight = $window.height(),
- iframeHeight = (screenHeight
- - uiHeight
- - (editorMargin * 2)) + 'px',
-
- // Calculate witdths
- screenWidth = $window.width(),
- boxWidth = (screenWidth
- - editorPadding
- - (editorMargin * 2)) + 'px';
-
- $box.css('width', boxWidth);
- $iframe.css('height', iframeHeight);
- $overlay.css({
- 'height': screenHeight + 'px',
- 'width': screenWidth + 'px'
- });
- };
-
- //handle click event
- $box.find('li.wym_tools_fullscreen a').click(function() {
- if ($box.css('position') != 'fixed') {
- // Store previous inline styles
- $box.data('wym-inline-css', $box.attr('style'));
- $iframe.data('wym-inline-css', $iframe.attr('style'));
-
- // Create overlay
- $overlay = jQuery('<div id="wym-fullscreen-overlay"></div>')
- .appendTo('body').css({
- 'position': 'fixed',
- 'background-color': 'rgb(0, 0, 0)',
- 'opacity': '0.75',
- 'z-index': '98',
- 'top': '0px',
- 'left': '0px'
- });
-
- // Possition the editor
- $box.css({
- 'position': 'fixed',
- 'z-index': '99',
- 'top': editorMargin + 'px',
- 'left': editorMargin + 'px'
- });
-
- // Bind event listeners
- $window.bind('resize', resize);
- $box.find('li.wym_tools_html a').bind('click', resize);
-
- // Force resize
- resize();
- } else {
- // Unbind event listeners
- $window.unbind('resize', resize);
- $box.find('li.wym_tools_html a').unbind('click', resize);
-
- // Remove inline styles
- $box.css({
- 'position': 'static',
- 'z-index': '',
- 'width': '',
- 'top': '',
- 'left': ''
- });
- $iframe.css('height', '');
-
- // Remove overlay
- $overlay.remove();
- $overlay = null;
-
- // Retore previous inline styles
- $box.attr('style', $box.data('wym-inline-css'));
- $iframe.attr('style', $iframe.data('wym-inline-css'));
- }
-
- return false;
- });
-};