Re: RichTextArea IE vs. Firefox || P vs BR

2013-02-18 Thread Daniel Girtler
@Milan I tried your code and added the additional default case and the 
check for ol or ul but somehow it does not work
Here my implementation:

@Override
public void onBrowserEvent(Event event) {   
switch (DOM.eventGetType(event)) {
case Event.ONKEYPRESS:
if (getUserAgent().toLowerCase().contains(msie)) { 
//check for IE
if (event.getKeyCode() == KeyCodes.KEY_ENTER) {
if (!toolbar.LIST_FLAG) { //if I'm not in list 
mode
this.getFormatter().insertHTML(br);
} else { //if I am in list mode
super.onBrowserEvent(event);
}
} else 
super.onBrowserEvent(event);
event.preventDefault();
}
break;
case Event.ONFOCUS:
if (getHTML() == null || getHTML().isEmpty()) {
this.getFormatter().insertHTML(pbr/p);
}
break;
default:
super.onBrowserEvent(event);
}
}









On Thursday, February 14, 2013 11:37:09 PM UTC+1, Milan Cvejic wrote:

 Here you can find my solution to this: 
 https://groups.google.com/d/topic/google-web-toolkit/t5OBuflQCzY/discussion

 There is one thing that you need to implement also, and that is to detect 
 weather cursor is currently in ol or ul tags, and if so just call 
 super.onBrowserEvent method and add default case where you will call same 
 method.

 Milan

 On Thursday, February 14, 2013 12:15:08 PM UTC+1, Daniel Girtler wrote:

 I have the same problem in IE8 and IE9 is there a solution to this 
 problem?

 On Friday, April 24, 2009 12:10:34 AM UTC+2, lamas1...@yahoo.com wrote:

 Hello everybody, 

 Java: 6 
 GWT: 1.6.4 
 GXT: 2.0-m1 

 IE : 7 
 Firefox: 3.0.8 

 The HtmlEditor behaves differently in Internet Explorer and Firefox by 
 new line/line break (Enter). 
 The HtmlEditor used internally the RichTextArea. 

 IE converted the HtmlEditor new lines to HTMLTag - P: 
   Pdummy test/P 
   Pdummy test/P 
   Pdummy test/P 

 Firefox converted the HtmlEditor new lines to HTMLTag - BR: 
   dummy testbrdummy testbrdummy testbrdummy testbr 


 This behavior is also here (http://gwt.google.com/samples/Showcase/ 

 Showcase.html#CwRichTexthttp://gwt.google.com/samples/Showcase/Showcase.html#CwRichText)
  
 understandable. Write more than one line in 
 IE (Enter == P) and and then in Firefox (Enter == BR). 


 What should I do, so he Internet Explorer (IE)  shows/convert  no 
 longer line break to HTML-Tag P but to BR? 

 Thanks 



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: RichTextArea IE vs. Firefox || P vs BR

2013-02-14 Thread Daniel Girtler
I have the same problem in IE8 and IE9 is there a solution to this problem?

On Friday, April 24, 2009 12:10:34 AM UTC+2, lamas1...@yahoo.com wrote:

 Hello everybody, 

 Java: 6 
 GWT: 1.6.4 
 GXT: 2.0-m1 

 IE : 7 
 Firefox: 3.0.8 

 The HtmlEditor behaves differently in Internet Explorer and Firefox by 
 new line/line break (Enter). 
 The HtmlEditor used internally the RichTextArea. 

 IE converted the HtmlEditor new lines to HTMLTag - P: 
   Pdummy test/P 
   Pdummy test/P 
   Pdummy test/P 

 Firefox converted the HtmlEditor new lines to HTMLTag - BR: 
   dummy testbrdummy testbrdummy testbrdummy testbr 


 This behavior is also here (http://gwt.google.com/samples/Showcase/ 

 Showcase.html#CwRichTexthttp://gwt.google.com/samples/Showcase/Showcase.html#CwRichText)
  
 understandable. Write more than one line in 
 IE (Enter == P) and and then in Firefox (Enter == BR). 


 What should I do, so he Internet Explorer (IE)  shows/convert  no 
 longer line break to HTML-Tag P but to BR? 

 Thanks 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: No Textbox can take the focus by mouse clicking in IE8

2013-01-03 Thread Daniel Girtler
Has there been a solution yet??? It still happens and I really need a 
solution

On Wednesday, August 1, 2012 10:51:16 PM UTC+2, Patrick Duffy wrote:

 Has there been a resolution to this problem.  Still happening in gwt 2.4

 On Tuesday, January 25, 2011 3:56:16 AM UTC-5, AlexF wrote:

 I have a problem in GWT 2.0.4 that I can reproduce only with IE8 
 (Windows XP). I use a TabPanel with IFrames in the tabs. When I close 
 a tab which has an element with focus no TextBox in other tabs can 
 take the focus by mouse clicking (but only by Tab-Key). If the closed 
 tab did not have a focused element the problem does not occur. I tried 
 to use TabLayoutPanel but it did not help. What can cause such 
 behavior in the web browser?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Tr-vgkGpsGgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Change Font in RichTextArea

2012-12-27 Thread Daniel Girtler
How can one change the Default Font 'Times New Roman' to 'Arial' in the 
RichTextArea?
I tried to do:
richtextarea.addInitializeHandler(new InitializeHandler() {
@Override
public void onInitialize(InitializeEvent event) {
IFrameElement i = IFrameElement.as(editor.getElement()); 
Document document = i.getContentDocument();
BodyElement body = document.getBody();
body.setAttribute(style, font-family: Arial;);
}
});

But when I execute the 'i.getContentDocument()' I get an 
UmbrellaException...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xAZK3zo1W-YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



java gwt richtextarea

2012-12-27 Thread Daniel Girtler
Is it possible to change the default font-family 'times new roman' of the 
richtextarea to 'arial'?

I already tried doing

richtextarea.addInitializeHandler(new InitializeHandler() {
 @Override
public void onInitialize(InitializeEvent event) {
IFrameElement i = IFrameElement.as(editor.getElement());
Document document = i.getContentDocument();
BodyElement body = document.getBody();
body.setAttribute(style, font-family: Arial Black;);
}
});

but I get an 'umbrellaexception' in the line 'Document document = 
i.getContentDocument();' ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kDQvaFoKBIsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.