Text Editors

Text Editors, a forum discussion on Jojo CMS. Join us for more discussions on Text Editors on our Plugin Announcements forum.

Back to Forum Index : Back to Plugin Announcements Page << [1] [2]  RSS
tom

Developer

tom

17 Apr 2012
Posts: 379

if a field was edited using an editor that was removed, the html will still be in the original field and can be edited using the default html editor until the original editor is restored or replaced.

Perhaps editor plugins / core could use a registration process like the cart / product plugins do to tell each other about their existence? Although I actually don't know how that works...
Rick Rick

17 Apr 2012
Posts: 336

Good idea... defaulting back to an html editor and loading the stored html sounds like a great idea.

In my currently proof-of-concept I'd tried using filters to in the core api.php file to let plugins add themselves to a list then apply it via the Options api... but that didn't work since the filter was being run before the plugin api files were loaded (and therefore before the filters were registered).

You're right, the way that payment methods integrate into the cart seems like a much better way to do it. The editors can register themselves with the text editor field.
Harvey

Core Developer

Harvey

17 Apr 2012
Posts: 327

I actually moved the api.php generation up a few lines today in an unrelated update. Might be worth trying again to see if this has fixed the problem of the filters not being available early enough.
Rick Rick

17 Apr 2012
Posts: 336

Thanks Harvey... I'm out and about right now but will check it later. I'm not sure if it will fix the problem I have though since I was doing everything from within the api files. So the core api file (I assume loaded first) applies the filter when it's loaded but it's not until the later when the plugin api files are loaded that the plugin registers itself for the filter (which has now already run). This was a crude way to try it but it was just a hack to be able to throw in CKEditor.

I'll give it a shot and report back.
Rick Rick

18 Jul 2012
Posts: 336

Looking at editors, I've short-listed three so far...

I figure our needs are:
  • free and open source
  • support the loading/saving system of /edit/
  • user and developer friendly
  • well supported
  • file/image manager
  • extendible without having to place files in its dir (so we can add plugins such as file/image manager without having to add file to the editor's repo folder)

elRTE and CKEditor both have file/image managers than can be used with TinyMCE, so that shouldn't be an issue for any of them.

Does anyone have a preference on editors before I start investigating further?
Back to Forum Index : Back to Plugin Announcements Page << [1] [2]  RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.