如何将Tiny Editor值赋予文件后面的代码?

时间:2016-07-07 07:18:51

标签: javascript asp.net

 <textarea id="tinyeditor" cols="20" rows="2" style="padding-left: 200px;" runat="server"></textarea>
                        <script type="text/javascript">
                            var editor = new TINY.editor.edit('editor', {
                                id: 'tinyeditor',
                                width: 460,
                                height: 175,
                                cssclass: 'tinyeditor',
                                controlclass: 'tinyeditor-control',
                                rowclass: 'tinyeditor-header',
                                dividerclass: 'tinyeditor-divider',
                                controls: ['bold', 'italic', 'underline', 'strikethrough', '|', 'subscript', 'superscript', '|',
                                        'orderedlist', 'unorderedlist', '|', 'outdent', 'indent', '|', 'leftalign',
                                        'centeralign', 'rightalign', 'blockjustify', '|', 'unformat', '|', 'undo', 'redo', 'n',
                                        'font', 'size', '|', 'hr', 'link', 'unlink', '|'],
                                footer: true,
                                fonts: ['Arial', 'Courier New', 'Georgia', 'Tahoma', 'Times New Roman', 'verdana', 'Impact', 'Wing Dings'],
                                xhtml: true,
                                css: 'body{background-color:#fff}',
                                bodyid: 'editor',
                                footerclass: 'tinyeditor-footer',
                                // toggle: { text: 'source', activetext: 'wysiwyg', cssclass: 'toggle' },
                                resize: { cssclass: 'resize' }
                            });
                        </script>

我已将TinyEditor添加到textarea,需要获取tinyEditor的值才能编码后面的文件。我试过这个,请任何人帮忙解决它

0 个答案:

没有答案