Php :: Extra Spaces Inserted With CKeditor's EnterMode?

Mar 11, 2011

I am using CKEditor in my website's CMS, which spits out an XML file of CDATA enclosed content to be read by flash. The problem is that CKEditor, when its enterMode is set to <p> tags, creates a line break and a tab in the source which, when read by flash, enters space, even though I have ignoreWhiteSpace set to true. Any way to prevent ckeditor from using this behavior?

EDIT:

I still want to keep any <p> tags entered from within the editor - I just don't want all the extra space / tabs that get added in the actual source. If I use the above method, my actual code will be modified. What I'm getting if I view the source is this:

<p>
Donec at erat nec tortor sodales tempus.</p>

(an enter, and either a tab or a bunch of space after first <p> tag, instead of:

<p>Donec at erat nec tortor sodales tempus.</p>

(no spaces or breaks after <p> tag in source and I believe this is affecting the presentation of the XML.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Extra Spaces Disappear When Importing Text/xml?

Sep 4, 2009

When I import the following XML and put the contents in a dynamic text field the beginning spaces disappear.

View 2 Replies

ActionScript 2.0 :: Function To Trim Away Extra Spaces In An InputText Field?

Feb 3, 2010

create a function in my program which trims away all the extra heading and trailing spaces in my input text field. I've just begun to learn actionscripting not long ago so I am not really proficient in it yet.

View 0 Replies

Professional :: .swf File Causing Breaks/extra Spaces In Html Page?

Dec 2, 2010

I put together an .html page using a photoshop jpg that I sliced into sections. I was asked to replace two graphics from the original .jpg file with animated content of the same size. Using my slices as a guide for size, I created the two animated graphics in flash and saved them out as .swf files. They are both the exact same size(px) as the static images. I opened my newly sliced html file in dreamweaver, deleted the static images and placed the .swf files.
 
For some reason the .swf files cause gaps in my html page. Tere are no borders on the .swf files and I can't figure what I've done wrong.
 
One note: It seems to only ad space when viewing from Mozilla. Havent' tested it on a pc yet either.[URL]

Below is code for the left hand speaker:

<td colspan="3" rowspan="4"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="246" height="378">          <param name="movie" value="index_images/speaker_left.swf">          <param name="quality" value="high">          <param name="wmode" value="opaque">          <param name="swfversion" value="7.0.70.0">          <!-- Next object tag is for non-IE

[code]....

View 8 Replies

ActionScript 2.0 :: Fullscreen Flash Site - Fills The Screen Without Extra Spaces/

Nov 2, 2009

I am really tired of searching a solution to make my site to a fullscreen flash site..What i want to make is a site that fills the screen without extra spaces and all..The funny thing is it is working fine in swf but not in html..When viewed in html there is a big white space to the right..I have tried several solutions for this line making the html "width and height to 100 %" and scale mode to " noscale" It didnt work I tried changing the html code itself like this:-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>[code].....

It also didnt work.

View 4 Replies

Randomly Inserted Pictures X & Y Placement?

Jun 1, 2011

I managed to make some code that works perfectly which, when the flash game is launched it randomly inserts a picture from the list you give it (word1.png, word2.png etc.)It works fine! But the problem is the place in which it appears, when i start the pictures appear in the top left corner of my flash game, but I want them to appear at preferably the location of a symbol or the x & y coordinates I specify (In actions obviously, i dont want to type these coordinates in game :P).Btw here is the code

var _loader:Loader = new Loader;
var _pictureArray:Array = ["word1.png", "word2.png", "word3.png"];
var _whatPicture:Number = Math.floor(Math.random()*3);

[code].....

View 5 Replies

ActionScript 2.0 :: Flash8 - How Much Text Is Inserted From An Xml File

Apr 7, 2009

I have a loop which duplicates a MC ('news_list')on the stage and places it underneath the most recent clip...

code:
for( i = 0; i < total; i++)
{
var news= news_list.news_item.duplicateMovieClip("news_item" +i, i);[code].........

I have a text box inside the MC which autosizes depending on how much text is inserted from an xml file. This should then obviously increase the height of my 'news_list' movieclip.What I want is for the next instance of the 'news_list' MC to be placed directly underneath the current one,no matter the height of the clip.Currently,I can only get it to position a specified distance below the current instance.The code above is what I've currently got,but I can't quite grasp how to grab the height of the current instance, and then use that in the code to place the next instance below it...

View 2 Replies

Shockwave File Is Inserted Into HTML But Will Not Display?

Jan 2, 2010

I've inserted my flash movie into an HTML page and uploaded all the necessary files, but it will not display. I've seen other users post their code, so I will here:

<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

[code].....

View 1 Replies

DataGrid Inserted Data Not Being Updated Fast Enough?

Jun 26, 2009

I have a multi-column DataGrid that I've populated only three of the seven columns with data. One of the columns are editable. The other three are not editable. What I intend to do is have the user enter data into the editable column. Once the data is entered, The other three empty non-editable columns will populate based on calculations done to the value in the editable column.The problem is that when I enter data into a row of the editable column, the data isn't being reflected as entered until I try to add a new row. Is there any way to get the value being entered into the cell right after it is entered without the user having to enter a new row?

View 1 Replies

ActionScript 3.0 :: Cannot View Anything When Inserted On FlashScript File?

Oct 21, 2009

Whenever I use the pen tool, or brush tool, or anything for that matter, I can not view it on Flash Stage. I've noticed that if I set the file to ActionScript 2.0 I can though. This would be fine, except that I need ActionScript 3.0.. I'm a student, and I have a project I need to start...calling Adobe support did not help at all.

P.S. (if this makes a difference) Whenever I test the movie, I can see whatever I put on the stage.

View 9 Replies

ActionScript 3.0 :: Get All The Images Inserted On A Movieclip Container?

Oct 6, 2010

I'm having problem with regards to getting the name of the inserted images inside the movieclip container.
 
My movieclip container is named "container", it followed this snippet:

[Code]....
 
Is it possible to get the exact name of the images instead of "instance147" or "instance175"? So that if i have inserted image with the name of apple.png, it will show:
 
|     1.     name:apple.png     type:object    [object Loader]
 
By the way, i use FileReference to insert image to the stage.

View 6 Replies

ActionScript 3.0 :: Verify If The Content Inserted By The Use Is A Number?

Jan 25, 2009

I have a textfield. I want to verify if the content inserted by the use is a number, and if it is not I want to give a message.

How can I verify if it is a number?

View 5 Replies

Professional :: Upload Swf File Which Was Inserted On Http Page?

Jun 8, 2010

I have been trying to upload swf file which was inserted on http page.
 
I have uploaded http, swf, flash files and scripts but I can only see text on the website.
 
When I deleted http file and check the website I could open swf file and see the image.

View 2 Replies

Professional :: Flash Audio Player Inserted Via Dreamweaver?

Mar 2, 2012

I am looking for a flash solution to insert easily into a dreamweaver html page. I need a small audio player with a start and stop button. It should have a white background (no text). To work like the example in [url]......I would like to have a flash plug in that allows me to insert into another webpage and use an FLV file or other audio format.Dreamweaver's player does not look good inserted into any webpage.

View 3 Replies

Passing Parameters To A Flash Movie Inserted In A VB Program?

Mar 15, 2010

I need to insert a Flash movie in a Visual Basic 2008 express form and send parameters to the movie, but am a newbie to VB. The flash movie will plot points sent by VB in a graph.I tried to insert the Shockwave Flash control in the form but cannot find it anywhere. So I inserted the webbrowser control, which I understand can be used to a similar purpose. But how would I send the values of X and Y (coordinates to plot in Flash) to the flash swf?

View 1 Replies

Toad :: Get An Id Of Last Inserted Record In Backend And Display In Flex

Apr 4, 2011

How to get an Id of last inserted record from backend and display the same with success message as "RECORD INSERTED SUCCESSFULLY AS" +Id in flex...am using Toad for sql server.

View 1 Replies

Flex :: Text Inserted Into TextArea Causes Application To Hang

Jun 5, 2011

I am attempting to insert text from a database into a custom TextArea component, using the following:
var front:CaptionTextArea = myFlashcardFrontsides[adjIndex] as CaptionTextArea;
var back:CaptionTextArea = myFlashcardBacksides[adjIndex] as CaptionTextArea;
var passage:CaptionTextInput = myVersePassages[adjIndex] as CaptionTextInput;
front.text = passage.text;
back.text = str;

This works 100% of the time for smaller strings. However, if I insert long strings of text, the application will hang consistently. The maxchars for the textarea is set to 1200, and the text that is inserted into the text area is always smaller than the character limit:
backside.maxChars = 1200;

View 1 Replies

ActionScript 3.0 :: Get Filename And Path Of Inserted Image On Stage

Aug 21, 2010

I'm currently working on a flash app, that enables the user to select a background image and later save that layout.

Things i have done so far[code]...

My Problem is:

1. How can i get the path and filename of the inserted image?

2. how can i copy the selected background image to the folder where the user saves it's layout?

View 1 Replies

ActionScript 3.0 :: Load Different Values For Each Name, Email, Comment Inserted From XML?

Jun 16, 2009

I have a Guestbook project to develop (personal project) but I can't multiply the values.. I'm testing with a XML (no PHP and DB yet)

For example: I need to load different values for each name, email, comment inserted from XML.

Name: (name_txt) -> Textfield;
Email: (email_txt) - > Textfield;
Comment: (comment_txt) -> Textfield;

Well.. I can load ONE node from XML, but i can't multiply it for 5 blocks of name,email and comment.And if i'd like to paginate if it runs more than 5 blocks, the next 5 goes to another page?

Here is my code:

Code:
// GuestBook
var xmlLoader:URLLoader = new URLLoader();
var meuXML:XML; // vai guardar todo o conte�do do XML;
var imageLoader:Loader;

[code]...

View 1 Replies

ActionScript 2.0 :: Create A Shortcut Automatically For Projector When The CD Is Inserted

Dec 29, 2010

I have a Flash projector in CD. Besides having an autorun file, if I want to create a shortcut automatically for this projector when the CD is inserted, how do I do ?

View 2 Replies

ActionScript 3.0 :: Removing Carriage Return Inserted Mysteriously By Flash

Oct 6, 2010

How to remove a carriage return that's inserted mysteriously by flash. I have a text input box and it auto adds a enter key press carriage return.
<IMAGE Names="Josh
">My imputed text</IMAGE></GALLERY>
%20Names%3D%22Josh%26%23xD%3B%22%3EMy imputed text%3C%2F
This is the mess of crap its auto inserting
%26%23xD%3B%22%3E

View 1 Replies

ActionScript 3.0 :: Press ENTER While Editing Textfield A Newline Is Inserted?

Jul 13, 2010

If I press ENTER while editing textfield a newline is inserted. How can I change ENTER on something else, for example CONTROL+ENTER or SHIFT+ENTER(i.e. SHIFT+ENTER inserts new line into textfield)

View 8 Replies

ActionScript 2.0 :: Burn A Cd So That The Flash File Automatically Starts Up When The Cd Is Inserted?

Mar 31, 2004

how do i burn a cd so that the flash file automatically starts up when the cd is inserted. also, how do i make it compatible with a mac and pc?

View 2 Replies

ActionScript 3.0 :: PrevFrame() Buttons In A Swf File Inserted In Html Not Working In Firefox?

Nov 28, 2011

i have created a photo gallery using AS3 in Flash CS5. I have used prevFrame() and nextFrame() actions for "previous photo" and "next photo" buttons as well as for "previous thumbnails" and "next thumbnails" buttons.

All the buttons work fine when i run the swf files as well as when i run the swf files in Firefox 8.0 and IE9. However, once I insert this swf file into my html file using Dreamweaver CS5->Insert->Media->swf, the "previous" buttons dont work in Firefox 8.0! the previous image button works sometimes whereas the previous thumbnails button does not work at all They work fine in IE9. The next buttons also work fine in every browser. Heres my code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Stop(); Commands Not Working After Preloader And Navigation Inserted Into Movie

Jun 15, 2009

ive recently introduced myself to AS3, its starting to get a bit frustrating. it seems that when i put the preloader actions in the timeline, everything is fine, the stop(); commands work fine. BUT when it comes around to adding the navigation to the timeline as well (ive tried putting the code on a separate keyframe, ive tried various styles of code) the stop(); actions are completely ignored.

[Code]....

View 2 Replies

Professional :: Sound Won't Play When SWF File Is Inserted In HTML Page--plays Fine In Flash Test Movie?

Dec 1, 2010

I have created a SWF file that plays/stops sound. The SWF file works great when previewed in Flash CS4, but does not work when inserted in the HTML file.Here are the 2 files that are automatically generated when I INSERT>MEDIA>SWF in Dreamweaver CS4:

swfobject_modified.js
expressInstall.swf
Here is the ActionScript3 that I am using in the Flash file:

[code].......

View 6 Replies

Remove Spaces From Text Box?

Mar 30, 2009

I want to make a text box that will not allow spaces to be entered. Is there some actionscript to do this?

In other words, a user typing 'John Smith' would just display 'JohnSmith'.

View 3 Replies

Actionscript :: Put Spaces Before Capital Letters?

Mar 20, 2010

So I have a string "SmartUserWantsToLive" I want to generate from it or any such string with capital letters strings like "Smart User Wants To Live".

View 1 Replies

Flash - What Are Spaces In AS3 Colour Matrix

Jan 8, 2012

In the 4 * 5 array that makes up a colour matrix, what do ALL the values do? All I have found is basically this:
0, 0, 0, 0, 0 <-R
0, 0, 0, 0, 0 <-G
0, 0, 0, 0, 0 <-B
0, 0, 0, 0, 0 <-A
What does each thing do?

View 1 Replies

ActionScript 2.0 :: Convert Spaces To Underscores?

Nov 25, 2003

Is there a way to convert spaces to underscores?

turn "This is a string" to "This_is_a_string"

View 3 Replies







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