Source language: Translate to:

WYSIWYG Text Editor

General questions about NeoBook

Moderator: Neosoft Support

WYSIWYG Text Editor

Postby Travin69 » Sun Jan 18, 2015 9:09 pm

Hello all.

I would like to know if anyone can assist me with making a WYSIWYG type text editor in NB. I downloaded CKEditor and TinyMCE but not sure how to make them work. I am trying to make a Blogclient so I can generate blog posts on my computer and upload them to a wordpress site.

Any ideas would be useful and greatly appreciated.

Regards,

Daniel
Travin69
 
Posts: 1
Joined: Sun Jan 02, 2011 10:14 am

Re: WYSIWYG Text Editor

Postby Tony Kroos » Sun Jan 18, 2015 11:04 pm

Open notepad and create file with this example content from tinymce
Code: Select all
<!DOCTYPE html>
<html>
<head><!-- CDN hosted by Cachefly -->
<script src="http://tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>
</head>
<body>
        <textarea>Easy! You should check out MoxieManager!</textarea>
</body>
</html>

Save as .html file. Open Neobook, create WebBrowser object and navigate it to your saved .html file and hit F9 to run.
You should see <textarea> content modified into WYSIWYG Text Editor and should be able to export this html code.
Play with formatting and customizing source html file to make it look awesome.
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Re: WYSIWYG Text Editor

Postby dpayer » Mon Jan 19, 2015 8:03 am

Tony has it right for the basics.

If you hope to open up previously worked on HTML files, you will find that this method needs the HTML file to be prepared first as some of the tags can't go in a textarea field in this editor.

Try the suggested route and ask questions as you reach roadblocks. I will dig into the code of the HTML editor I started but never finished as I remember creating a quick way to export the HTML generated I'll try to post here.
David Payer
Des Moines, Iowa
USA
User avatar
dpayer
 
Posts: 1384
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron