26

Re: TinyMCE 3.0.8 Released

Seems like you fixed the selection bug in non-IE browsers now Spocke, great news!

I have one more little issue. My editor is wrapped in a div with "position:fixed" and when I scroll the page, the editor doesn't move but the menu "Style" is moving. The reason for this seems to be the following:

When the menu is created it's appended to the body instead of the editor itself. And since it using "position:absolute" and is outside my wrapper it doesn't get a "fixed" position. Can this be changed?  Is it really needed to append the menus to the body?

I tried to fix it by setting ".mceListBoxMenu {position:fixed}" in CSS but it doesn't help because the position is set inline directly on the element. It works when is set "position:fixed" on the element using Firebug. Any suggestions anyone?

Last edited by patrik78 (2008-05-09 13:49:05)

27

Re: TinyMCE 3.0.8 Released

I just noticed that if an anchor tag has

target="_self"

the link functions within the editor (e.g. it goes to whatever the href is).

28

Re: TinyMCE 3.0.8 Released

regarding problem posted by yamamoto on 05-05:
. dialog_type : "modal" >> I had reported a bug for same problem, see http://sourceforge.net/tracker/index.ph … tid=635682

. dialog_type : "window" >> up to tinyMCE 2.1.3 browser-windows used to be reused when opening a popup dialog more than once; since 3.0.x popup browser-windows aren't reused anymore, thus I need a little customization in order to have a fix-name for popup windows

. in same bug report I suggested having a new dialog_type that works just as dialog_type : "window" used to work up to tinyMCE 2.1.3. As an alternative, this issue with "window" could be fixed, i.e. set as it worked before (probably a low priority issue, but maybe also .. little issue to fix? :-)

. plugin inlinepopups >> here as well popup browser-windows aren't reused (different names), plus if using this plugin, popup_css configuration option won't have any effect, thus limiting flexibility

29

Re: TinyMCE 3.0.8 Released

Setting this dialog_type : "modal" and using the inlinepopups makes it impossible to have two dialogs open at the same time. I recommend using it since it also doesn't produce popup blocker issues. This might even be set as default in the future.

Best regards,
Spocke - Main developer of TinyMCE

30

Re: TinyMCE 3.0.8 Released

I wasn't really considering using plugin "inlinepopups", since in wiki it is reported as "This plugin should be treated as experimental since it's not 100% compatible yet."
anyway, by trying it out (plugin+modal), following happens:
. have some difficulty to make option "popup_css" work
. once the popup opens, it can be drag a little bit, if you drag it only within title space
. by dragging the first popup somewhere, and clicking same or other icon, another popup will show, this is un undesired effect
. if more popups are opened: 
  .. if they are of same type (eg. table) only one will be really effective, but one can click on others as well
  .. if they are of different type, both will have effect, this is also un undesired effect, we'd like our users to concentrate on one window/popup at a time

31

Re: TinyMCE 3.0.8 Released

plus:
. if one popup is opened, it is still possible to edit editor's content, also undesired, user should first complete popup operation (according to meening of "modal" as well)

32

Re: TinyMCE 3.0.8 Released

Oh, that information was out of date the inlinepopups are now verified to work correctly. I changed that in the wiki and also added some info about the dialog_type option.
The issues you are having is hard to reproduce might be an implementation specific problem.

Best regards,
Spocke - Main developer of TinyMCE

33

Re: TinyMCE 3.0.8 Released

would it be possible anyway to have the modal_type : "window" reusing a browser-window with fix name ?
thing is, we'd like to continue offering our users same behaviour (popups) as they have now (currently working on tinyMCE 2.1.3). this would be great for me, so I could avoid customizing it myself each time. thx a lot.

34

Re: TinyMCE 3.0.8 Released

It's a bit tricky since there can be sub windows like the color picker or file browser. So it need to handle those as well. I will look into it since having multiple windows of the same type makes no sense.

Best regards,
Spocke - Main developer of TinyMCE

35

Re: TinyMCE 3.0.8 Released

thx for looking into the "window" issue :-)
about the issue of dragging and opening more popups (with inlinepopups + modal), this can be reproduced in the full feature example of this site as well, steps to reproduce:
. open an "insert-table" popup
. drag it horizontally (mouse doesn't exit title area ..)
. open another "insert-table" popup
. plus, text in editor can be edited/formatted while popup is open

36

Re: TinyMCE 3.0.8 Released

Yes, but that can be avoided with the dialog_type modal. I don't think this is a critical issue unless I'm missing something.

Best regards,
Spocke - Main developer of TinyMCE

37

Re: TinyMCE 3.0.8 Released

it seems to happen WITH dialog_type : "modal" TOO.
anyway, since it is not so straightforward to reproduce, maybe we can have our users live with it, I guess nobody will even notice.

one open issue with inlinepopups for me is the option popup_ccs (mentioned in previous post). Since we'd like to have the same look-and-feel through the GUI, I need some changes, thus I'll need to act on window.css in plugin's folder directly (can't make popup_css work fine).

38

Re: TinyMCE 3.0.8 Released

popup_css is for the document inside the popups not the borders for the window. Use the inlinepopups_skin option instead to specify an custom skin.

Best regards,
Spocke - Main developer of TinyMCE

39

Re: TinyMCE 3.0.8 Released

There is a old bug in TinyMCE.

When I'm inserting something like this to the editor:

<a href="http://www.someware.com" rel="lightbox"><img src="img.jpg" /></a>

and then i'm clicking [Align: Center], it's being changed to normal image (without hiperlink).

40

Re: TinyMCE 3.0.8 Released

Hi,
I'm desperately searching for a possibility to set the lang attribute on single words. With the xhtmlxtras plugin it is only possible to set the lang attribute on existing tags like paragraphs or strong. It should be possible to insert a span tag with lang attribute or the bdo tag.

Regards
Armand

41

Re: TinyMCE 3.0.8 Released

Been thinking of adding the possibility to create spans with the element attributes dialogs. Like spans. Will try to fix that for the next release.

Best regards,
Spocke - Main developer of TinyMCE

42

Re: TinyMCE 3.0.8 Released

spocke wrote:

Been thinking of adding the possibility to create spans with the element attributes dialogs. Like spans.

The insert/edit Attribute is may the place to include this. I could imagine a select box with a couple of tags (none, span, bdo,.. ) If none is selected the current tag is selected. You could even put the whole xhtmlxtras in one dialog to save icon places.

43

Re: TinyMCE 3.0.8 Released

Hi Spoke,
thanks for your work.

I recently upgraded to 3.0.8, which successively resolved the problem from https security alerts in IE.

Unfortunately, i noticed a strange behaviour in IE only :

when the editor is in a frame, it is unpossible to change font families or sizes.

Try this :
1- upload the last version on a web server
2- go to the examples directory with IE ( 7 )
3- open in the right frame the full example
4- try to modify some font sizes or family.... cursor will jump at the begining of the content

5- click on the link to the wiki examples to open the wiki in the same frame, and get the same behaviour.
6- now open the wiki in a new window, and all will work perfect...

this does'nt occur with firefox (3 beta 5) or safari (3.1 for windows), that both work perfect inside frames.

Hope you will resolve this...

44

Re: TinyMCE 3.0.8 Released

Yes, try the latest SVN version it has fixes for these problems. I will release 3.0.9 soon with those fixes.

Best regards,
Spocke - Main developer of TinyMCE

45

Re: TinyMCE 3.0.8 Released

I believe there is an issue with the link plugin and loading tinyMce dynamically.   Has anyone tried loading 3.0.8 via execCommand and has the link plugin in the list?  For me the editor will not display, as soon as i remove the link plugin, it displays fine.

46

Re: TinyMCE 3.0.8 Released

Seems to be working fine when I try it. Need more info some URL or something.

Best regards,
Spocke - Main developer of TinyMCE

47

Re: TinyMCE 3.0.8 Released

Here is the code to produce the issue: (remove link plugin to see display function correctly)

<html>
<head>
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script>
    var tinymceConfigs = [ {mode : "none",
        theme : "advanced",
        plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,link,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        content_css : "css/content.css",
        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js",
        template_replace_values : {
            username : "Some User",
            staffid : "991234"
        }}];
    
    function tinyfy(settingid,el_id) {
        alert('here');
        tinyMCE.settings = tinymceConfigs[settingid];
        tinyMCE.execCommand('mceAddControl', false, el_id);
    }
</script>
</head>
</html>

<body onLoad="tinyfy(0,'editor');">

<form>
    <textarea id="editor" rows="15" cols="55" >asdfsadfsafsfd</textarea>
</form>
</body></html>

48

Re: TinyMCE 3.0.8 Released

IE has issues with doing things in the onload event. Use a framework or use:
window.setTimeout(function() {
    tinyMCE.execCommand('mceAddControl', false, el_id);
}, 10);

Or use:
tinyMCE.init instead since this can now be called anytime.

Best regards,
Spocke - Main developer of TinyMCE

49

Re: TinyMCE 3.0.8 Released

Hmm, so I reworked the code to use init, and still if the link plugin is enabled, no editor.  Remove the link plugin, poof magical editor.  Attached is the code, is there something else wrong with the approach?

<html>
<head>
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script>
    function initTinyMce(settingId, editorField){
        var tinymceConfigs = [ {mode : "exact",
        theme : "advanced",
        elements: editorField,
        plugins : "safari,pagebreak,style,layer,table,link,save,advhr,advimage,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        content_css : "css/content.css",
        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js"}];
        
        tinyMCE.init(tinymceConfigs[settingId]);
    }
</script>
</head>
</html>

<body>

<form>
    <a href="javascript:void(0);" onclick="initTinyMce(0,'editor')">Activate</a><br />
    <textarea id="editor" rows="15" cols="55" >asdfsadfsafsfd</textarea>
</form>
</body></html>

50

Re: TinyMCE 3.0.8 Released

There is no plugin called "link" it's called "advlink". And if it tries to load a plugin that doesn't exist it will wait for it forever and fail.

Best regards,
Spocke - Main developer of TinyMCE