JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 7th, 2006, 05:06 PM
W3b D3zygn3r W3b D3zygn3r is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 8 W3b D3zygn3r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 56 sec
Reputation Power: 0
Execcommand problem...

i just made a WYSIWYG editor for my CMS and everything works great, however, i would like to change the markup output made by the execcommand thingy. e.g. The exxeccommand attribute of 'justifycenter' gives a HTML output like this:
Code:
<p align=center>...</p>
as you can see the attribute value is displayed without quotation marks but i want all the attribute values to be displayed with quotation marks in the output. Just like this ->
Code:
<p align="center">...</p>

So my inquire is: How can i get the attribute values being displayed with quotation marks in the HTML output of my WYSIWYG?

I hope you can help me out with this and thanks in advance!

Reply With Quote
  #2  
Old June 8th, 2006, 12:37 AM
ravs ravs is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Location: gurgaon, haryana, india
Posts: 60 ravs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 44 m 29 sec
Reputation Power: 3
Send a message via Yahoo to ravs
normally there is no problen using attributes without quots but if you want so i think there si no stright way.

Reply With Quote
  #3  
Old June 8th, 2006, 02:05 PM
W3b D3zygn3r W3b D3zygn3r is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 8 W3b D3zygn3r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 56 sec
Reputation Power: 0
What do you mean by "there is no stright way" I know of several WYSIWYG editors both commercial and open source which produce a HTML output with quotation marks in the attribute values. So obviously there must be a way to do that with javascript, but HOW?

See for your self in these two examples:
Tiny Editor
FCKeditor

Greets.

Reply With Quote
  #4  
Old June 8th, 2006, 04:56 PM
ccrmcp ccrmcp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 15 ccrmcp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 8 m 32 sec
Reputation Power: 0
You may have to use regular expressions or your own custom exec function in order to do this. The exxeccommand is what it is on each browser and AFAIK there is no way to affect how it formats markup. The editors you mention are open source so it's possible you could determine how they do it if you want to scan the code.

Reply With Quote
  #5  
Old June 14th, 2006, 03:55 PM
W3b D3zygn3r W3b D3zygn3r is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 8 W3b D3zygn3r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 56 sec
Reputation Power: 0
Yeah i know! but i don't know how to do that! or otherwise i woldn't be here asking for help!

Please somebody help!

Reply With Quote
  #6  
Old June 14th, 2006, 04:06 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
This is a low traffic forum. You could try asking at DevShed Forums' JavaScript forum.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Execcommand problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway