From 9eda1192351ae18f01738321f2adfb4b0cfa165e Mon Sep 17 00:00:00 2001 From: Prasath Mani Date: Mon, 3 Dec 2018 23:58:25 +0530 Subject: [PATCH] Added Editor Toolbar - Themes, Document Mode, Search, Fullscreen, Undo, Redo, ... --- README.md | 3 +- tinyfilemanager.php | 125 +++++++++++++++++++++++++++++++++++--------- 2 files changed, 102 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 315593e..8c6c9d7 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,8 @@ To enable/disable authentication set `$use_auth` to true or false.
  • :gift: Ability to compress, extract files (zip, tar)
  • :sunglasses: Support user permissions - based on session and each user root folder mapping
  • :floppy_disk: Copy direct file URL
  • -
  • :pencil2: Edit text formats file using advanced editor
  • +
  • :pencil2: Cloud9 IDE - Syntax highlighting for over 90+ languages, Over 35+ themes with your favorite programming style +
  • :page_facing_up: Google Drive viewer helps you preview PDF/DOC/XLS/PPT/etc. 25 MB can be previewed with the Google Drive viewer
  • :zap: Backup files
  • :mag_right: Search - Search and Sorting using datatable js
  • diff --git a/tinyfilemanager.php b/tinyfilemanager.php index f780f72..cb08cb8 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1188,7 +1188,7 @@ if (isset($_GET['view'])) { if ($is_text && !FM_READONLY) { ?>   -   +  

    @@ -1299,24 +1299,43 @@ if (isset($_GET['edit'])) { ?>
    -
    - - - - - - - - - +
    +
    + +
    +
    + + + + + + + + + + - +
    ' . htmlspecialchars($content) . ''; + echo ''; } elseif ($is_text) { echo '
    ' . htmlspecialchars($content) . '
    '; } else { @@ -2646,7 +2665,7 @@ global $lang; H3K | Tiny File Manager - + @@ -2815,21 +2834,16 @@ global $lang; } #editor { position: absolute; - right: 30px - } - #editor { + right: 15px; top: 100px; - bottom: 10px; - left: 30px + bottom: 15px; + left: 15px } @media (max-width:481px) { #editor { top: 150px; } } - .edit-file-actions { - padding: 6px; - } #normal-editor { border-radius: 3px; border-width: 2px; @@ -2927,6 +2941,18 @@ global $lang; border-top: 1px dashed #8c8b8b; border-bottom: 1px dashed #fff; } + .btn.active.focus, + .btn.active:focus, + .btn.focus, + .btn.focus:active, + .btn:active:focus, + .btn:focus { + outline: 0 !important; + outline-offset: 0 !important; + background-image: none !important; + -webkit-box-shadow: none !important; + box-shadow: none !important; + } @@ -3132,7 +3158,56 @@ global $lang; - +