FCKEditor in Word

Prenos vsebine na spletno stran je velikokrat problematičen pri izdelavi spletne strani. Ogromen problem se pojavi pri kopiranju (copy-paste) iz MS Worda, saj se prenese ogromno meta-kode.

FCKeditor ima možnost kopiranja iz Worda preko poosebne ikone. A kaj, ko je večina neveščih uporabnikov ne uporablja in kopirajo neposredno brez uporabe Paste from Word funkcije.

 

Obstaja rešitev, s katero lahko privzeto zaklenete Paste as plain tekst, uporabniku pa še vedno pustite opcijo, da naredi Paste iz Worda

First of all you need to enable “Force Paste Plaintext” so that your FCKEditor always by default pastes plain text. Do this by going into the Control Panel >> Editor and add this:

FCKConfig.ForcePasteAsPlainText = true;

 

Then you’re going to have to edit the following files:

/var/www/dekiwiki/editor/fckeditor/core/editor/js/fckeditorcode_gecko.js

Go to line 108 and look for the following:

|| FCKConfig.ForcePasteAsPlainText

And remove it

And:

/var/www/dekiwiki/editor/fckeditor/core/editor/js/fckeditorcode_ie

Go to line 76 and look for the following:

||FCKConfig.ForcePasteAsPlainText

And remove it

Now empty your webbrowser cache as test it out. By default FCKEditor will now clean out all text pasted and only allow plain text to be pasted, except for when users choose to click the “Paste from Word” button which they can use for pasting tables and so on!

 

Več podrobnosti Improve pasting from Microsoft Word

 

Kaj pa ti misliš?

Advertisements

One Response to “FCKEditor in Word”

  1. Jan Says:

    Zelo zanimivo 🙂
    Zastonj seks filmi

Oddajte komentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

Komentirate prijavljeni s svojim WordPress.com računom. Odjava / Spremeni )

Twitter picture

Komentirate prijavljeni s svojim Twitter računom. Odjava / Spremeni )

Facebook photo

Komentirate prijavljeni s svojim Facebook računom. Odjava / Spremeni )

Google+ photo

Komentirate prijavljeni s svojim Google+ računom. Odjava / Spremeni )

Connecting to %s


%d bloggers like this: