sanfric wrote:hello,
I use
Code: Select all
TAG POS = 1 TYPE = INPUT: TEXT FORM = NAME: PAGE_ARTICLES_NEW_TEXT ATTR = ID: A6 CONTENT = {{! Clipboard}}
To paste a text from winword into a form. Problem: Clipboard does not paste my text respecting the original paragraphs. It changes line after 75-80 characters.
Example
Original text :
" Le Valcor va ouvrir une nouvelle déchèterie à Guerloc'h. à l’horizon 2020 sur un terrain de 12.000 m², en contrebas de l'ancienne usine de déshydratation du fourrage de Guerloc'h, 15.000 utilisateurs. Elle remplacera la déchèterie de Stang Blanc ouverte en 1990 qui ne dispose pas d’un espace suffisant pour loger les caissons et dont l’aire de réception des végétaux est devenue trop exiguë".
Pasted text
"Le Valcor va ouvrir une nouvelle déchèterie à Guerloc'h à
l'horizon 2020 sur un terrain de 12.000 m², en contrebas de l'ancienne usine de
déshydratation du fourrage de Guerloc'h, 15.000 utilisateurs. Elle remplacera
la déchèterie de Stang Blanc ouverte en 1990 qui ne dispose pas d'un espace
suffisant pour loger les caissons et dont l'aire de réception des végétaux est
devenue trop exiguë".
Does anyone have an explanation and a solution?
Code: Select all
Windows 10
Firefox 61.0.2
iMacros for Firefox 10.0.2.1450
Hum, you need to mention now if you use the 'Free' or 'PE' Version, for iMacros v10.x for CR/FF...?
Euh..., Explanation, nope, not really, except that the '!CLIPBOARD' Functionality only got implemented in one of the late Builds during the Beta-Testing Phase for v10.2 for FF, and I had tested at that time with only some very "simple" Content, already "happy" to see that '{{!CLIPBOARD}}' was then implemented and seemed to work...
Workaround, yep, I might have 2..., if you first could check that you get the same "Result" in a 'PROMPT' with your "raw" Clipboard...
Code: Select all
SET Clipboard_1 EVAL("var s='{{!CLIPBOARD}}'; var z=s.split('<BR>').join(''); z;")
SET Clipboard_2 EVAL("var s='{{!CLIPBOARD}}'; var z=s.split('\\n').join(''); z;")
PROMPT Original_Clipboard:<BR>{{!CLIPBOARD}}<BR><BR>Clipboard_1:<BR>{{Clipboard_1}}<BR><BR>Clipboard_2:<BR>{{Clipboard_2}}
Not tested..., depending on what "works" a bit, you may want to try some other "Flavours" with the 2nd Workaround, with '\\r\\n' instead of just '\\n', and with "real" (Escaped) Double Quotes instead of the Single Quotes I used...
And if using the 'Free' Version, you'll need to replace "my" User Defined Vars with '!VAR1' + '!VAR2' of course...!
And when posting a Script on the Forum, you should pay attention to (and remove) all extra Spaces added by your French OS/Editor/Browser...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...