Hi,

I have some text that I want to print, but when I print it, the text is very small.

I've set some text to font-size 12pt and 12px to see the difference. 12pt Turns out to be even smaller than 12px??
My screen resolution is 1900x1200px but that shouldn't affect text that is set to 12pt, or would it (on print, that is)?

Or is tinymce printing as shown on screen? Meaning that it would print 12pt text smaller as the screen resolution gets higher, and bigger as it gets lower?

I want to avoid sending the user to a special print page, or printing to pdf first.
And as users' screen settings are never the same, meaning screen resolutions differ from user to user.

So the main question is:
How can I get tinymce to print 12pt text as actual 12pt size, regardless of screen resolution?

Hi,

As the title says.
How can I get the external toolbar to appear at the bottom?

By default is always appears on the top of the textarea. Where can I change/set this setting?

THnx

I found out that the problem is with FF. I looked in the content.css in the default-folder of the advanced skin.

There, this line:
.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}

I changed it to:
.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 0px solid #FFF;}

In IE the problem is solved, except that since I deleted the header/footer in the print setup, I can now only print the full html page (so with the editor visible) and not only the info that's in the edit field of tinymce. I think just like a normal printpage of a website.

In FF the problem persists. Somehow it ignores the changed CCS values, even on restart of the browser. (weird :s)

EDIT: Printing to paper, instead of PDF, also shows borders. Even when border is set to 0.

EDIT2: I installed a different PDF printer, I still have the dashed borders.

EDIT3: I found a work-around. I added a style to every table element (tr,td) that sets border to '1px solid #FFF'. Giving them invisible white 1px thick borders.

My bad on not giving enough information.

I make use of the print plugin and then choose CutePDF Writer to print (create/save) a pdf file. When I open the PDF file i can see the (dotted) borders of the table.

Here's a link: http://mc-bronneberg.com/tinymce_print/

I hope it helps.

Sorry for the late response, but nowhere in the CSS have I set that table borders are dotted lines.

Or is there a CSS file in TinyMCE where is says that when tables are printed to pdf the borders must show up in the pdf?

Hi,

I have html formatted text in a textarea containing a table that I want to print to pdf, or just print, but without showing the table outline.
The table has it's border set to 0. In the textarea you don't see any border, but when I print it (to pdf) I see the table border with dotted lines(??)

Is anyone familiar with this? Or knows how to solve it so I don't see a border on my print?

Thanks in advance.

Hi,

I was wondering how I can get the TinyMce toolbar to appear externally at the bottom of a textarea.

This does not work, it stays at the top (left/right doesn't do anything either):
    theme_advanced_toolbar_location : "external",
    theme_advanced_toolbar_align : bottom",

Thnx in advance.

My complete tinymce call (or whatever):

    mode : "textareas",
    theme : "advanced",
    width : "245",
    height : "150",
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough, bullist,numlist,undo,redo",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    theme_advanced_toolbar_location : "external",
    theme_advanced_toolbar_align : "bottom",
    theme_advanced_statusbar : false,
    theme_advanced_resizing : false

Hi,

I'm having some trouble with sending data from a form.

The textarea's in my form all have a tinymce editor. When I fill in all the fields, the data has to be send to a query-page where the data is inserted into a database.

That sending is done with javascript using POST. When I document.write the querystring var, I see that all the texarea's data is not send at all. I think tinymce has something to do with that, because, so i've been told, it changes the DOM. Also, textarea's without tinymce are sent perfectly.

Anyone any idea's?

The form:

<form action="" method="post" name="newdossier" class="dossier_formulier">
    <input name="key" type="hidden" value="key" />

    <table>
    <tr>
    <td>  
    <label for="contact_motivatie">Contact motivatie:</label><br />
    <textarea name="contact_motivatie" type="text"></textarea>
    </td>
    <td>
    <label for="klacht">Klacht:</label><br />
    <textarea name="klacht" type="text"></textarea>
    </td>
    <td>
    <label for="ADL">ADL:</label><br />
    <textarea name="ADL" type="text"></textarea>
    </td>
    </tr>
    <tr>
    <td>
    <label for="pijnlokatie">Pijnlokatie:</label><br />
    <textarea name="pijnlokatie" type="text"></textarea>
    </td>
    <td>
    <label for="algemene_belastingen">Algemene Belastingen:</label><br />
    <textarea name="algemene_belastingen" type="text"></textarea>
    </td>
    </tr>
    </table>


    <label></label><input type="button" id="button" onclick="add_dossier(this.form);" class="opslaan_knop" value=""/> 

    <div id="bericht"></div>
</form>

The JS

/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject()
{
    var request_type;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer")
    {
        request_type = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
        request_type = new XMLHttpRequest();
    }
    return request_type;
}

var http = createObject();

/* -------------------------- */
/* INSERT */
/* -------------------------- */
/* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */
var nocache = 0;

function add_dossier(oForm)
{    
        // Optional: Show a waiting message in the layer with ID insert_response
    document.getElementById('bericht').innerHTML = "Even geduld..."
    // Required: verify that all fileds is not empty. Use encodeURI() to solve some issues about character encoding.

    var key = oForm.key.value;
    var contact_motivatie = oForm.contact_motivatie.value;
    var klacht = oForm.klacht.value;
    var ADL = oForm.ADL.value;
    var pijnlokatie = oForm.pijnlokatie.value;
    var algemene_belastingen = oForm.algemene_belastingen.value;
    // Set te random number to add to URL request
    nocache = Math.random();
    // Pass the login variables like URL variable
    
    var locatie = 'assets/query/add_dossier.php';
    var querystring = 'contact_motivatie='+contact_motivatie+'&klacht='+klacht+'&ADL='+ADL+'&pijnlokatie='+pijnlokatie+'&algemene_belastingen='+algemene_belastingen;
        
    http.open('POST', locatie, true);
    http.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
    http.onreadystatechange = insertSucces;
    http.send(querystring);
}

function insertSucces()
{
    if(http.readyState == 4)
    {
        var response = http.responseText;
        location.reload(true);
    }
}

Hi,

As the title says:

How can I print the text in the textarea to a pdf without showing the url in the top of the produced pdf files? Or is that not possible?

10

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

Hi,

I've seen the example for an external toolbar (http://tinymce.moxiecode.com/examples/example_15.php).

I'm trying to get a simple menu, I only need "bold,italic,underline,strikethrough, bullist,numlist,undo,redo" but I can't figure out how to show only those options, because right now, i've a got more.

This is what I have:

tinyMCE.init({
mode : "textareas",
theme : "advanced", <--- I want that to be "simple"
width : "235",
theme_advanced_buttons : "bold,italic,underline,strikethrough, bullist,numlist,undo,redo", <-- this is all I want
theme_advanced_toolbar_location : "external",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar : false,
theme_advanced_resizing : false
});

EDIT: I solved it by adding           
             theme_advanced_buttons2 : "",
             theme_advanced_buttons3 : "",


And is it possible that when I pres "tab" that the toolbar will go to  the next textarea aswell?

Hi, i'm somewhat new to the ins and outs of tinymce, but here's my question...

Is it possible to have multiple textareas (edit fields) and just one button console (with buttons like 'bold', 'italic', etc...)?
I'm making a website of sorts that enables the user to give input in various fields but i think it's unnessesary to have the buttons/menu shown for every field.

Btw. What's the proper name for that menu/console i'm describing?

Thanks in advance,