I am creating a CMS type of system. I need text areas that users can
add formatted text and links. I installed TinyMCE and it works
beautifully when a user is creating an item in a textarea, but when a
user edits the item the textarea is no longer a TinyMCE editor - just
a plain old text area. Does anyone know why, and how do I fix it so
that when a user is editing a textarea item they can use TinyMCE?
Other options besides TinyMCE is welcomed as well.
Rick,
I tried widgeditor - seems buggy. Its OK, but now I am having the
problem that when a user is first creating content the textfield does
not let you enter text. But it works fine when you are editing
information. Any suggestions?
Michael,
I could not get the TinyMCE plugin to install - any suggestions?
I’m using TinyMCE also in a couple of projects of mine. But it has some
strange behaviours, which makes it hard for a user to edit his text.
Also it doesn’t react the same in Internet Explorer and Firefox, which
is a bit annoying. I’m considering switching to BBCode, which is used
very often on forums. I find it really easy, and it could be an
alternative for TinyMCE.
Sorry maybe I am confusing people. My problem is not that the text area
is
not editable, my problem is that when a user creates content (with a
create
action) for a page the tinymce editor works great, but when the user
then
wants to edit that content (with an edit action) the text area is just a
plain text area - no tinymce editor - the content is displayed in the
text
area with html tags.
I want the users to be able to use a tinymce editor to edit the content
just like when they created it.
Am I making sense?
Code:
In Layout
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 :
"bold,italic,underline,separator,bullist,numlist,link,
separator,preview",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
plugins : "preview"
});
In .rhtml partial (create and edit uses the same form)
Description:
<%= text_area('mod', 'description') %>
Thanks for any help.
On 1/30/07, Steve B. wrote:
>
>
> I have tinymce working fine on a rails app. Can you post the code for
> the textarea that you're trying to make editable?
>
> Steve
>
>
> >
>
--
Kim G.
[email protected]
"We are all stakeholders in the Karma economy."
Rick,
I tried widgeditor - seems buggy. Its OK, but now I am having the
problem that when a user is first creating content the textfield does
not let you enter text. But it works fine when you are editing
information. Any suggestions?
Yea, if you look at comment #208 on the blog, I posted a workaround for
it:
RE: 198 and 207
I added this to widgInit(), directly underneath the if (theTextarea.id
== “”) {} loop.
if (theTextarea.innerHTML == ‘’)
theTextarea.innerHTML = ‘Enter content here.’
It just adds content if there is none. Not perfect, but I can now
update my pages.