I'm sure that most of us are supporting mysql tables
for web pages with this code. My customers have asked
for some simple HTML editor features in this product.
Bold, underline, colors... Just some simple tag support.
This really does complicate the issue and I have told
my customers that the best I could do not is to have
examples displayed of how to do it and they could
copy/paste the examples into the fields.
Has anyone tossed around this type of an idea?
Best regards,
sparky
Logged In: YES
user_id=417907
Hi Bill!
That's one of the enhancements i would like to see in
PHPMyEdit.
Because i need this feature in the future i tried to
integrate the HTML Richtext Editor
http://richtext.sourceforge.net/ into PHPMyEdit.
It did work, but i experienced some problems so far:
because the richtext-editor represents no regular html form
field you need to include a <textarea> field which acts as
data-source for the richtext-editor on one hand. on the
other the richtext-editor passes the modified text as html
code back to the <textarea> field to enable the changed
text-data to be submitted back into the database.
the thing is that you have to press the "post"-button in
the richtext-editor to transfer the modified text (as html
code) to the textarea-field. _after_ you have pressed it
you may submit the whole PHPMyEdit form. otherwise your
text-changes won't be stored in the DB.
up to now i have no idea how to use this severe usability
problem.
another approch would be to insert an "Edit"-button next to
the regular <textarea> field in PME. via this button the
richtext-editor could be opened in a new window.
this would shomehow bypass the usability problem of having
to "save" the text-changes before submitting the PME
database form. because: the user would instinctively click
the "post" button in the richtext-editor to 1.) save the
text 2.) close the window.
why i did not get the popup-editor working because i don't
know how to transfer the changed text back to the PME
databse-form...
Logged In: YES
user_id=473425
Understood.
Just the fact that your changing windows would
confuse most of my customers! :)
Something simpler - built into the myedit inc file
would be better.
If I come up with ideas - i'll send it to you.
sparky
Logged In: YES
user_id=252859
I have experimented with a product called htmleditbox,
which is available for about $10 per installation. There
may also be some free scripts around which could be used
with this product.
Logged In: NO
thanks dave
htmleditbox looks good.
iteresting that you just said "experimented".
did you find the implementation useful?
Logged In: YES
user_id=527383
I would like to see this in action. I have a javscript
editbox like textare that I got from macromedia exchange
that is a pretty good (and free) editor. But I don't know
how to integrate your much better sorting proceedure with
my very rudimentary save to databse setup.
http://rhetcomp.gsu.edu/~gpullman/sort.php
Logged In: YES
user_id=417907
gpullman, i took a look at the given URL but i seems you
are using any kind of database form - without any relation
to PHPMyEdit. please let me know if i am wrong...
Logged In: YES
user_id=527383
Fellz, you are right. I am not curently using PHPMyEdit. I
want to use it, but I don't know how to integrate it with
the javascript form that i want to use as the editor. (It's
PHPMyEdit's sorting feature that I am interested in).
Logged In: YES
user_id=417907
gpullman, as i have tried to integrate similar editors with
PME i know where the changes have to be made. could you
explain what's needed (html/js-code) to set up a page that
contains your js-editbox only. let's see if i can help...
Logged In: YES
user_id=527383
Thank you, Fellz, i will try to explain.
A user fills out a form, which you can see at
http://rhetcomp.gsu.edu/~gpullman/new_editor.php
The nave value pairs that result are sent to a php script
that puts them into a database.
then there is a page called sort.php
(http://rhetcomp.gsu.edu/~gpullman/sort.php) which does
badly what PHPMyedit does so well. But when a person clicks
on "edit" the contents of that item opens up in
new_editor.php. the line that performs that action is :
?>
<A href="detailwindow.php?EditorValue=<?=urlencode
($row["EditorValue"])$
<?
EditorValue is the name of the textarea that contains what
will be edited.
George
Logged In: YES
user_id=527383
Thank you, Fellz, i will try to explain.
A user fills out a form, which you can see at
http://rhetcomp.gsu.edu/~gpullman/new_editor.php
The nave value pairs that result are sent to a php script
that puts them into a database.
then there is a page called sort.php
(http://rhetcomp.gsu.edu/~gpullman/sort.php) which does
badly what PHPMyedit does so well. But when a person clicks
on "edit" the contents of that item opens up in
new_editor.php. the line that performs that action is :
?>
<A href="detailwindow.php?EditorValue=<?=urlencode
($row["EditorValue"])$
<?
EditorValue is the name of the textarea that contains what
will be edited.
George
Logged In: YES
user_id=417907
gpullman, i took a close look at your editor. unfortunately
it causes the same problem as other editors i have tested
did. (-> please see the first message in this thread)
so far no solution. i mean - it could be done, but would
require a lot of adaptions to PME. unfortunately i'm too
busy with other projects... i'm sorry for those bad news.
Logged In: YES
user_id=473425
Hi George,
I really like your editor. I have implemented several
PME sessions at this point. I do feel like the two
could be merged. The tricky part is that sometimes
I would like the html editor to work on two or more fields
in a record. As it is you just work on one. That is at
least better than none!
Would you like to send me your code so that I
can see if they can be merged?
My goal will be to keep the two in seperate libraries. Then
with a flag indicator - PME can include the editor features
on the edit screen for any one record. We may only be
able to use the editor feature on one "Flaged" field. If
I can figure out the javascript to support it we may be
able to edit multiple fields.
suggestions, opinions?
sparky
sparky@epiphanyDev.com
Logged In: YES
user_id=226329
Good request. But unfortunately I have no such experience
with (d)HTML editor, so I will need some advice and help to
implement this in phpMyEdit.
Logged In: YES
user_id=505827
Very interesting request indeed! I was as also trying to
implement some basic HTML editing functions in pme to
allow users who are not familiar with HMTL to modify at least
some format features in textareas (bold, italics, links etc.).
The easiest way to do this is to have lateral buttons that
modify through some trivial javascript the selected content of
the textarea (say, add <b>, <a> or <i> tags)
A more interesting way to implement a HTML editor in pme
would be to have a button like [edit] on the left of each
textarea in the ADD/CHANGE views. Clicking on this button a
popup window opens in which the user can edit content in a
WYSIWYG way. Once finished, clicking on the submit button
the windows closes and returns HTML code to the textarea.
There are plenty of wysiwyg HTML editors available on the
web, but none of them really satisfying ( they're often
proprietary software). If we had an html editing function
implemented in PME it would be great and it would probably
boost its use as a web content management application for
end-users.
A nice example of user-friendly HTML editor is HtmlArea:
http://www.interactivetools.com/products/htmlarea/
distributed under the MIT open-source license
The only problem is that it only works under windows and
Internet Explorer 5.5 :-(
Hope that by version 6, PME will be a concurrent to many
existing wysiwyg html editors/content management
systems ;-)