Active
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Editor - Editarea
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 14:33 UTC
Updated:
17 Apr 2013 at 04:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunComment #2
jhoff484 commentedThis would be an excellent php code editor. I second this motion.
Comment #3
sunGiven that there are so many supported editors already which can be used as template, I really hope someone of you guys will step up and provide a straight patch.
It just needs one .inc file and one .js file.
Comment #4
sunComment #5
nick_helps commentedCan I use editarea with my drupal install?
Comment #6
math-hew commentedIf EditArea were to become available for WYSIWYG, I would poop myself with sheer joy.
Comment #7
Stomper commentedThis would be great to see implemented
Comment #8
hunziker commentedI see this editor:
http://codemirror.net
It seems that this better then http://www.cdolivet.com/. You can implement also autocomplete features.
Comment #9
Stomper commentedstatus on implementation of this feature?
Comment #10
doublejosh commentedThis sounds like solid gold to me!
No more: select all > copy > alt+tab > paste > edit in your IDE > select all > copy > alt+tab > paste, repeat...
BTW: Looks like the EditArea javascript tool was tied to a D5 dev project a few years ago: http://drupal.org/project/editarea
Comment #11
Fidelix commentedOh Jesus! This would make my views building time FUN!
Comment #12
tingdongc commentedI forgot where I get these files, but I confirmed it works in both drupal 6 and 7. Unzip the attached file you will get editarea.inc, which should go to /sites/all/modules/wysiwyg/editors, and editarea.js, which should go to /sites/all/modules/wysiwyg/editors/js. Good luck
Comment #13
doublejosh commentedBTW: I've done this with BUEditor, though there are still several browser and situation compatibility issues.
Comment #14
jmouse888 commentedOk,
- I used files in #12 and got EditArea to show as a supported editor.
- Downloaded the editor and unpacked into /sites/all/libraries/editarea per installation instructions
- picked EditArea 0.8.2 in "Wysiwyg profiles" for PHP code
- try to create a page and switch input to PHP code...
EditArea is NOT loading, still just a plain text area as before.
btw, I'm running D6.25
Comment #15
jmouse888 commentedIt's working!
EditArea's script was not loading because our site has "Optimize JavaScript files" turned on in admin/settings/performance. We need to load the EditArea's javascript file independently, just like any other wysiwyg editor.
editarea.inc, on line 22
change to:
the editor should load after the change.
Comment #16
jmouse888 commentedso to summarize, here are the steps form the beginning to get EditArea into Wysiwyg.
this should do it. edit a page and switch input to PHP code. You should have a code editor with syntax highlight.
BTW, I'm running D6.25 and latest dev version of wysiwyg.
Thanks to floor 12 (tingdongc) providing the scripts. It would be great if any one can try this in a D7 setup and report back. Good luck!
Comment #17
brunoslessa commentedNice solution,
It works in D7. I made a little change, more to customize for my needs.
In file js/editarea.js, at editAreaLoader.init function, I added these lines:
Now I can change the syntax highlight for different languages.
Thanks for all.
Comment #18
Bernsch commented.
Thanx jmouse888 for the nice description/summary and tingdongc for this plugin!
I test it with Drupal 7.15 and Wysiwyg 7.x-2.x-dev from 2012-Jul-22
It works fine! :-)
One thing I noticed: when i save a node i becoms this error message whith the SimpleAds module (version 7.x-1.8):
Notice: Undefined variable: plugins in simpleads_wysiwyg_plugin() (Zeile 89 von C:\wamp\www\drupal\sites\all\modules\simpleads\includes\simpleads.filter.inc).@brunoslessa
Can you specify the code for the drupal standard, please:
line
+
-
Sorry, I can not follow this description in #17 :-/
Comment #19
mijail.deltoro commentedHi Bernsch
You could try:
Go to modules/simpleads/includes folder and edit simpleads.filter.inc.
Find the function simpleads_wysiwyg_plugin and add the case 'editarea': block like this
It works for me at NiceEdit editor
Good luck
Comment #20
brunoslessa commentedHi,
Sorry, but I am not sure about the drupal diff standard, then I used that I know. The result is:
Anyway, I attached the file I changed.
Bruno
Comment #21
sst2001 commentedAm I the only one who has problems in the selection_field ? :
Using eadit_area with Drupal 7 , as I go down the text (inside the editor) I am getting the selection displayed one to three lines (depends how low I am in the text) below the current line...
See attached file..
Also, in IE 9 its not really working, it start to select characters... as endless loop...
I played a lot with it, it seams that the CSS values are set within the edit_area_functions.js and are hard coded...
Any one solved this?
Comment #22
twodPlease don't change this to a bug report, we have not yet had time to commit any support patches for EditArea so this is still a feature request.
Speaking of which... I need an actual .patch or .diff file against the 7.x-2.x git branch to be able to efficiently review and test the support for this code. If someone has the time to create one, and maybe even bring it to the same level of support as the other editors, it would be greatly appreciated and it'd help speed things up.
I have almost no experience with EditArea so it is going to take a long time before I can get around to digging into it.