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
.note-editable as Iframe #329
Comments
I have the same use-case as yours, I'm looking to edit content within an Looks like some files, such as For example, I had an issue with range selection, specifically, when It will definitely need more work, I'm using it with Personally, I think it's worth looking into this because it's useful and there are only ~35 references to Is there anything else known, other than references to |
Hi Sam, I ended up creating In the end, what I have done works, but isn't anywhere near perfect. You can view or make changes to my repo and view the changes, although it's almost two months behind the official summernote repo but I intend to cherry pick the changes soon. |
@Paperback - Hey! First, thank you for sharing! Second, it looks like my use-case is a bit different, perhaps there's a better way to do what I'm trying to accomplish. I'm working on a basic template editor, however, those templates will be rendered on email clients, which makes editing a bit more strict in terms of what can be change. To ensure the template is displayed correctly (both while editing and the result of it), I decided to load the template inside an iframe and mark the editable elements with an specific attribute. Currently, So to sum this up, instead of having each editable inside an Is there a better way to accomplish this? Thank you again for sharing, it's very helpful! |
@samitny I think I have a very similar use case to you. I want to provide a website admin interface that allows users to edit their site within an iframe. Did you get anywhere with this? |
I created #931 to track discussion on enabling summernote on elements contained within a child iframe. |
Subscribed to this thread. I'm currently looking to achieve goal as @bryan-ash and @samitny. |
Any news on this? It's very impotrant feature. |
I was surprised to find that the editor is in-fact not in an iframe (as is convention for WYSIWYG). I've experienced quite a few issues with conflicting CSS because of this. |
Having the editor in an iframe would be very helpful. We have users create letters and emails within the editor so the styles need to reflect what will be generated. |
Hoping to bump the priory of this up. Would like to add that this would be useful to me also for same purpose as some users above i.e. emails template editor - hence css clashes. Summernote was looking great until I just hit this problem which will probably mean unfortunately having to switch to a WYSISWYG editor that does use iframe for the content area - which I really don't want to do, but looking above it doesn't seem trivial to swap to iframe. Will hold off swapping out summernote until the last possible moment in my development in the hope that the core developers add this as I see @hackerwins tagged this as v0.6.0 milestone (guess it was missed) so I guess it is acknowledged as a good idea but just needs someone capable with enough time to do it. Cheers though to the developers for awesome plugin. |
I need this too.. looks like I have to switch to an editor that uses iframes :/ |
I too stuck with this problem. In my app admin panel and front end uses different stylesheets. Now i can't include frontend stylesheet in admin panel bcz that'll break admin panel ui. But without frontend stylesheet, content in editor looks different than actual content in front end. iframe and external stylesheet are IMO basic features of a WYSIWYG editor -_- |
Any solution for this problem? |
I'm closing whole
|
I'm adding this to the Projects Feature Requests, so this can be explored some more. |
Need to edit content inside iframe in 2022. |
I have done a bit of work to get summernote to optionally edit iframe contents.
My reasoning for doing this is so I can edit entire html documents inside summernote without having to worry about conflicting stylesheets or javascript issues.
I understand there are reasons for and against this, but what is everyone's thoughts on this?
The text was updated successfully, but these errors were encountered: