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:
  #1  
Old June 9th, 2006, 03:34 AM
gonnarule gonnarule is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 2 gonnarule User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 0
Execcommand: setting id/class on tags, getting firefox html to be like the IE one

Hello there,

first of all sorry for my english, as I'm french they could (should) be lot of mistakes in my text.

I've got 2 problems with execcommand (yes, another wysiwyg editor...

- First I would like to be able to customize some tag I enter (with the execCommand('formatblock', false, tag) with parameters, like an ID, a class, a name, etc...
I saw a lot of you talk about the pasteHTML command, but I need my code to be coherent, so if I manually insert with pasteHTML some code, I need to be able to erase it in wysiwyg mode just by pressing the delete/backstab key on my element.

- The second point is that I need, for this editor, to get XML code from the HTML generated. The fact is Firefox and IE don't give me the same code. For example IE creates a new <p> each time I press "Enter", when FF just creates a new <br>.
Is there a way to "configure" my application to react the same way with IE and FF? I mean creating the same code?


Many thanks for your time,
Gonnarule.

Reply With Quote
  #4  
Old June 14th, 2006, 04:22 AM
gonnarule gonnarule is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 2 gonnarule User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 0
well the fact is I don't have that much time, and doing a DOM based wysiwyg editor looks much more hard (to me) than just using those execCommand().

Btw all is running ok atm, only missing the firefox / IE homogeneity produced code on some commands (like "enter", etc).

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Execcommand: setting id/class on tags, getting firefox html to be like the IE one


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek