Closed (fixed)
Project:
BUEditor
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2012 at 16:27 UTC
Updated:
21 Mar 2012 at 05:30 UTC
We are using a custommade editor with a few extra buttons together with the default ones, is there a way to programmatically import and enable that editor in our installation profile? That would make our deployment process quite a lot easier.
Comments
Comment #1
ufku commentedBesides manually populating bueditor_editors/buttons tables, you may consider importing editor code. In bueditor.admin.inc, bueditor_varexport_editor() generates importable editor code which then can be converted back to editor variable by using bueditor_exec_editor_code(). Finally the resulting object can be saved to the database using bueditor_save_import().
For importing also the non-default libraries or icons, see bueditor_editor_import_form's validate and submit handlers.
Comment #2
granholm commentedThank you, that seems to work perfectly :)
Comment #3
ufku commented