Categories > TinyButStrong general >

FCKEditor

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Maz
Date: 2006-07-14
Time: 15:24

FCKEditor

Does anyone have an example of adding the FCKEditor within a template, at all, please?
By: NeverPanic
Date: 2006-07-16
Time: 15:59

Re: FCKEditor

It works, I can tell you that.

I would send you a live example, but I only use FCKeditor for the backend systems I write, so it would probably be a bad idea to give access out to the public.
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
        <script type="text/javascript">
            use_charset = 'utf-8';
            function addNews() {
                document.getElementById('new').style.display = 'block';
                scroll(0, 0);
                var deFCKeditor = new FCKeditor( 'FCKeditor_de', '100%', '300px' );
                deFCKeditor.BasePath    = '/FCKeditor/';
                deFCKeditor.ReplaceTextarea();
                var enFCKeditor = new FCKeditor( 'FCKeditor_en', '100%', '300px' );
                enFCKeditor.BasePath = '/FCKeditor/';
                enFCKeditor.ReplaceTextarea();
            }
            function hideNew() {
                window.location.href = window.location.href;
            }
            // [onshow;when [var.newsAdminAccess]!=true;block=script+script+(script)]
        </script>

--------------------------

<div style="height:300px;">
                                        <textarea name="FCKeditor_de" id="FCKEditor_de" cols="50" rows="10" style="width:100%; height:100%"> </textarea>
                                    </div>