|
@@ -66,10 +66,15 @@ if ($user->isAuthenticated()) {
|
66
|
66
|
$_POST["description"] = addslashes($_POST["description"]);
|
67
|
67
|
}
|
68
|
68
|
|
|
69
|
+
|
69
|
70
|
$textile = new Textile();
|
70
|
71
|
|
71
|
72
|
$_POST["title"] = $textile->TextileThis(removeBadTags($_POST["title"],true));
|
72
|
73
|
$_POST["description"] = $textile->TextileThis(removeBadTags($_POST["description"]));
|
|
74
|
+ */
|
|
75
|
+
|
|
76
|
+ $_POST["title"] = removeBadTags($_POST["title"],true);
|
|
77
|
+ $_POST["description"] = removeBadTags($_POST["description"]);
|
73
|
78
|
|
74
|
79
|
if (isset($_POST["id_post"])) {
|
75
|
80
|
$tumble->modifyPost($_POST, $_POST["id_post"]);
|
|
@@ -112,12 +117,29 @@ if ($user->isAuthenticated()) {
|
112
|
117
|
if($conf->richText) {
|
113
|
118
|
?>
|
114
|
119
|
<script src="<?php echo $conf->urlGelato;?>/admin/scripts/nicEdit.js" type="text/javascript"></script>
|
115
|
|
- <script type="text/javascript">
|
|
120
|
+ <script type="text/javascript">
|
116
|
121
|
bkLib.onDomLoaded(nicEditors.allTextAreas);
|
117
|
|
- </script>
|
|
122
|
+ </script>
|
|
123
|
+<?php
|
|
124
|
+ } else {
|
|
125
|
+
|
|
126
|
+?>
|
|
127
|
+ <script type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/jquery.markitup.pack.js"></script>
|
|
128
|
+ <script type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/sets/html/set.js"></script>
|
|
129
|
+
|
|
130
|
+ <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/skins/simple/style.css" />
|
|
131
|
+ <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/sets/html/style.css" />
|
|
132
|
+
|
|
133
|
+ <script type="text/javascript" >
|
|
134
|
+ $(document).ready(function() {
|
|
135
|
+ $("#description").markItUp(my_html);
|
|
136
|
+ });
|
|
137
|
+ </script>
|
118
|
138
|
<?php
|
119
|
139
|
}
|
|
140
|
+
|
120
|
141
|
?>
|
|
142
|
+
|
121
|
143
|
<style type="text/css" media="screen">
|
122
|
144
|
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
123
|
145
|
@import "<?php echo $conf->urlGelato;?>/admin/css/lightbox.css";
|
|
@@ -292,11 +314,16 @@ if ($user->isAuthenticated()) {
|
292
|
314
|
?>
|
293
|
315
|
<p>
|
294
|
316
|
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
295
|
|
- <a href="http://hobix.com/textile/">Textile</a> <?php echo __("syntax is supported.")?>
|
296
|
|
- <br />
|
297
|
|
- Bookmarklet - <a href="javascript:var w; setTimeout('w.focus()',100);w=window.open('<?php echo $conf->urlGelato; ?>/admin/bm.php?url='+encodeURIComponent(location.href)+'&sel='+encodeURIComponent(window.getSelection()),'bookmarklet','toolbar=0,resizable=0,status=1,width=650,height=460,dependent=yes' ); w.focus();"><?php echo __("add to gelato")?></a>
|
298
|
|
- </span>
|
299
|
|
- </p>
|
|
317
|
+ <?php echo __("Some HTML allowed")?>:<br />
|
|
318
|
+
|
|
319
|
+ <code>
|
|
320
|
+ <strong> <em> <del> <ul> <ol> <li> <a>
|
|
321
|
+ <br />
|
|
322
|
+ <blockquote>
|
|
323
|
+ <code> <pre> <img>
|
|
324
|
+ <code>
|
|
325
|
+ <br />
|
|
326
|
+ Bookmarklet - <a href="javascript:var w; setTimeout('w.focus()',100);w=window.open('<?php echo $conf->urlGelato; ?>/admin/bm.php?url='+encodeURIComponent(location.href)+'&sel='+encodeURIComponent(window.getSelection()),'bookmarklet','toolbar=0,resizable=0,status=1,width=650,height=460,dependent=yes' ); w.focus();"><?php echo __("add to gelato")?></a> </span> </p>
|
300
|
327
|
<p>
|
301
|
328
|
<input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" />
|
302
|
329
|
</p>
|