Permalink
Browse files

Version 8.0.3

Fixed: remove not allowed tags when you switch from the source code into a visual mode.
Fixed: inserting link without http://.
Fixed: IE8 image resize.
Fixed: old Safari paste but without clean up :(
Fixed: inserting image, table, link outside focus of the editor.
Fixed: IE insertion by Fabio Poloni.
Fixed: API inserHTML focus.
Fixed: API setFocus.
New option: paragraphy - inserting break line (br tag) on return or enter.
New option: shortcuts - disable keydown / keyup shortcuts functionality.
New option: autosaveCallback.
New option: tabindex.
New option: minHeight.
New option: fixedTop.
New option: fixedBox.
New option: cleanup.
  • Loading branch information...
1 parent 7919084 commit 92dca61874b9d1703e416ebbfb551c1fa0d1e8bc imperavi committed with Oct 9, 2012
View
@@ -0,0 +1,26 @@
+html, body {
+ margin: 0;
+ padding: 0;
+}
+
+
+/* =Typography
+-----------------------------------------------------------------------------*/
+body {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 14px;
+}
+
+
+/* =Layout
+-----------------------------------------------------------------------------*/
+#page {
+ width: 940px;
+ margin: 50px auto;
+}
+
+/* =Misc
+-----------------------------------------------------------------------------*/
+.list li {
+ margin: 10px 0;
+}
View
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>All uploads</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ imageUpload: '../demo/scripts/image_upload.php',
+ fileUpload: '../demo/scripts/file_upload.php',
+ imageGetJson: '../demo/json/data.json'
+ });
+ }
+ );
+ </script>
+
+</head>
+<body>
+ <div id="page">
+ <textarea id="redactor_content" name="content">
+ <h2>Hello and Welcome</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ </textarea>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Autosave</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ autosave: 'scripts/save.php',
+ interval: 30,
+ autosaveCallback: testCallback
+ });
+ }
+ );
+
+ function testCallback(data, redactor_obj)
+ {
+ alert(data);
+ }
+
+ </script>
+
+</head>
+<body>
+ <div id="page">
+
+ <textarea id="redactor_content" name="content">
+ <h2>Hello and Welcome</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ </textarea>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Files upload</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ fileUpload: '../demo/scripts/file_upload.php'
+ });
+ }
+ );
+ </script>
+
+</head>
+<body>
+ <div id="page">
+ <textarea id="redactor_content" name="content">
+ <h2>Hello and Welcome</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ </textarea>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Fixed toolbar</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ fixed: true
+ });
+ }
+ );
+ </script>
+
+</head>
+<body>
+ <div id="page">
+ <textarea id="redactor_content" name="content">
+ <h2>Please, scroll down</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+
+ </textarea>
+
+ <br><br><br><br><br>
+ <br><br><br><br><br>
+ <br><br><br><br><br>
+ <br><br><br><br><br>
+ <br><br><br><br><br>
+ <br><br><br><br><br>
+ <p>It's true! Toolbar is fixed.</p>
+ <br><br><br><br><br>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>JSON</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ imageGetJson: '../demo/json/data.json'
+ });
+ }
+ );
+ </script>
+
+</head>
+<body>
+ <div id="page">
+ <textarea id="redactor_content" name="content">
+ <h2>Hello and Welcome</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ </textarea>
+ </div>
+</body>
+</html>
View
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Images upload</title>
+
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../css/style.css" />
+
+ <script type="text/javascript" src="../lib/jquery-1.7.min.js"></script>
+
+ <!-- Redactor is here -->
+ <link rel="stylesheet" href="../redactor/redactor.css" />
+ <script src="../redactor/redactor.js"></script>
+
+ <script type="text/javascript">
+ $(document).ready(
+ function()
+ {
+ $('#redactor_content').redactor({
+ imageUpload: '../demo/scripts/image_upload.php'
+ });
+ }
+ );
+ </script>
+
+</head>
+<body>
+ <div id="page">
+ <textarea id="redactor_content" name="content">
+ <h2>Hello and Welcome</h2>
+ <p>I never did quite grasp him, though he endeavored to explain it to me upon numerous occasions. I suggested telepathy, but he said no, that it was not telepathy since they could only communicate when in each others' presence, nor could they talk with the Sagoths or the other inhabitants of Pellucidar by the same method they used to converse with one another.</p>
+ <p>"What they do," said Perry, "is to project their thoughts into the fourth dimension, when they become appreciable to the sixth sense of their listener. Do I make myself quite clear?"</p>
+ <p>"You do not, Perry," I replied. He shook his head in despair, and returned to his work. They had set us to carrying a great accumulation of Maharan literature from one apartment to another, and there arranging it upon shelves. I suggested to Perry that we were in the public library of Phutra, but later, as he commenced to discover the key to their written language, he assured me that we were handling the ancient archives of the race.</p>
+ <p>During this period my thoughts were continually upon Dian the Beautiful. I was, of course, glad that she had escaped the Mahars, and the fate that had been suggested by the Sagoth who had threatened to purchase her upon our arrival at Phutra. I often wondered if the little party of fugitives had been overtaken by the guards who had returned to search for them. Sometimes I was not so sure but that I should have been more contented to know that Dian was here in Phutra, than to think of her at the mercy of Hooja the Sly One. Ghak, Perry, and I often talked together of possible escape, but the Sarian was so steeped in his lifelong belief that no one could escape from the Mahars except by a miracle, that he was not much aid to us—his attitude was of one who waits for the miracle to come to him.</p>
+ </textarea>
+ </div>
+</body>
+</html>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,14 @@
+[
+ { "thumb": "json/images/1_m.jpg", "image": "json/images/1.jpg", "title": "Image 1", "folder": "Folder 1" },
+ { "thumb": "json/images/2_m.jpg", "image": "json/images/2.jpg", "title": "Image 2", "folder": "Folder 1" },
+ { "thumb": "json/images/3_m.jpg", "image": "json/images/3.jpg", "title": "Image 3", "folder": "Folder 1" },
+ { "thumb": "json/images/4_m.jpg", "image": "json/images/4.jpg", "title": "Image 4", "folder": "Folder 1" },
+ { "thumb": "json/images/5_m.jpg", "image": "json/images/5.jpg", "title": "Image 5", "folder": "Folder 1" },
+ { "thumb": "json/images/1_m.jpg", "image": "json/images/1.jpg", "title": "Image 6", "folder": "Folder 1" },
+ { "thumb": "json/images/2_m.jpg", "image": "json/images/2.jpg", "title": "Image 7", "folder": "Folder 1" },
+ { "thumb": "json/images/3_m.jpg", "image": "json/images/3.jpg", "title": "Image 8", "folder": "Folder 1" },
+ { "thumb": "json/images/4_m.jpg", "image": "json/images/4.jpg", "title": "Image 9", "folder": "Folder 1" },
+ { "thumb": "json/images/5_m.jpg", "image": "json/images/5.jpg", "title": "Image 10", "folder": "Folder 2" },
+ { "thumb": "json/images/1_m.jpg", "image": "json/images/1.jpg", "title": "Image 11", "folder": "Folder 2" },
+ { "thumb": "json/images/2_m.jpg", "image": "json/images/2.jpg", "title": "Image 12", "folder": "Folder 2" }
+]
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 92dca61

Please sign in to comment.