Paieška

FDisk (2010-03-31 15:16:36 ) :: [MM MODULIS] InnovaStudio naujienų editorius/redaktorius

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/* Pirmiausia atsisiunciam
http://www.failai.lt/5s6xy2bqgjqc/InnovaStudio.zip.htm
Tada imetam folderį "InnovaStudio" į javascript/htmlarea/
Atsidarom priedai/funkcijos.php ir pakeičiam funkciją editorius() į šitą:
*/
function editorius($tipas = 'rte', $dydis = 'standartinis', $id = false, $value = '') {
    global $conf;
    if (!$id) {
        $id = array('editor_'.md5(uniqid()));
    }
    if (!is_array($id)) { $id = array($id=>$value); }

    if (is_array($id)) {
        foreach ($id as $key => $val) {
        
        echo '
        <script type="text/javascript" src="javascript/htmlarea/InnovaStudio/sc
ripts/innovaeditor.js"></script>
      <script>
          var '.$key.' = new InnovaEditor("'.$key.'");//oEdit1

          /***************************************
************
            SETTING EDITOR DIMENSION (WIDTH x HEIGHT)
          ****************************************
***********/

          '.$key.'.width="100%";//You can also use %, for example: oEdit1.width="100%"
          '.$key.'.height=350;


          /***************************************
************
            SHOWING DISABLED BUTTONS
          ****************************************
***********/

          '.$key.'.features=["FullScreen","Preview
",
          "Superscript","Subscript",
          "Table","Guidelines",
          "Flash","Media","InternalLink","CustomOb
ject",
          "Form","Characters","ClearAll","XHTMLSou
rce","BRK",
          "Cut","Copy","Paste","PasteWord","PasteT
ext",
          "Undo","Redo","Hyperlink","Bookmark","Im
age",
          "JustifyLeft","JustifyCenter","JustifyRi
ght","JustifyFull",
          "Numbering","Bullets","Indent","Outdent"
,
          "Line","RemoveFormat","BRK",
          "StyleAndFormatting","TextFormatting","L
istFormatting",
          "BoxFormatting","ParagraphFormatting","C
ssText","Styles",
          "Paragraph","FontName","FontSize",
          "Bold","Italic","Underline","Strikethrou
gh",
          "ForeColor","BackColor"];

          /***************************************
************
            APPLYING STYLESHEET
            (Using external css file)
          ****************************************
***********/

          '.$key.'.css="stiliai/' . input($conf['Stilius']) . '/default.css"; //Specify external css file here



          /***************************************
************
            ENABLE ASSET MANAGER ADD-ON
          ****************************************
***********/

          '.$key.'.cmdAssetManager = "modalDialogShow(\'../../assetmanager/as
setmanager.php\',640,465)"; //Command to open the Asset Manager add-on.
          //Use relative to root path (starts with "/")

          /***************************************
************
            ADDING YOUR CUSTOM LINK LOOKUP
          ****************************************
***********/

          '.$key.'.cmdInternalLink = "modelessDialogShow(\'../../tikrink.php?
action=links\',365,270)"; //Command to open your custom link lookup page.

          /***************************************
************
            ADDING YOUR CUSTOM CONTENT LOOKUP
          ****************************************
***********/

          '.$key.'.cmdCustomObject = "modelessDialogShow(\'../../objects.htm\
',365,270)"; //Command to open your custom content lookup page.


          /***************************************
************
            SETTING COLOR PICKER\'s CUSTOM COLOR SELECTION
          ****************************************
***********/

          '.$key.'.customColors=["#ff4500","#ffa50
0","#808000","#4682b4","#1e90ff","#9400d
3","#ff1493","#a9a9a9"];//predefined custom colors

          /***************************************
************
            SETTING EDITING MODE

            Possible values:
              - "HTMLBody" (default)
              - "XHTMLBody"
              - "HTML"
              - "XHTML"
          ****************************************
***********/

          '.$key.'.mode="XHTMLBody";


      </script>
      ';
            $return .= '
    <textarea id="'.$key.'" name="'.$key.'" style="width:100%;height:320px;">
      '.input($val).'
      </textarea>
    <script>'.$key.'.REPLACE(\''.$key.'\');</script>';
                
        }
    }
    return $return;
}

Rašyti komentarą

Prašome prisijungti!


Fatal error: Uncaught Error: Call to undefined function eregi() in /home/ammber/domains/mightmedia.lt/public_html/stiliai/basic/sfunkcijos.php:284 Stack trace: #0 [internal function]: bbcode_js(Array) #1 /home/ammber/domains/mightmedia.lt/public_html/stiliai/basic/sfunkcijos.php(160): preg_replace_callback('#\\<(.*?)javascr...', 'bbcode_js', 'Atid\xC5\xBEiai skait...') #2 /home/ammber/domains/mightmedia.lt/public_html/priedai/komentarai.php(77): bbchat('Atid\xC5\xBEiai skait...') #3 /home/ammber/domains/mightmedia.lt/public_html/puslapiai/codebin.php(88): komentarai(34) #4 /home/ammber/domains/mightmedia.lt/public_html/stiliai/basic/index.php(353): include('/home/ammber/do...') #5 /home/ammber/domains/mightmedia.lt/public_html/index.php(96): include_once('/home/ammber/do...') #6 {main} thrown in /home/ammber/domains/mightmedia.lt/public_html/stiliai/basic/sfunkcijos.php on line 284