943,740 Members | Top Members by Rank

Ad:
Jan 15th, 2007
0

WYSIWYG online editors

Expand Post »
Hi there!

I am currently creating a website that needs to be editable by the client and have been looking into free online WYSIWYG editors. I have been focusing on FCKeditor, but also looking into TinyMCE.

I managed to partly integrate FCKeditor - it saves the text, but doesn't display it at the start. I am not using it with a database, could that be why it's not working properly?

Any suggestions/comments (good or bad) on free online WYSIWYG editors avaliable?

- Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sunflowerz is offline Offline
16 posts
since Sep 2006
Jan 15th, 2007
0

Re: WYSIWYG online editors

What exactly was the problem you're having with FCKEditor?

Of the open-source ones FCKEditor and TinyMCE seem to be the best for general development and Kupu is geared at Zope/Plone and that kind of stuff.

There are a few proprietary ones (a quick google will no-doubt find them) but I'd try the open ones first - you have nothing to lose that way and I'm sure one of them will do the job
pty
Reputation Points: 64
Solved Threads: 39
Posting Pro
pty is offline Offline
530 posts
since Oct 2005
Jan 16th, 2007
0

Re: WYSIWYG online editors

Hi pty.

I've also tried out having a main page with a submit button that then sends the file name (as a hidden field) to the page with the editor and then putting it into a variable, but no result.

I'm using the JavaScript version of the editor and working in PHP. Should I be using the PHP version of the editor?

The pages and code is as follows:

Admin page (admin/index.php page)

in head:
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>

in body:
<div id="content">
<form method="post" action="savefile.php">
<script type="text/javascript">
var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = "/FCKeditor/";
oFCKeditor.Value = "[COLOR=darkorange]<?php include('../test/test.html') ?>";
oFCKeditor.Create();
</script>
<input type="submit" value="Submit!" />
</form>
</div><!-- end content -->
Save File page (admin/savefile.php page)
<?php
$newContent = stripslashes($_POST['FCKeditor1']);
 
$fileLocation = "../test/test.html";
 
$fh = fopen($fileLocation, 'w') or die("Sorry, can't open file...");
 
$stringData = $newContent;
 
 
fwrite($fh, $stringData);
 
fclose($fh);
 
?>
Viewed page (test/index.php)
<div id="content"><?php include('test.html'); ?></div><!-- end content -->
Content file (test/test.html)
<h1>Welcome!</h1>
<p> Lorem ipsum dolor sit…</p>
Last edited by peter_budo; Jun 23rd, 2010 at 11:42 am. Reason: Editing old post to sort colour formatting
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sunflowerz is offline Offline
16 posts
since Sep 2006
Jan 20th, 2007
0

Re: WYSIWYG online editors

Hi!
I have just worked out why it didn't work... the editor wants the code all on one line... strangely the output from the editor is not on one line... hmmm...

I also changed code for editor to:

[php] <script type="text/javascript">
<?php
print "var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = '/FCKeditor/';
oFCKeditor.Value = '";
include('../test/test.html');
print "';
oFCKeditor.Create();"; ?>
</script>[/php]
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sunflowerz is offline Offline
16 posts
since Sep 2006
Jan 22nd, 2007
0

Re: WYSIWYG online editors

Click to Expand / Collapse  Quote originally posted by sunflowerz ...
Hi!
I have just worked out why it didn't work... the editor wants the code all on one line... strangely the output from the editor is not on one line... hmmm...

I also changed code for editor to:

[php] <script type="text/javascript">
<?php
print "var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = '/FCKeditor/';
oFCKeditor.Value = '";
include('../test/test.html');
print "';
oFCKeditor.Create();"; ?>
</script>[/php]
Ah, nice one. I wouldn't have thought it'd cause a problem
pty
Reputation Points: 64
Solved Threads: 39
Posting Pro
pty is offline Offline
530 posts
since Oct 2005
Mar 18th, 2008
0

Re: WYSIWYG online editors

But.. i do your example and show me a mistake....my code is:

<?php
$oFCKeditor = new FCKeditor('TextArea') ;
$oFCKeditor->BasePath = 'FCKEditor/';
$oFCKeditor->Width = '700' ;
$oFCKeditor->Height = '500' ;

// this is my mistake.. i want to include pag2.php in the textarea... please help me!!!
$oFCKeditor->Value = '";
include('/templates/indexk.html');"';
$oFCKeditor->Create() ;

?>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MoonKa is offline Offline
1 posts
since Mar 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Configuring Readymade Scripts Forum Timeline: What to do next ?
Next Thread in Configuring Readymade Scripts Forum Timeline: Where can I learn to make website promotion tools?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC