We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Updated: LG TinyMCE Custom Field Type

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

1.1.0 Update: I have added a GZIP option to the extension. If you enable it download the PHP GZIP files from Moxicode. More information On the TinyMCE web site. This makes the overall download size 75% smaller and the number of requests will also be reduced. The overall initialization time for TinyMCE will be reduced dramaticly if you use this option.

1.1.2 Update: I submitted this plugin to the official addon list and Derek came back with some nice tips. This is a small update that fixes a default tinymce config error and a couple of small coding issues.

1.1.3 Update: Fixed whitespace and reduced a couple of preg_match methods

1.1.4 Update: Accepted into the official repository!

1.1.5 Update: Minor Bug Fix

1.1.7 Update: Minor Bug Fix + New documentation

1.1.8 Update: Fixed bug with GZIP option. Both GZIP and unzipped files where being loaded.

1.2.0 Update: Updated method names, added Slovak language, PHPDoc code comments. Code cleanup

1.3.0 Update: Added MSM functionality, rebuilt extension settings

1.3.2 Update: Integrated LG Addon Updater


Hey all,

I have been playing with extensions quite a bit lately. One of my other extensions required a textarea for some basic content but the old TinyMCE extension was turning it into a WYSIWYG.

So I wrote my own extension that adds the TinyMCE script into the header and adds a new custom WYSIWYG field.

Give it a try and tell me what you think.

http://leevigraham.com/cms-customisation/expressionengine/addon/lg-tinymce/


Just for reference:

If you get the following error:

Undefined variable: field_type in [path to system here]/cp/cp.publish_ad.php on line 7197[ish]

The solution is here:

http://ellislab.com/forums/viewthread/38843/#181791

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

There is missing lang.lg_tinymce.php

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

good point! fixed now, sorry

There is missing lang.lg_tinymce.php
       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel
good point! fixed now, sorry
There is missing lang.lg_tinymce.php

lang.tiny_mce.php is lannguage from other extension. Your language need to have name lang.lg_tinymce.php

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Man I gotta stop developing at 3am!

Ok all sorted…

good point! fixed now, sorry
There is missing lang.lg_tinymce.php
lang.tiny_mce.php is lannguage from other extension. Your language need to have name lang.lg_tinymce.php
       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Works fine. Thanks for the great job!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Finally!!! 😊 NP

If anyone is using the Moxicode ImageManager or FileManager drop me a pm.. I may have a little something for you!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Just made a small update to the extension.

  • Removed whitespace from bottom of plugin that may have caused some errors.

Link at the top of the thread updated

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Leevi, still various problems with the language file. Now, language files variable not match with the extension.

Please test your releases consistently before putting live.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Not sure how that snuck back in… I’ve had positive feedback from another user on this extension.

V 1.0.2 available now… Link at top of the thread.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Just a quick note to say there is an update available. Its only small based on some feedback from Derek but the extension now follow the developer guidelines a little closer.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

This extension has been accepted into the official repository!

Update at the top of the thread!

       
Tilo's avatar
Tilo
81 posts
17 years ago
Tilo's avatar Tilo

Hooray Leevi, I used the TinyMCE WYISWYG Editor just recently for the first time on EE. Now, your extension adds exactly what had been missing, to have it as a custom field and to have the bar on top. Many thanks, Leevi, just what I needed. It works fine for me.

1) However; when I’m on the costum fields page in the Control Panel, this error appears on top:

Notice: Undefined variable: field_type in /cp/cp.publish_ad.php on line 7308

2)Also, I think I’m too stupid to get the compressor installed. I download it from their website but don’t unterstand the second step:

Copy the tinymce_gzipcompressor.jar to the Web-inf/lib or the <cf installation path>/lib.

What directory is that?

3)Why does it say “Path:” on the bottom left of the textarea on the Publish Page?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
hi, 1) the fix is here >> http://ellislab.com/forums/viewthread/38843/#181791 2) just copy: tiny_mce_gzip.js and tiny_mce_gzip.php >> to >> /tinymce/jscripts/tiny_mce… or whatever folder you are using 😊 That all there is to it…and put the correct path in the extension settings. 3) that is something of TINY-MCE…. if you make something BOLD and you put your cursor in the (bold) area…in the path it will say ‘strong’ or ‘b’…. So, if you are in a paragraph and made a heading 1 and make of that heading a link.. and you put your cursor on that heading..it will say: “p >> h1 >> a” 😊

To quick for me Victor

       
Tilo's avatar
Tilo
81 posts
17 years ago
Tilo's avatar Tilo

thanks Victor non-existing thumbs-up smilie

What about “tinymce_gzipcompressor.jar”, that’s not needed?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.