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, 04: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, 05: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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT