Is somebody knows a way of adding a button to the Toolbar of the HtmlEditor without doing with JSNI
use simple html input code in your string and set as inner html
Try this
htmlEditor.setValue("<br/><button type='button'>Click Me!</button>");
Related
I'm new on Swift and I have a question.
Introduction:
View1-> a view with a button that when clicked goes to view2
View2-> a view with a text field
When I go to View2,to start writing I have to click in the text field. I want that when I change the view1 to view2, the cursor is already in text field ready to write with the keyboard up.
So do you guys no how i can do it?
Thanks for the help!
Try putting in second view controller under viewdidload function the below code
textfield.textAlignment = .left
for the keyboard
textfield.becomeFirstResponder()
Try looking at this answer
or you can follow this tutorial
How to show a PPT in xhtml page and put actions on it to control like next page previous page..etc,.FYI I am using JSF framework.
Any kind of reply is appreciable.
Are there any posibilities using the Primefaces
thanks in advance,
SRINI
You should take a look at the <p:media> component.
You can check it out at the Primefaces showcase:
http://www.primefaces.org/showcase/ui/multimedia/media.xhtml
Edit:
Sorry i read PDF instead of PPT. Have you tried looking at this post?
Embed a PowerPoint presentation into HTML
Whenever i create a panel or a repeat control in an XPage it renders it as a div tag.
Is it somehow possible to disable the rendering of the html tag. I just want to make the response document smaller.
Thanks in advance for the help
For panel and repeat controls look at the disableOutputTag property.
For repeat controls have a look at the removeRepeat property.
a panel's HTML representation is always rendered as a div as soon as you add properties like a control id or a styleClass to it. More or less the same applies to repeats: if remove the control's id in designer it will not be rendered in html. Or you could set the repeat's "removeRepeat" property to TRUE (All properties >> basics >> removeRepeat)
EDIT: ...or follow Per's reply...
I'm trying to open a View with a ViewModel from my MainWindowViewModel.
It works, but all I get is a blank window. It binds the correct title but every other control is missing.
Did anyone have the same problem and found a solution?
You forgot the call to InitializeComponent in your code-behind. Just a tip: create a base class with the Catel behaviors, then use that as a base view. It will keep your actual window code-behind much cleaner.
What is the easiest way to hide the "Page" link?
Thank You.
Here's are code behind and client side ways of hiding the Page tab
Code Behind:
via MSDN forums Hide/disable ribbon items:
public void HideRibbonItem()
{
//if this is a System.Web.UI.Page
SPRibbon ribbon = SPRibbon.GetCurrent(this);
ribbon.TrimById("Ribbon.ListItem.New.NewFolder");
}
and from Default Server Ribbon Customization Locations it is the Ribbon.WebPartPage tab
javascript/jQuery:
inspecting the page we can see the Page tab is buried deep
but with some quick and dirty javascript or jQuery you can hide that tab
javascript:
document.getElementById('Ribbon.WebPartPage-title').style.display = "none";
jQuery:
$('#Ribbon\\.WebPartPage-title').hide();
I'd consider the code-behind method to be the cleaner way but client side script gets the job done as well.
In addition to the solution mentioned here already, to hide the page tab completely you should use Ribbon.WebPartPage instead of Ribbon.ListItem.New.NewFolder.