Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Dynamically Localize TinyMCE
Dec 02, 2013 @ 16:37:41

The SitePoint PHP blog has a post from Roland Clemenceau about localizing the TinyMCE editor, a web-based Javascript HTML WYSIWYG editor. It's dropped in to make textareas rich-text editing components of your page quickly and easily.

This tutorial assumes you have built a PHP multilingual site/framework and you, or whoever the admin is, would like TinyMCE to automatically switch to the current language of your site. [...] Although TinyMCE is a great wysiwyg editor that provides localized files for almost every known language, it still does not come with an automatic language-switching feature. It's very easy to roll your own solution to this problem, though, so that's what we're going to do now.

He shows how to use extra language files in coordination with a "language" setting. This setting (usually something like "en" or "es") can then be set as a configuration option when the TinyMCE instance is added to the page.

tagged: localize tinymce editor wysiwyg tutorial html

Link: http://www.sitepoint.com/dynamically-localize-tinymce/

Matt Cockayne's Blog:
Zend + TinyMCE
Jun 16, 2009 @ 16:16:06

Matt Cockayne has submitted a new tutorial he's created about the integration of the TinyMCE input tool into a Zend Framework application.

Now the guys at Zend Framework have done a bang up job of of getting things started and the Dojo and jQuery libraries that are part of it are spectacular.. except that they dont offer an advanced text editor. Which I think is a bit of a shame. So I decided that In order to make my job a whole lot easier I would create a plugin that I could reuse as and when I needed it.

He's created a view helper and a View Helper Container that make it simple to create a form helper that can be dropped in anywhere (not just for a specific controller/action) and, based on settings in a config file, display a TinyMCE instance right in your form.

tagged: tutorial tinymce zendframework

Link:

Jani Hartikainen's Blog:
Integrating FCKeditor with Zend_Form
Apr 06, 2009 @ 12:55:40

Jani Hartikainen has posted a guide to his blog for getting the FCKeditor integrated into your Zend_Form instance.

How to use FCKeditor, or any other WYSIWYG editor, with Zend_Form? Another relatively common question. There are many ways you can do this, but let's look at these two as they are the best in my opinion: Adding some JavaScript to your view script, Creating a Zend_Form_Decorator. We'll be using FCKeditor, but you can apply the techniques shown to others, such as TinyMCE, as well.

The first method, via javascript, just drops the editor in inside some script tags. The second (more "Zend Framework way") creates a decorator as a custom way to insert the same javascript code. A call to appendScript inside the render() function (the code is here). Then its just a call to addDecorator to plug in a CU_Form_Decorator_FckEditor instance.

tagged: integrate decorator zendform zendframework fckeditor tinymce

Link:

Web Development Blog:
Upload images for usage in TinyMCE
Sep 30, 2008 @ 15:24:50

The Web Development Blog has a recent tutorial posted talking about a free option for the TinyMCE tool to work with uploading images.

TinyMCE is a great online WYSIWYG editor which is used for a lot of projects, for example this Wordpress blog application (the content backend). [...] Sometimes the Image manager too looks too big for some projects and than is the following (free) solution an option. You can download your copy from the TinyMCE website.

He shows how to include the plugin (so the resulting TinyMCE instance can include it) and the PHP code to do the handling for the upload, based on this upload class. The end result is a simple, integrated feature that lets you upload a few different kinds of images.

tagged: tinymce image tutorial plugin upload

Link:

JSLabs Blog:
Wordpress 2.1 to be released on Monday
Jan 22, 2007 @ 14:27:00

The JSLabs blog posted something yesterday (Jan 21st, 2006) about a new release for one of the most popular PHP blogging engines out there - WordPress. A new release, version 2.1, should be coming today (Jan 22nd, 2006).

Some of the new features that will be included are:

  • an auto-save function for the drafts that you're working on using Ajax to send the data to the backend
  • because of an effort to keep things compatible, the WordPress team worked to keep most plugins from breaking with the new update
  • significant improvements to the rich text editor in the composition pane of the administrative side (improvements to the TinyMCE functionality)
You can get more info in the update from this post on the WordPress site and keep an eye out on their download page for this new update.

tagged: wordpress release update feature plugin autosave visualeditor tinymce wordpress release update feature plugin autosave visualeditor tinymce

Link:

JSLabs Blog:
Wordpress 2.1 to be released on Monday
Jan 22, 2007 @ 14:27:00

The JSLabs blog posted something yesterday (Jan 21st, 2006) about a new release for one of the most popular PHP blogging engines out there - WordPress. A new release, version 2.1, should be coming today (Jan 22nd, 2006).

Some of the new features that will be included are:

  • an auto-save function for the drafts that you're working on using Ajax to send the data to the backend
  • because of an effort to keep things compatible, the WordPress team worked to keep most plugins from breaking with the new update
  • significant improvements to the rich text editor in the composition pane of the administrative side (improvements to the TinyMCE functionality)
You can get more info in the update from this post on the WordPress site and keep an eye out on their download page for this new update.

tagged: wordpress release update feature plugin autosave visualeditor tinymce wordpress release update feature plugin autosave visualeditor tinymce

Link:


Trending Topics: