It would seem that the HTML document in which you load the editor gets the editor contents inserted without the proper escaping. Can you provide an example page online to showcase your problem?

2

(15 replies, posted in News)

Spocke wrote:

If you want to help out with translations join a team at: Transifex

What happened to your old translation service? I'm not keen on registering on numerous sites just to get my stuff done. I was rather fond of your TinyMCE language service where I needed no extra registration but could use the one from the forum...

TinyMCE4 is still beta. My guess is that some patience will pay off in a nice updated TinyMCE4-powered WP version.

:-)

Hi Andrew,

AndrewAhn wrote:
    tinymce.execCommand('mceRemoveEdior',false,'mce_2');

are you omitting the "t" in "Edior" on purpose?

5

(1 replies, posted in Tips, Tricks & HowTo's)

What version are you using?

What exactly is the problem? Does the blank line appear automagically or is it due to a user holding the space bar and then saving the edited page?

TinyMCE has no access to any file system nor any database. You need to write a backend (read: server-side program) to do all these things. You can create plugins for TinyMCE in which you can implement certain features which interact with your backend.

Read more in the FAQ: How can I upload image files from my local computer?

7

(4 replies, posted in Tips, Tricks & HowTo's)

What browser of which version displaying which version of TinyMCE? Did you change any CSS stuff? Do any browser plugins interfere?

8

(4 replies, posted in Tips, Tricks & HowTo's)

In HTML context any whitespace is interpreted as "between text elements" and rendered as a single space. Why do you need to keep certain whitespaces in the source code?

It is my opinion that placeholders or template elements inside TinyMCE should be made with real HTML elements. TinyMCE is a WYSIWYG tool and handles HTML pretty well.

Your code seems like a broken HTML syntax for TinyMCE so it tries to repair it according to HTML specs. If you want to prevent TinyMCE from doing so it would seem the better choice to wrap your template code in a different manner.

Could you live with something like this for example?

<div class="placeholder product:xml.3"><p>test</p><br /></div>

Alternatively TinyMCE offers the use of custom elements. You might want to replace the <div> element with something that better suits your requirements. Maybe custom elements can also carry custom attributes? I'm not sure how reliable this works in contrast to my suggestion above, and I have no experience with TinyMCE4 with regard to custom elements.

<product type="xml" class="3"><p>test</p><br /></product>

10

(56 replies, posted in News)

Wonderful! It's finally out in the open. I'm impressed by the new "desktop app"-like approach. The icon -bloated toolbars have been replaced by a nice menue.

I'm not sure I like this metallic look all in grey colours, though. So I'll wait and see if there aren't some nice more colourful themes coming up...

I've seen that in the initialization code there seems to be a new property "selector" which seems to replace the old "mode" property... at least in some examples. Some still have "mode" so you guys seem to have spent a lot of thought on backwards compatibility - NICE!

As soon as the final version is out I'll incorporate it into my CMS. I guess some API changes will require a plugin rewrite - yet again. *g* Maybe the experiences I'm about to make during my rewrite of my old plugin will help with an updated file browser article in the wiki?

An empty paragraph must contain "something" so you can actually position your caret in it in order to type some content there. This is why new paragraphs get filled with this non-breaking space (aka &nbsp;). The same goes for empty table cells. A simple <p></p> could lead to an invisible paragraph in some browser's WYSIWYG interface. This is why the space gets added.

Deal with this from inside your backend!

12

(14 replies, posted in Tips, Tricks & HowTo's)

edgeimpact wrote:

what alternative do we have but to need PHP coding within the TinyMCE HTML Source Editor where we have to provide administrators using secure logon

Wait a second! Do you use TinyMCE as an "online IDE"? This is clearly what TinyMCE is not built for!

edgeimpact wrote:

the facility to modify the forms provided with the system

Hello?? Forms only make sense if you can also edit the backend functionality. And again there is a breach of the WYSIWYG principle. If users (aka "admins") can change the backend logic, what do they need TinyMCE for?

In my applications I develop templates (pure HTML files) which get loaded and modified by my backend before the final documents get sent to the browser. Editing those templates in TinyMCE wouldn't make any sense (though it's possible since they contain pure HTML) since the backend relies strongly on their structure.

If you need to offer template editing in TinyMCE I strongly suggest the use of placeholders (which can be beautified using clever CSS) in order to provide ready-made server-side funcionalities in those documents.

edgeimpact wrote:

and also to re-insert the form data when the form needs to be redisplayed because of something like a Captcha error has occurred or there is a content validation error

There is nothing my backend couldn't add to any purely HTML-based template. Why would I need PHP code in it?

13

(1 replies, posted in Tips, Tricks & HowTo's)

Maybe this can help? external_image_list_url

14

(3 replies, posted in Tips, Tricks & HowTo's)

I feel annoyed by your repetitive posts! Not only do you push your agenda in an inappropriate way (your posts seem like spam!), you force an issue which is definitely outside the scope of TinyMCE!

You might sympathise with the opinion of others who have requested a feature like the one you try to push, but believe me, you belong to a minority! The rest has understood what WYSIWYG really means!

I see no trailing spaces. In my understanding a "trailing space in a <p> tag" looks like this:

<p>This is a sentence. </p>
<p>&nbsp; </p>

See the last character inside the elements? This is a trailing space. And there is no such thing in your HTML.

When it comes to the visible "white space" above your cursor, then this is the three empty paragraphs of your document. Your cursor is placed in the third one which makes your screen shot look like there was "trailing space" above it.

16

(14 replies, posted in Tips, Tricks & HowTo's)

@edgeimpact

TinyMCE is pure WYSIWYG. People who don't respect that seriously need to think over their application design!

Mc2vzeLl wrote:

"editor_delsector".

You mean "editor_deselector"!

Who made that plugin?

These icons are related to the commercial plugins "MCImageManager" and "MCFileManager" provided by Moxiecode. Have you bought a license for them? If not, these icons will not appear.

20

(1 replies, posted in Tips, Tricks & HowTo's)

Have you even tried?

21

(2 replies, posted in Tips, Tricks & HowTo's)

Users who use IE7 can also upgrade to IE8 (or at least their admins can). Other than that they can sure use a free browser like FF, Chrome, Safari and Opera.

Why don't you make a screenshot of your desired header and insert it into your MS Word?

ekochman wrote:

However, the domains appear to be the same (the only thing I changed was the actual site name and the actual page - the rest is copied letter for letter).

Site name? What's that? And the domains "appear" to be the same?

24

(1 replies, posted in Tips, Tricks & HowTo's)

You'll need to provide more information before I can understand what's going on in your project.

25

(3 replies, posted in Support)

Don't use <div> but <p> inside your container.