Jump to content

Php Combo Box, With Ajax Load Into Wysiwyg Textarea - Need Help?


Recommended Posts

Hello everybody,

 

First of all, I have created a simple content management system. Using PHP/MYSQL/HTML5/CSS3. The Blog page shows all articles, which can be deleted or edited. An article can also be added within the WYSIWYG. This system works fine.

 

However....

 

We want to make things simpler.

 

Using a combo box that loads the content into the text-area.

 

The Problem we are experiencing is that when the WYSIWYG is put in, it does not allow the content from the database to enter the text area.

 

Without these two lines of code which are placed in the <head>. The content loads into the text-area just fine.

 

"

<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>

<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>

"

 

What needs to be done to allow the content to enter the WYSIWYG ?

 

Please help ?????

 

Any help will be very appreciated

 

Thank you

 

 

I have attached the files that allow this to work.

 

/combo.php will show the text area with the combo box

 

if you would like to test it a connection.php file will need to be created.

 

A mysql database with a table called blogs.

 

with the attributes of (id,blog_title,blog_content)

combo.php

getuser.php

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.