Closed Bug 491138 Opened 15 years ago Closed 15 years ago

bespin.editor.Component is missing some "includes"

Categories

(Skywriter Graveyard :: Editor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: rene.sprotte, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; de-de) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16
Build Identifier: http://hg.mozilla.org/labs/bespin/file/3200b58128b0

bespin.editor.Component is missing some "dojo includes". If this component is used to embed the editor into a webpage (as it is used in frontend/tests/manual/editor/singleeditor.html) the editor has no syntax highlighting enabled. Setting stuff then sometimes leads to a dojo error related to cookies. As it turns out, there are some includes missing.

Fix for the cookie error:
   dojo.require("dojo.cookie");

Fix for the syntax highlighting:
   dojo.require("bespin.syntax.simple.javascript");
   dojo.require("bespin.syntax.simple.css");
   dojo.require("bespin.syntax.simple.html");
   dojo.require("bespin.syntax.simple.php");

Reproducible: Always

Steps to Reproduce:
1. open frontend/tests/manual/editor/singleeditor.html
Actual Results:  
Embedded editor without syntax highlighting

Expected Results:  
Embedded editor with syntax highlighting
You seem to have done more research into this than I have, so I'm going to assume you know what you're talking about and confirm this.

I'm also categorizing this under "Editor".
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
OS: Mac OS X → All
QA Contact: general → editor
Hardware: x86 → All
Version: unspecified → Trunk
The embeddable editor component has changed to a single file (embed.js) that 
includes everything necessary. The syntax highlighting engine has also changed 
to dynamically load the highlighters for different languages.

One thing that may be desirable is some way to configure a custom embeddable 
build. That would be a separate and different feature request, I think.

The latest embedded build can be found at https://bespin.mozilla.com/embed.js
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.