Archived CMSimple Support Forum

The Old CMSimple User Community
It is currently Fri Sep 10, 2010 12:17 pm

This archived CMSimple Support Forum will be locked primo June 2008. Users with a commercial licence are advised to register and use the new Official Support Forum at CMSimple.com instead. A community driven forum with free registration is found at cmsimpleforum.com.

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: create img align buttons in the Oeditor
PostPosted: Tue Apr 06, 2004 6:14 am 
I would really like to make 2 alignment buttons that does the (almost) same things to the pictures as the left-right justify buttons does now. They put in
Code:
<p style="text-align: left">
while I want to make buttons that put in
Code:
<span style="float: left">

So it's a small difference, and should be easy. But my JS comprehension is barely measurable, and I can't find anything in the code that I could modify.

Anyone got an idea?


Top
  
 
 Post subject:
PostPosted: Tue Apr 06, 2004 11:28 am 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
I don't think it is gonna be easy to make the change - most of the code inserted by the editor is made by standard commands for editing.


Top
 Profile  
 
 Post subject: ok, but there has to be something one can do...
PostPosted: Tue Apr 06, 2004 12:59 pm 
- got any links to material on these standard commands? Can you tell me which part of the code in cms.php that concerns the regular justify buttons?


Top
  
 
 Post subject:
PostPosted: Tue Apr 06, 2004 3:02 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
With OEdit it is this code (almost the same in HTMLArea):

Code:
document.getElementById("f").contentWindow.document.execCommand(c,false,t);


The command (c) is defined in the language file:

Code:
["justifyright","Justify right","Apply right justification"],


You'll find some doc searching on http://www.google.dk/search?q=justifyright+execCommand


Top
 Profile  
 
 Post subject: Ok, I can see how this might easily turn a bit long-hairy...
PostPosted: Wed Apr 07, 2004 12:30 pm 
maybe I should just wait and see if the same function from the new HTMLarea will be included when it is integrated.

Can you say if it will? And will you at all integrate the new HTMLarea into CMSimple? (Is the new CMSimple beta compatible with it?)

- Alexander


Top
  
 
 Post subject:
PostPosted: Wed Apr 07, 2004 6:00 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
I'll look into integrating the new HTMLArea release within a week or two - it shouldn't be hard to get it to work.


Top
 Profile  
 
 Post subject: Aaahh, Super!
PostPosted: Thu Apr 08, 2004 6:01 am 
You're the man :wink:


Top
  
 
 Post subject:
PostPosted: Wed Jun 09, 2004 12:11 pm 
Offline

Joined: Thu Jan 29, 2004 3:52 pm
Posts: 83
harteg wrote:
I'll look into integrating the new HTMLArea release within a week or two - it shouldn't be hard to get it to work.


Hi harteg,

what about the integration of the HTMLArea :?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 09, 2004 2:38 pm 
Offline
Site Admin

Joined: Mon May 12, 2003 12:36 pm
Posts: 3091
Location: Rutsker, Bornholm, Denmark
Please see http://www.cmsimple.dk/forum/viewtopic.php?t=823


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group