Pessoal, desculpa mesmo… mas ta realmente confuso “pra mim” aquele tuto do site…
Eu havia lido, baixei os jars indicados, criei o diretorio, coloquei os arquivos e etc…
mas nao entendi como chamar a parada da página…
Alguém aí já usou esse FCK e pode dar um auxílio?
Ou indicar outra coisa?
Eu achei um “KaEditor” aqui na web… mas eu não entendi tb como pegar a variável das caixas pra colocar no meu form…
olha o código dele:
<html>
<head>
<title></title>
<script type='text/javascript' src='./CodeJS/Utils.js'></script>
<script type='text/javascript' src='./CodeJS/Toolbar.js'></script>
<script type='text/javascript' src='./CodeJS/CreateEditor.js'></script>
<script type='text/javascript' src='./CodeJS/Optional.js'></script>
<script type="text/javascript">
// [OPTIONAL] UserCode, eg: for custom buttons
function MyFunction01() {
alert( "Custom Button 1!" );
}
// [OPTIONAL] Get the text in the RTA and
// do whatever you want, eg save it in the DB
function Save(iFrmId) {
var rtatxt = GetRTAData( iFrmId );
alert(rtatxt);
}
</script>
</head>
<body>
<script type="text/javascript">
// [CREATE EDITOR INSTANCES]
kaEditor( 500, 150, 500 ); // Editor Width,Height, Toolbar Width
document.write( "<br />" );
kaEditor( 500, 150, 500 );
utils1 = new Utils();
if( utils1.IsIE() ) {
window.attachEvent( "onload", onWindowLoaded );
}
else {
window.addEventListener( "load", onWindowLoaded, false );
}
function onWindowLoaded() {
// [OPTIONAL] After Editors were created: Load SomeData into RTAs
LoadDataToRTA("iFrm1", "<b>111</b>");
LoadDataToRTA("iFrm2", "<i>222</i>");
// [OPTIONAL] Attach Keyboard Handlers to work in Geckos like ctrl+b, ctrl+u, ctrl+i
DoGeckoKbdHandler("iFrm1");
DoGeckoKbdHandler("iFrm2");
// [OPTIONAL] TODO: EnterKeyHandlerIE : replace <p> tags by <br />
//setTimeout( function() { EnterKeyHandlerIE("iFrm1"); EnterKeyHandlerIE("iFrm2");}, 100 );
}
</script>
</body>
</html>
Valeu