Loading...
 
Skip to main content

History: WysiwygEasyWay

Preview of version: 3

hello friends and fOe of the tiki community........
as u all know it, many seem to be lookin for this feature...and im here just to share what i had came across......

its not the best solution to having a wysiwyg editor for your wiki pages but it is worth having as long as you comprehend its limitations.

i have talked to real developers of the tiki community and wysiwyg feature(the real thing) is soon commin our way. so, as of now, it wont hurt to have this as a supplementary editor.

the down side to this editor is possible XSS, sea surf attacks. search google to know more about what it does. so, use this causiously and its better to allow html only to trusted editors rather public.

the files below is a working package of the FCKeditor.net. wiki links will display wiki pages and 2 edit buttons on top. edit-normal-editor and edit-wysiwyg-editor. while editing, u can change between editor. and the use of wiki-syntax is allowed. i made a small usage instruction replacing the 'wiki help' default link. allow-html is made sticky on both normal/wysiwyg and some function like upload-html and such has been taken off the template file for cross-compatibility.

the only problem now with this feature is that, if u ever edit a page using a normal editor, and later re-edit a page using the wysiwyg, your original wiki layout will be lost. such things are like paragraphs mashed together........as html takes away blank space.... ๐Ÿ˜‘

this is an easy edit, but ill let the pro figure this out.

so the best way, as how i feel it should be, dont use the normal editor if u have edited something with the wysiwyg. u can still use wiki-syntax on the wysiwyg so just move on....hehe and never edit USING THE NORMAL EDITOR...

unless u wont be re-editing it back with the wysiwyg..then its all good.........u know what i mean!....

ok, move on to the end for the files....
unzip fckeditor package on ure root /public_html/tiki1.8/
the zip contains 1 folder = fckeditor latest stable package.
and 4 files = tiki-editpage.php/tiki-editpage.tpl(normal editor), tiki-editpage2.php/tiki-editpage2.tpl(wysiwyg-editor),

this was tested on 1.8.5....didnt try on 1.9 but i think it should work well...
or better yet, just copy the code and change all the url paths. the 'preview' of wysiwyg editor is linking to tiki-editpage.php, to make it work, change the href to tiki-editpage2.php.......but then again, why would u need a preview??

this is the techie stuff for the DIY.....

i tried many times, changing this and that, goin back and forth to tinymce forums but has found no better clue to make it work at all......

the editor loads up just nice but all saved page become cut-off in the middle, so that should look like wiki page filling only half of 100% wide of $mid. i dont know why and i dont want to know cuz i have something else that works better... hehe ๐Ÿ˜Š

the code that made it work,

Image
Copy to clipboard
0{literal} 1 2 3 var oFCKeditor = new FCKeditor( 'editwiki' ) ; 4 oFCKeditor.BasePath = '/tiki/fckeditor/' ; 5 oFCKeditor.Height = 400 6 oFCKeditor.Config['SpellChecker'] = 'SpellerPages' ; 7 oFCKeditor.ReplaceTextarea(); 8 9{/literal}


1. append this just below the text-area of the wiki. and change the basepath to the ones on ure site. notice line 3 where editwiki is the name of the text area.

2. to change all instance of a text-area, just edit ure template files and append this same 9 line of code below that text-area and change the 'editwiki' name to the name of that box. as simple as 123 huh?...

3. and make sure u make allow-html sticky or default it to 'checked' and disable it.

for the normal editor, do the step3. if u forget to do this, ure settings will be gone each time u load or swap editor........

and just download fckeditor and unzip at ure tiki root. thats it folks!
-----
whatever it is, if ud like this, do join tiki irc #tikiwiki at freenode. we need more ppl there az the channel is kinda dead.....peace
-ikky

History

Information Version
ikky 12
View
ikky 11
View
ikky 10
View
ikky 9
View
ikky 8
View
ikky 7
View
ikky 6
View
ikky 5
View
ikky 4
View
ikky 3
View
ikky 2
View
ikky 1
View