Javascript - Allow A Self Closing Tag In TinyMCE?

Nov 2, 2010

The source tags inside my video element need to be self closing so the iPad doesn't start whinging.

I type in <source src="myVideo.m4v" />

TinyMCE keeps changing it to <source src="myVideo.m4v" ></source> though.

How can I tell it to stop?

View 1 Replies


Similar Messages:

Javascript - TinyMCE Losing Frame In IE8?

Nov 9, 2010

I have a web-site. We are using TinyMCE as our text editor. I just upgraded to the newest version and added the media plugin so our users can add videos to their enteries.The upgrade works great on Chrome, FireFox, IE7. However, it does not work with IE8. The frame around the editor disappears along with the toolbar.

Here is the init code I'm using:

tinyMCE.init({
// General options[code].....

View 1 Replies

Finding Conflict Between Microsoft Ajax And TinyMCE JavaScript

Jan 8, 2010


I have written an asp.net usercontrol with TinyMCE as a text editor for my web application.

This control is being used on webforms. When other control(s) perform a partial page refresh, the control no more remains a texteditor, is converted back to the same old textarea control. When updatepanel is not used, there is no problem.

Is this some kind of conflict between Microsoft Ajax and TinyMCE JavaScript or am I missing something ?

userControlTinyMCE

Code:

[code]....

View 2 Replies

Detecting And Closing Frames Using Javascript

Jul 16, 2010

I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you to BillSplit.aspx which has a frameset and two frames that both point to ViewPDF.aspx. This all works perfectly.

The problem is that if an error occurs while pulling up the pdf. The application has an error page that has a few links back into the application. If you use one of these you can go back into the app and continue but now inside the frame. The URL still says BillSplit.aspx but the application is completely unaware of this since frames are HTML elements not asp.net controls.

What I would like to do at this point is detect that you've returned to the application and close the frame you aren't using. Essentially I'd like to redirect you away from BillSplit.aspx and to the page you're actually requesting. I'm pretty sure this would need to be done in Javascript either on the BillSplit page or on the pages that you go to later. So I guess what I'm asking is, is there a way to ensure that the BillSplit.aspx page and it's two frames point only at ViewPDF.aspx?

View 1 Replies

JavaScript - Prevent Browser From Closing C#

Jul 20, 2010

I am using asp.net 2.0 with c#.

i want a pop up to be displayed when user tries to close the browser and if user click on "no" [i.e. he don't want browser to be closed] then it prevent browser to get closed.

View 3 Replies

Javascript - ASPX Page Closing Automatically

Feb 12, 2011

First I am new to the asp.net world and am trying to figure out a weird issue that I am having. I have a page that has a form and on submit I launch another aspx file that exists in the same directory. The problem is the aspx file is shown and the file closes immediately! However, the weird part is if I make any modifications to the aspx file and save it and then run my application it works fine only the first time? Any subsequent submit actions launch the aspx page but then the aspx file immediately closes. But after I make some modifications to the aspx file..(simple ones) it launches correctly the first time. We are targeting .net version 4.0 and using IIS7. I am thinking that the asp worker process is doing something weird like checking for timestamps and closing it?!

View 1 Replies

AJAX :: Javascript Alert After Closing A Modalpopup?

Sep 22, 2010

I have a linkbutton 'Forgot Password?' in my login page. On click of the link button a modal popup will open . In that user has to give his username.

If the username doesnot exists i want to show an alert 'Usename doesnot ' exists.

Since the checking for the existenance of the username is on click of the button submit which is inside the modal popup, i can show the alert using the code

Page.ClientScript.RegisterStartupScript(...) . But I want something different

I want to call the javascript function after the maodal popup extender is closed

View 6 Replies

AJAX :: Closing Popoup Extender Using JavaScript?

May 13, 2010

I have one control as below . I am using popup control extender which shows 4 images for colors. I want to close the popupexnternder once I click a color.Once I added $find('mpePopup').hide(); in javascript but its causing postback somehow .

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyColorPicker.ascx.cs"
Inherits="MyColorPicker" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:DropDownList ID="ddlColor" runat="server">

[Code]....

View 1 Replies

JavaScript - Jquery Dialog Stop Closing When Error Occurred

Oct 15, 2010

I am using the jQuery Dialog in ASP.NET. I have it working fine with the exception of when I click the OK button in the dialog and if an error occurred I want to show the error in the label. By the time the dialog closing event is fired it is too late. How do I still show the dialog if an error has occurred. I don't want to close the dialog when there is an error.

[code]....

View 1 Replies

Javascript - Text Is Not Allowed Between Starting And Closing Tags Of An Element <table>

Jul 23, 2010

I have an error when playing with a table saying:

"text is not allowed between starting and closing tags of an element table"

Table is like this....

<table id="Content2" class="createAccountTable" cellpadding="0" cellspacing="0" style="width: 240px;">
<tr>
<td colspan="2" align="left" valign="top" class="topicStyle">
<h3>Order Summary</h3>
</td>
</tr>
<tr align ="center">......

View 2 Replies

TinyMCE .NET Dll Could Not Be Found?

Nov 17, 2010

I am trying to include the .Net TinyMCE dll in my project. The code I am using is:

<%@ Register Assembly="Moxiecode.TinyMCE" Namespace="Moxiecode.TinyMCE.Web" tagprefix="tinymce" %>

I have already added the dll to the references in the project and I checked the code in my csproj to make sure it is correct. I modified it to make sure it had a path hint.

<Reference Include="Moxiecode.TinyMCE, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>binMoxiecode.TinyMCE.dll</HintPath>

[code]...

View 1 Replies

C# - How To Keep TinyMCE After Postback In An UpdatePanel

Aug 17, 2010

When I click a button that causes a postback on the UpdatePanel it calls the tinyMCE.triggerSave().

It reloads the panel and the editor show up again, but when I try to call tinyMCE.triggerSave() the second time I get the following error:

g.win.document is null

I though it was getting the old instance, but I'm also removing the control (tinyMCE.execCommand('mceRemoveControl',false,'Editor');) after I call the save. Even so it still crashes the second time.

View 1 Replies

C# - Get TinyMCE Instance By Class?

Jan 24, 2011

I have a form with multiple TinyMCE instance. I created the TextArea controls dynamically using a Repeater control - They all have the same ID,but I gave each one a different class. I assigned each of the TextArea controls a TinyMCE instance using the editor_selector : option in the TinyMCE Init function.

tinyMCE.init({ mode : 'textareas',theme : 'simple',editor_selector : 'upperBlock',directionality : 'rtl'}); tinyMCE.init({ mode : 'textareas',theme : 'simple',editor_selector : 'middleBlock',directionality : 'rtl'});

I want to refer to a specific TinyMCE instance in a JS function and get its content. In the case when each TextArea control has a different id that could by done by using :

tinyMCE.get('IdOfYourTextBoxWithTheTinyMCEContent').getContent()


Is there a way to get ref to a specific TinyMCE instance content by the class assigned to it in the editor_selector option of the TinyMCE Init function ?

View 2 Replies

C# - Can't Delete Image File While Using TinyMCE

Feb 7, 2010

i am using TinyMCE AND AsyncFileUpload AND an Update Panel After Uploading , i cannot delete the Images while Adding them to tinymce content because it is being used by another process.

lock (this)
{
if (File.Exists(_FILE_HANDLER_))
{
File.Delete(_FILE_HANDLER_);
}
}

Do i have to Dispose TinyMce :: Like This :

tinyMCE.execCommand('mceFocus', false, '<%= TextBox1.ClientID %>');
tinyMCE.execCommand('mceRemoveControl', false, '<%= TextBox1.ClientID %>');

View 1 Replies

Web Forms :: TinyMCE Editor Is Empty?

Jun 22, 2010

I have tinymce .net control on my .net webform and the basic setup works a treat. My code behind can see the html generated my tinymce via the TextArea1.Value property. However as soon as I set the mode to textareas the value is suddenly always empty! The problem is that if the mode is not set to textareas the tinymce editor is only in simple mode and does not offer all the features.

How do I get this to work?

View 10 Replies

Web Forms :: How To Disable Resize In TinyMCE

May 7, 2015

I used tinymce in my page...

I want users don't allow to resize it so I used below css:

.elm
{ direction:rtl;
resize:none;
text-align:right;
height:180px;
font:bold 18px tahoma;
}

but it doesn't work..

is there other code for this?

View 1 Replies

Web Forms :: Using TinyMCE Html Editor In Web Application With .net 3.5 And C#?

Aug 30, 2010

I am using TinyMCE html editor in my web application with Asp.net 3.5 and C#. If I enter a path like http://video.test.com/test.flv in url attribute to add video in my page content, the leading slash gets stripped, and becomes "http:/video.test.com/test.flv".So that the move could not get loaded. On button click event the slash gets removed. Button click is necessary for me to save the page content into the database.

View 3 Replies

Web Forms :: Adding Templates To TinyMCE Editor

Mar 28, 2012

i have integrated the template into the tiny using the following code

template_templates: [               
{  title: "red", src: "Template/redyellow/Website/about.html"  },
{  title: "Law", src: "Template/Law/index.html" }, 
{  title: "Business", src: "Template/Blue_Business/index.html"   }, 
{  title: "asubtleorange", src: "Template/asubtleorange/index.html" }, 
{  title:" 110100013",  src: "Template/110100013/index.html"  } ]

But I need it with file upload control...  like the image is added with tiny editor using the following code

 if (FileUpload1.HasFile)  {  
string FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName); 
FilePath = "editor_image/" + FileName;   
FileUpload1.SaveAs(Server.MapPath(FilePath)); 
editor.Text += string.Format("<img src = '{0}' alt = '{1}'/>", FilePath, FileName); 
}

like the above code i need to add the html/style sheet template.

View 1 Replies

Web Forms :: Can't Save Text From TinyMCE TextBox To .txt File

Jul 2, 2010

I have set up a tinyMCE textBox on an emtpy form. I will now save some written text to a .txt file. When I press the button, I receive an error page and the .txt file is not created. However if I dont write anything in the textBox and press the button, then the .txt file is created and the messageBox is shown.

[Code]....

View 2 Replies

Jquery - 4.0 With TinyMCE And XML Encoding Re-encodes Content On Postback?

Jan 20, 2011

i have a ASP.NET 4.0 based CMS, where i use the TinyMCE (3.4) via jQuery to edit one Textbox.In addition to this i have several other textboxes. There is also another DropDown List on the Page, which controls the Contenttype.This Control has AutoPostback enabled and sets the visibility on the textboxes regarding the selectes item.As i want to keep the Postback Validation on i have configured the TinyXML to use xml for the content serialisation (encoding: "xml").Now i have the problem, when a postback from e.g. the DropDown List occures, the re-encodes the content.

Init: "Hallo"
1st Postback: "<p>Hallo</p>"
2nd Postback: "<p><p>Hallo</p></p>"

i have enabled the original textarea via css and this seems to be a problem of the TinyMCS's Save method.
Does anybody have a solution, how to fix this issue maybe with a custom save_callback on the TinyMCE?

View 1 Replies

Forms Data Controls :: TinyMCE Richtext Editor?

Jun 25, 2010

if i can get the script of color picker as like shown in this link?ttp://tinymce.moxiecode.com/examples/example_25.php

View 2 Replies

Controls :: How To Change Font Size Of H1 H2 Tags In TinyMCE

Apr 10, 2014

I use tinyMce in my page ,below is apart of code that define format of text

style_formats: [

{ title: 'bolder', format: 'h1' },
{ title: bold', format: 'h2' },
{ title: 'small', format: 'h3' },
}

I want here instead of H1,H2,H3 I put font size for it I mean like :12px,14px 16px...

View 1 Replies

Controls :: TinyMCE Code Syntax Highlighting Plugin

Jul 14, 2013

which are the existing plugins for add code blocks in TinyMCE?

View 1 Replies

Data Controls :: How To Validate TinyMCE Rich TextBox

May 7, 2015

I used below code instead of ckeditor

<script src="../tinymce/tinymce.min.js" type = "text/javascript"></script>
<script type = "text/javascript">
tinymce.init({
language : 'fa',
directionality : 'rtl',
selector: "textarea#elm1",

[code]...

here I used validation for textbox that if users don't enter text it show error..now here problem is that when I enter text for firsttime it show validation error  I should enter text again that it doesn't show error and insert data into database.what should I do that it doesn't show validation error when I enter text for first time it doesn't show error?

View 1 Replies

Controls :: Remove Image From TinyMCE And Delete It From Folder

Mar 5, 2013

just like the upload method with TinyMCE editor is there is any image remove method so that i can remove image through image button

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved