-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection Range Bug #529
Comments
What are your definitions for the |
Hi brunoais, Sorry for the delay in getting back to you, I've been out sick for a few days. Below is my current code for registering the BBCode specifically. I also have a 'data-field-plugin' that handles the rendering/event handling for the WYSIWYG side of things. Let me know if you'd like to see that.
|
Where's the definition for the WYSIWYG editor? That's the definition for the BBCode editor (transforming from and to BBCode). For this, I believe I need both. |
Here is my current setup code for the WYSIWYG Editor itself:
I tried setting fixInvalidNesting to false, but that doesn't seem to have helped. |
I've created a custom data-field bbcode that translates to an HTML Canvas in the WYSIWYG Editor. I created a data-field-plugin that handles rendering, updating, etc. these canvas elements. That's all working well.
Currently I am using the style attribute to control things like the canvas font-family, font-size, and color. However, I'd prefer if I could just use the standard BBCodes to handle these things. Example: "[b][data-field field-name="TotalAmount"][/data-field][/b]". This would tell me the field name to draw on the canvas, and I would determine that it is bold due to the parent bold tag.
The editor seems like it should be able to support this, except for what appears to be a bug with the range selection. If I have a some text before and after a field, and I highlight all of it and click the Bold button (or use another formatting command) the text before and after the canvas element are bolded, but there is no bold tag around the data-field. Example:
[b]b[/b][data-field data-source="DS" field-name="F"][/data-field][b]a[/b]
The data-field BBCode is marked as Inline, so it seems like it should be bolded as well. Perhaps someone knows of a config setting I maybe missing? Otherwise this is a bug. Hopefully Sam will return to take a look.
The text was updated successfully, but these errors were encountered: