HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


WYSIWYG editor

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#19928 (In Topic #4612)
Avatar

Community saint

+ image management @ news/articles

If I identified it right, OCP uses HTMLArea 3. OK, it's get the job done, BUT

- works only with IE (Well, I know that mozilla stated as a supported browser, but firefox 1.5 can't handle it in my case: OCP 2.6.2 & 3.0 with FF 1.5.0.4)

- it's image management is too simple (Btw I think image management is the weak point of the news system too). Can only manage images from URLs, no upload capability. Not even a list of uploaded files. Very bad if a site has many editors and only the admin has FTP access. Images as OCP attachments is good for forum posts, but absolutely not a solution for the news/articles. (In my opinion) Can't set parameters like aligment, hspace, vspace, etc.

Maybe I'm wrong, but it seems to me, that an editor without FTP access can't properly format a news/article item with images if the images are on his/her hard drive. Only if he/she uploads it to somewhere else just to feed it to HTMLArea. Bah… what a pity. :puppyeyes: I ran a site with severel editors, so this is a major drawback for me. I'm converting from an e107 based system, where these features are available. Sorry if there is a tool/solution for this. I didn't find it.
 

OCP is excellent, so it deserves a better WYSIWYG editor ;) TinyMCE could be a good choise. True cross-platform (Now works on all the 4 major browsers), more powerfull _AND_ with it's image & file manager plugins it could handle uploads into news/articles too. e107, joomla, drupal likes it. Why doesn't OCP likes it? :D TinyMCE Javascript Content Editor by Moxiecode Systems AB Oh well I'm sure you know about it, but I don't know why OCP still uses that abandoned? HTMLArea :(

Back to the top
 
Posted
Rating:
#19938
Avatar

ocP uses an editor called AreaEdit, which is based on an editor called Xinha, which is based on the original HTMLArea. HTMLArea references remain throughout, but Xinha moved things forward significantly.

Unfortunately AreaEdit didn't work for Firefox 1.5 for a time, and this includes the version integrated into ocPortal 2.x. It would have been possible to apply a fix, but we had already made significant changes to the editor so it would have been awkward. ocPortal 3.x re-integrated with a newer version of AreaEdit.

In ocPortal 3 we did improve how the editor integrates, and we also improved the attachment system so that there's choice to have attachments that aren't particularly strongly styled. It's not as good as you're looking for if you really want to treat posts as carefully tuned HTML - that's not something we've really designed ocP to do. What I'd advise is that you set up a secondary isolated FTP account for all staff to upload to. I've noted down the possibility of us making further AreaEdit improvements that allow attachment manipulation.

Unfortunately we can't really use TinyMCE because it's LGPL, meaning that if we integrated it into ocPortal to the extent we've done with AreaEdit, we'd be violating the licence. That said - someone up for a little challenge with the right skills could make an unofficial addon for this, and then the licensing issues wouldn't be our concern (and nobody's concern, unless the addon was tightly integrated).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#19940
Avatar

Community saint

Thank you for the thorough answer!
Back to the top
 
Posted
Rating:
#20638
Avatar

Fan in action

Sorry to bring this back up…but its based on my problem.

This editor is very poor it seems.

I am currently building a version 3 for my site right now. On my current site i have tutorials. I copy the tutorials, and paste them into the WYSIWYG editor on the v3 site, and it looks perfectly fine. When I click save, it will do one of two things. 1) Will load the page properly, but have no enters. So for example:

Tutorial:
ajflksdjfkjsdlkfjldskjflsdjlkfjsdkjfksfaduss

fdsfkjdsjlkfsdjlkfjlskdjflkjdslkfjksdjlkfjdskjfksdjfkldsufoi
uoieuoireuwioruo

fdsfioadusfoiusdoifuoidsufoiudoifudoiufioafdsioufiodsufoiuds
iofuiodsfuidsofjdsoifjkdsfjdsofudsifdsfjksldj

Will turn out like this:
ajflksdjfkjsdlkfjldskjflsdjlkfjsdkjfksfadussfdsfkjdsjlkfsdjl
kfjlskdjflkjdslkfjksdjlkfjdskjfksdjfkldsufoiuoieuoireuwioruo
fdsfioadusfoiusdoifuoidsufoiudoifudoiufioafdsioufiodsufoiuds
iofuiodsfuidsofjdsoifjkdsfjdsofudsifdsfjksldj

So as you can see, the linebreaks are gone. I made sure there was enters, yet it still does this. I also pasted into a word document, and it still didnt work. If I remember correctly, a good WYSIWYG editor shouldnt do that.

The other thing. It will sometimes complain about some 'size' attribute on a certain line, when I typed it out MANUALLY. So why does it complain??

Is there another editor that we can use? Something that will work alittle better…because as far as I can see, that editor is used for everything, because all links are based off pages. And those pages are created using this thing. It can become a VERY big pain if I need to add my own <br> code in there manually.

Back to the top
 
Posted
Rating:
#20640
Avatar

You can disable the WYSIWYG editor in your profile, or when editing (there's a disable/enable WYSIWYG link on edit pages).

Back to the top
 
Posted
Rating:
#20641
Avatar

Fan in action

But disabling is pure coding it then. Thats way to much work when there is alot to do...i guess im stuck with that editor hu?

Back to the top
 
Posted
Rating:
#20651
Avatar

I'll look into these problems. The editor has to convert the HTML to Comcode for important security reasons, and it looks like the conversion is going wrong in some situations. Larger documents would be more likely to fail.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#20669
Avatar



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#20679
Avatar

Fan in action

Cool!

Thanks, will try this and will report back.

EDIT: I dont think that tutorial is for 3.0.x. I cant find any of that code in the comcode.php file to replace anything….


Last edit: by theslam2006

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: