Skip to main content
Participating Frequently
April 13, 2007
Question

formating textarea content

  • April 13, 2007
  • 2 replies
  • 342 views
I would like to format the content of the textarea

Just like the forum content. Is there any sample code avaialble?
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    April 13, 2007
    FCkEditor and TinyMce are arguably the most popular wysiwyg editors. They're both free, open source and well documented. Google them.
    Participating Frequently
    April 24, 2007
    I tried TinyMce. It works fine if i call the page but have problems when used it in conjuction with iframes. Both text box and the buttons are disabled. I have an index page. When a call is made to the other pages, content of the <div> tag is assigning to the div tag of the index page. Please check the div tags on the index page and the javascript on other pages. Through out my application i use target="cont" for all <a> tags and form submit options.

    Main page div tag
    __________________
    <iframe name="cont" width="1px" height="1px" src="admin/maintenance.cfm" style="visibility:hidden" ></iframe>
    <div style="padding-left:0px; padding-top:0px;" id="main_div"></div>


    Javascript on other pages
    ________________________

    <script language="JavaScript" type="text/JavaScript">
    function load_content () {
    if (parent.document.getElementById('main_div')) {
    parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame').innerHTML;
    }

    if (!parent.document.getElementById('main_div')) {
    window.location=('index.html') ;
    }
    }
    </script>

    Any help is appreciated. I am lost with this whole situation
    April 13, 2007
    Firstly what do you mean by "formatting"? That could mean any number of different things. Secondly, formatting is an issue with regard to xhtml and css not ColdFusion - have you thought about posting to a more design related forum in here rather than technical?