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:
#28120 (In Topic #6475)
Avatar

Community saint


Looks like wysiwyg editor doesn't like foreign languages.

When it is enabled, it returns this for smileys:

Code

A resource requested within some Comcode (the img tag) does not exist
And it messes-up all accented characters.

Anyway this thing could be disabled for good ?

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#28124
Avatar

Community saint

I wish I knew how to help you there

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28157
Avatar

Unfortunately I couldn't reproduce those problems after testing it now, so my preferred choice of fixing the underlying problem looks less likely. To make the editor off by default, place this in sources_custom/support.php (a new file):

Code

<?php

function browser_matches($code)
{
   if ($code=='wysiwyg')
   {
      if (!array_key_exists('use_wysiwyg',$_COOKIE)) ocp_setcookie('use_wysiwyg','1');
   }
   return non_overrided__browser_matches($code);
}

?>

To prevent the WYSIWYG editor being enabled remove the last three lines of the COMCODE_MESSAGE template, which are:

Code

{+START,IF,{$AND,{$JS_ON},{W}}}
   [&nbsp;<a id="toggle_wysiwyg_{NAME*}" class="wysiwyg_button" href="#" onclick="Javascript: return toggle_wysiwyg('{NAME;}');"><abbr title="{!TOGGLE_WYSIWYG_2}">{!ENABLE_WYSIWYG}</abbr></a>&nbsp;]
{+END}


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: