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!


Deprecated: Function eregi() is deprecated in /home/coders/web/mightmedia.lt/public_html/stiliai/basic/sfunkcijos.php on line 284

Komentarai

# FDisk (2010-05-26 09:36:29 )
avataras
Atidžiai skaitykit visą kodą, pridėjau komentarų.
Pirmiausia atsisiunciam
http://www.failai.lt/5s6xy2bqgjqc/InnovaStudio.zip.htm
Tada imetam folderį
InnovaStudio į java_script/htmlarea/
Atsidarom priedai/funkcijos.php ir pakeičiam funkciją editorius() į šitą:
# zlotas (2010-05-26 08:39:05 )
avataras
chebra,reik kazka daryt,koda lyg teisingai ikisau...
# zilwinelis (2010-05-25 20:44:47 )
avataras
o kas cia is viso turi būti ir kaip jį naudoti?
# dzastinas (2010-05-25 20:37:35 )
avataras
As taip pat katik pabandziau ir idejus sita koda,isvis niekas nebeveikia.Puslapio net nebekrauna.
# FDisk (2010-05-22 14:01:12 )
avataras
negali neveikt, veikia mm.lt ir mrcbug.com svetainese
# zlotas (2010-05-22 13:35:05 )
avataras
taip . man taipat neveikia...
# zlotas (2010-05-21 21:55:10 )
avataras
kas neveikia?
# LaurynasL (2010-03-31 16:20:40 )
avataras
hmm. kažkas neveikia...